Class TrackerProps.Builder
java.lang.Object
software.amazon.awscdk.services.location.alpha.TrackerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TrackerProps>
- Enclosing interface:
TrackerProps
@Stability(Experimental)
public static final class TrackerProps.Builder
extends Object
implements software.amazon.jsii.Builder<TrackerProps>
A builder for
TrackerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofTrackerProps.getDescription()eventBridgeEnabled(Boolean eventBridgeEnabled) Sets the value ofTrackerProps.getEventBridgeEnabled()geofenceCollections(List<? extends IGeofenceCollection> geofenceCollections) Sets the value ofTrackerProps.getGeofenceCollections()Sets the value ofTrackerProps.getKmsKey()kmsKeyEnableGeospatialQueries(Boolean kmsKeyEnableGeospatialQueries) Sets the value ofTrackerProps.getKmsKeyEnableGeospatialQueries()positionFiltering(PositionFiltering positionFiltering) Sets the value ofTrackerProps.getPositionFiltering()trackerName(String trackerName) Sets the value ofTrackerProps.getTrackerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofTrackerProps.getDescription()- Parameters:
description- A description for the tracker.- Returns:
this
-
eventBridgeEnabled
Sets the value ofTrackerProps.getEventBridgeEnabled()- Parameters:
eventBridgeEnabled- Send filtered device position updates to default EventBridge bus.- Returns:
this
-
geofenceCollections
@Stability(Experimental) public TrackerProps.Builder geofenceCollections(List<? extends IGeofenceCollection> geofenceCollections) Sets the value ofTrackerProps.getGeofenceCollections()- Parameters:
geofenceCollections- An optional list of geofence collections to associate with the tracker resource.- Returns:
this
-
kmsKey
Sets the value ofTrackerProps.getKmsKey()- Parameters:
kmsKey- The customer managed key to encrypt data. If you set customer managed key, the Bounding Polygon Queries feature will be disabled by default. You can choose to opt-in to the Bounding Polygon Queries feature by setting the kmsKeyEnableGeospatialQueries parameter to true.- Returns:
this
-
kmsKeyEnableGeospatialQueries
@Stability(Experimental) public TrackerProps.Builder kmsKeyEnableGeospatialQueries(Boolean kmsKeyEnableGeospatialQueries) Sets the value ofTrackerProps.getKmsKeyEnableGeospatialQueries()- Parameters:
kmsKeyEnableGeospatialQueries- Whether to opt-in to the Bounding Polygon Queries feature with customer managed key.- Returns:
this
-
positionFiltering
@Stability(Experimental) public TrackerProps.Builder positionFiltering(PositionFiltering positionFiltering) Sets the value ofTrackerProps.getPositionFiltering()- Parameters:
positionFiltering- The position filtering for the tracker resource.- Returns:
this
-
trackerName
Sets the value ofTrackerProps.getTrackerName()- Parameters:
trackerName- A name for the tracker. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, periods and underscores.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TrackerProps>- Returns:
- a new instance of
TrackerProps - Throws:
NullPointerException- if any required attribute was not provided
-