public class PutGeofenceRequest extends AmazonWebServiceRequest implements java.io.Serializable
Stores a geofence to a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.
Constructor and Description |
---|
PutGeofenceRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCollectionName()
The geofence collection to store the geofence in.
|
java.lang.String |
getGeofenceId()
An identifier for the geofence.
|
GeofenceGeometry |
getGeometry()
Contains the polygon details to specify the position of the geofence.
|
int |
hashCode() |
void |
setCollectionName(java.lang.String collectionName)
The geofence collection to store the geofence in.
|
void |
setGeofenceId(java.lang.String geofenceId)
An identifier for the geofence.
|
void |
setGeometry(GeofenceGeometry geometry)
Contains the polygon details to specify the position of the geofence.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutGeofenceRequest |
withCollectionName(java.lang.String collectionName)
The geofence collection to store the geofence in.
|
PutGeofenceRequest |
withGeofenceId(java.lang.String geofenceId)
An identifier for the geofence.
|
PutGeofenceRequest |
withGeometry(GeofenceGeometry geometry)
Contains the polygon details to specify the position of the geofence.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getCollectionName()
The geofence collection to store the geofence in.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
The geofence collection to store the geofence in.
public void setCollectionName(java.lang.String collectionName)
The geofence collection to store the geofence in.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
collectionName
- The geofence collection to store the geofence in.
public PutGeofenceRequest withCollectionName(java.lang.String collectionName)
The geofence collection to store the geofence in.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
Pattern: ^[-._\w]+$
collectionName
- The geofence collection to store the geofence in.
public java.lang.String getGeofenceId()
An identifier for the geofence. For example,
ExampleGeofence-1
.
Constraints:
Length: 1 - 100
Pattern: ^[-._\p{L}\p{N}]+$
An identifier for the geofence. For example,
ExampleGeofence-1
.
public void setGeofenceId(java.lang.String geofenceId)
An identifier for the geofence. For example,
ExampleGeofence-1
.
Constraints:
Length: 1 - 100
Pattern: ^[-._\p{L}\p{N}]+$
geofenceId
-
An identifier for the geofence. For example,
ExampleGeofence-1
.
public PutGeofenceRequest withGeofenceId(java.lang.String geofenceId)
An identifier for the geofence. For example,
ExampleGeofence-1
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
Pattern: ^[-._\p{L}\p{N}]+$
geofenceId
-
An identifier for the geofence. For example,
ExampleGeofence-1
.
public GeofenceGeometry getGeometry()
Contains the polygon details to specify the position of the geofence.
Contains the polygon details to specify the position of the geofence.
public void setGeometry(GeofenceGeometry geometry)
Contains the polygon details to specify the position of the geofence.
geometry
- Contains the polygon details to specify the position of the geofence.
public PutGeofenceRequest withGeometry(GeofenceGeometry geometry)
Contains the polygon details to specify the position of the geofence.
Returns a reference to this object so that method calls can be chained together.
geometry
- Contains the polygon details to specify the position of the geofence.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.