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