Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geo Update models to latest #3324

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ BatchPutGeofenceResult batchPutGeofence(BatchPutGeofenceRequest batchPutGeofence
/**
* <p>
* Uploads position update data for one or more devices to a tracker
* resource. Amazon Location uses the data when it reports the last known
* device position and position history. Amazon Location retains location
* data for 30 days.
* resource (up to 10 devices per batch). Amazon Location uses the data when
* it reports the last known device position and position history. Amazon
* Location retains location data for 30 days.
* </p>
* <note>
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,9 @@ public BatchPutGeofenceResult batchPutGeofence(BatchPutGeofenceRequest batchPutG
/**
* <p>
* Uploads position update data for one or more devices to a tracker
* resource. Amazon Location uses the data when it reports the last known
* device position and position history. Amazon Location retains location
* data for 30 days.
* resource (up to 10 devices per batch). Amazon Location uses the data when
* it reports the last known device position and position history. Amazon
* Location retains location data for 30 days.
* </p>
* <note>
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public class BatchPutGeofenceRequestEntry implements Serializable {
*/
private String geofenceId;

/**
* <p>
* Specifies additional user-defined properties to store with the Geofence.
* An array of key-value pairs.
* </p>
*/
private java.util.Map<String, String> geofenceProperties;

/**
* <p>
* Contains the details of the position of the geofence. Can be either a
Expand Down Expand Up @@ -113,6 +121,96 @@ public BatchPutGeofenceRequestEntry withGeofenceId(String geofenceId) {
return this;
}

/**
* <p>
* Specifies additional user-defined properties to store with the Geofence.
* An array of key-value pairs.
* </p>
*
* @return <p>
* Specifies additional user-defined properties to store with the
* Geofence. An array of key-value pairs.
* </p>
*/
public java.util.Map<String, String> getGeofenceProperties() {
return geofenceProperties;
}

/**
* <p>
* Specifies additional user-defined properties to store with the Geofence.
* An array of key-value pairs.
* </p>
*
* @param geofenceProperties <p>
* Specifies additional user-defined properties to store with the
* Geofence. An array of key-value pairs.
* </p>
*/
public void setGeofenceProperties(java.util.Map<String, String> geofenceProperties) {
this.geofenceProperties = geofenceProperties;
}

/**
* <p>
* Specifies additional user-defined properties to store with the Geofence.
* An array of key-value pairs.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param geofenceProperties <p>
* Specifies additional user-defined properties to store with the
* Geofence. An array of key-value pairs.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public BatchPutGeofenceRequestEntry withGeofenceProperties(
java.util.Map<String, String> geofenceProperties) {
this.geofenceProperties = geofenceProperties;
return this;
}

/**
* <p>
* Specifies additional user-defined properties to store with the Geofence.
* An array of key-value pairs.
* </p>
* <p>
* The method adds a new key-value pair into GeofenceProperties parameter,
* and returns a reference to this object so that method calls can be
* chained together.
*
* @param key The key of the entry to be added into GeofenceProperties.
* @param value The corresponding value of the entry to be added into
* GeofenceProperties.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public BatchPutGeofenceRequestEntry addGeofencePropertiesEntry(String key, String value) {
if (null == this.geofenceProperties) {
this.geofenceProperties = new java.util.HashMap<String, String>();
}
if (this.geofenceProperties.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString()
+ ") are provided.");
this.geofenceProperties.put(key, value);
return this;
}

/**
* Removes all the entries added into GeofenceProperties.
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*/
public BatchPutGeofenceRequestEntry clearGeofencePropertiesEntries() {
this.geofenceProperties = null;
return this;
}

/**
* <p>
* Contains the details of the position of the geofence. Can be either a
Expand Down Expand Up @@ -222,6 +320,8 @@ public String toString() {
sb.append("{");
if (getGeofenceId() != null)
sb.append("GeofenceId: " + getGeofenceId() + ",");
if (getGeofenceProperties() != null)
sb.append("GeofenceProperties: " + getGeofenceProperties() + ",");
if (getGeometry() != null)
sb.append("Geometry: " + getGeometry());
sb.append("}");
Expand All @@ -234,6 +334,8 @@ public int hashCode() {
int hashCode = 1;

hashCode = prime * hashCode + ((getGeofenceId() == null) ? 0 : getGeofenceId().hashCode());
hashCode = prime * hashCode
+ ((getGeofenceProperties() == null) ? 0 : getGeofenceProperties().hashCode());
hashCode = prime * hashCode + ((getGeometry() == null) ? 0 : getGeometry().hashCode());
return hashCode;
}
Expand All @@ -254,6 +356,11 @@ public boolean equals(Object obj) {
if (other.getGeofenceId() != null
&& other.getGeofenceId().equals(this.getGeofenceId()) == false)
return false;
if (other.getGeofenceProperties() == null ^ this.getGeofenceProperties() == null)
return false;
if (other.getGeofenceProperties() != null
&& other.getGeofenceProperties().equals(this.getGeofenceProperties()) == false)
return false;
if (other.getGeometry() == null ^ this.getGeometry() == null)
return false;
if (other.getGeometry() != null && other.getGeometry().equals(this.getGeometry()) == false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@

/**
* <p>
* Uploads position update data for one or more devices to a tracker resource.
* Amazon Location uses the data when it reports the last known device position
* and position history. Amazon Location retains location data for 30 days.
* Uploads position update data for one or more devices to a tracker resource
* (up to 10 devices per batch). Amazon Location uses the data when it reports
* the last known device position and position history. Amazon Location retains
* location data for 30 days.
* </p>
* <note>
* <p>
Expand Down Expand Up @@ -67,7 +68,7 @@ public class BatchUpdateDevicePositionRequest extends AmazonWebServiceRequest im

/**
* <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10 devices.
* </p>
*/
private java.util.List<DevicePositionUpdate> updates;
Expand Down Expand Up @@ -131,11 +132,12 @@ public BatchUpdateDevicePositionRequest withTrackerName(String trackerName) {

/**
* <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10 devices.
* </p>
*
* @return <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10
* devices.
* </p>
*/
public java.util.List<DevicePositionUpdate> getUpdates() {
Expand All @@ -144,11 +146,12 @@ public java.util.List<DevicePositionUpdate> getUpdates() {

/**
* <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10 devices.
* </p>
*
* @param updates <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10
* devices.
* </p>
*/
public void setUpdates(java.util.Collection<DevicePositionUpdate> updates) {
Expand All @@ -162,14 +165,15 @@ public void setUpdates(java.util.Collection<DevicePositionUpdate> updates) {

/**
* <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10 devices.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param updates <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10
* devices.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand All @@ -186,14 +190,15 @@ public BatchUpdateDevicePositionRequest withUpdates(DevicePositionUpdate... upda

/**
* <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10 devices.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param updates <p>
* Contains the position update details for each device.
* Contains the position update details for each device, up to 10
* devices.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ public class GetGeofenceResult implements Serializable {
*/
private String geofenceId;

/**
* <p>
* Contains additional user-defined properties stored with the geofence. An
* array of key-value pairs.
* </p>
*/
private java.util.Map<String, String> geofenceProperties;

/**
* <p>
* Contains the geofence geometry details describing a polygon or a circle.
Expand Down Expand Up @@ -207,6 +215,95 @@ public GetGeofenceResult withGeofenceId(String geofenceId) {
return this;
}

/**
* <p>
* Contains additional user-defined properties stored with the geofence. An
* array of key-value pairs.
* </p>
*
* @return <p>
* Contains additional user-defined properties stored with the
* geofence. An array of key-value pairs.
* </p>
*/
public java.util.Map<String, String> getGeofenceProperties() {
return geofenceProperties;
}

/**
* <p>
* Contains additional user-defined properties stored with the geofence. An
* array of key-value pairs.
* </p>
*
* @param geofenceProperties <p>
* Contains additional user-defined properties stored with the
* geofence. An array of key-value pairs.
* </p>
*/
public void setGeofenceProperties(java.util.Map<String, String> geofenceProperties) {
this.geofenceProperties = geofenceProperties;
}

/**
* <p>
* Contains additional user-defined properties stored with the geofence. An
* array of key-value pairs.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param geofenceProperties <p>
* Contains additional user-defined properties stored with the
* geofence. An array of key-value pairs.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public GetGeofenceResult withGeofenceProperties(java.util.Map<String, String> geofenceProperties) {
this.geofenceProperties = geofenceProperties;
return this;
}

/**
* <p>
* Contains additional user-defined properties stored with the geofence. An
* array of key-value pairs.
* </p>
* <p>
* The method adds a new key-value pair into GeofenceProperties parameter,
* and returns a reference to this object so that method calls can be
* chained together.
*
* @param key The key of the entry to be added into GeofenceProperties.
* @param value The corresponding value of the entry to be added into
* GeofenceProperties.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public GetGeofenceResult addGeofencePropertiesEntry(String key, String value) {
if (null == this.geofenceProperties) {
this.geofenceProperties = new java.util.HashMap<String, String>();
}
if (this.geofenceProperties.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString()
+ ") are provided.");
this.geofenceProperties.put(key, value);
return this;
}

/**
* Removes all the entries added into GeofenceProperties.
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*/
public GetGeofenceResult clearGeofencePropertiesEntries() {
this.geofenceProperties = null;
return this;
}

/**
* <p>
* Contains the geofence geometry details describing a polygon or a circle.
Expand Down Expand Up @@ -564,6 +661,8 @@ public String toString() {
sb.append("CreateTime: " + getCreateTime() + ",");
if (getGeofenceId() != null)
sb.append("GeofenceId: " + getGeofenceId() + ",");
if (getGeofenceProperties() != null)
sb.append("GeofenceProperties: " + getGeofenceProperties() + ",");
if (getGeometry() != null)
sb.append("Geometry: " + getGeometry() + ",");
if (getStatus() != null)
Expand All @@ -581,6 +680,8 @@ public int hashCode() {

hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getGeofenceId() == null) ? 0 : getGeofenceId().hashCode());
hashCode = prime * hashCode
+ ((getGeofenceProperties() == null) ? 0 : getGeofenceProperties().hashCode());
hashCode = prime * hashCode + ((getGeometry() == null) ? 0 : getGeometry().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
Expand Down Expand Up @@ -608,6 +709,11 @@ public boolean equals(Object obj) {
if (other.getGeofenceId() != null
&& other.getGeofenceId().equals(this.getGeofenceId()) == false)
return false;
if (other.getGeofenceProperties() == null ^ this.getGeofenceProperties() == null)
return false;
if (other.getGeofenceProperties() != null
&& other.getGeofenceProperties().equals(this.getGeofenceProperties()) == false)
return false;
if (other.getGeometry() == null ^ this.getGeometry() == null)
return false;
if (other.getGeometry() != null && other.getGeometry().equals(this.getGeometry()) == false)
Expand Down
Loading