Interface PutGeofenceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutGeofenceRequest.Builder,
,PutGeofenceRequest> LocationRequest.Builder
,SdkBuilder<PutGeofenceRequest.Builder,
,PutGeofenceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutGeofenceRequest
-
Method Summary
Modifier and TypeMethodDescriptioncollectionName
(String collectionName) The geofence collection to store the geofence in.geofenceId
(String geofenceId) An identifier for the geofence.geofenceProperties
(Map<String, String> geofenceProperties) Associates one of more properties with the geofence.default PutGeofenceRequest.Builder
geometry
(Consumer<GeofenceGeometry.Builder> geometry) Contains the details to specify the position of the geofence.geometry
(GeofenceGeometry geometry) Contains the details to specify the position of the geofence.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.location.model.LocationRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
collectionName
The geofence collection to store the geofence in.
- Parameters:
collectionName
- The geofence collection to store the geofence in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geofenceId
An identifier for the geofence. For example,
ExampleGeofence-1
.- Parameters:
geofenceId
- An identifier for the geofence. For example,ExampleGeofence-1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geofenceProperties
Associates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence.
Format:
"key" : "value"
- Parameters:
geofenceProperties
- Associates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence.Format:
"key" : "value"
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
Contains the details to specify the position of the geofence. Can be either a polygon or a circle. Including both will return a validation error.
Each geofence polygon can have a maximum of 1,000 vertices.
- Parameters:
geometry
- Contains the details to specify the position of the geofence. Can be either a polygon or a circle. Including both will return a validation error.Each geofence polygon can have a maximum of 1,000 vertices.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
geometry
Contains the details to specify the position of the geofence. Can be either a polygon or a circle. Including both will return a validation error.
Each geofence polygon can have a maximum of 1,000 vertices.
GeofenceGeometry.Builder
avoiding the need to create one manually viaGeofenceGeometry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togeometry(GeofenceGeometry)
.- Parameters:
geometry
- a consumer that will call methods onGeofenceGeometry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutGeofenceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutGeofenceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-