Class CfnTopicRulePropsMixin.LocationActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.LocationActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRulePropsMixin.LocationActionProperty>
- Enclosing interface:
CfnTopicRulePropsMixin.LocationActionProperty
@Stability(Stable)
public static final class CfnTopicRulePropsMixin.LocationActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRulePropsMixin.LocationActionProperty>
A builder for
CfnTopicRulePropsMixin.LocationActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getDeviceId()Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getLatitude()Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getLongitude()Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getRoleArn()Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getTimestamp()timestamp(IResolvable timestamp) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getTimestamp()trackerName(String trackerName) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getTrackerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceId
@Stability(Stable) public CfnTopicRulePropsMixin.LocationActionProperty.Builder deviceId(String deviceId) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getDeviceId()- Parameters:
deviceId- The unique ID of the device providing the location data.- Returns:
this
-
latitude
@Stability(Stable) public CfnTopicRulePropsMixin.LocationActionProperty.Builder latitude(String latitude) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getLatitude()- Parameters:
latitude- A string that evaluates to a double value that represents the latitude of the device's location.- Returns:
this
-
longitude
@Stability(Stable) public CfnTopicRulePropsMixin.LocationActionProperty.Builder longitude(String longitude) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getLongitude()- Parameters:
longitude- A string that evaluates to a double value that represents the longitude of the device's location.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRulePropsMixin.LocationActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getRoleArn()- Parameters:
roleArn- The IAM role that grants permission to write to the Amazon Location resource.- Returns:
this
-
timestamp
@Stability(Stable) public CfnTopicRulePropsMixin.LocationActionProperty.Builder timestamp(IResolvable timestamp) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getTimestamp()- Parameters:
timestamp- The time that the location data was sampled. The default value is the time the MQTT message was processed.- Returns:
this
-
timestamp
@Stability(Stable) public CfnTopicRulePropsMixin.LocationActionProperty.Builder timestamp(CfnTopicRulePropsMixin.TimestampProperty timestamp) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getTimestamp()- Parameters:
timestamp- The time that the location data was sampled. The default value is the time the MQTT message was processed.- Returns:
this
-
trackerName
@Stability(Stable) public CfnTopicRulePropsMixin.LocationActionProperty.Builder trackerName(String trackerName) Sets the value ofCfnTopicRulePropsMixin.LocationActionProperty.getTrackerName()- Parameters:
trackerName- The name of the tracker resource in Amazon Location in which the location is updated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRulePropsMixin.LocationActionProperty>- Returns:
- a new instance of
CfnTopicRulePropsMixin.LocationActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-