Class CfnTopicRule.TimestreamActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.TimestreamActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.TimestreamActionProperty>
- Enclosing interface:
CfnTopicRule.TimestreamActionProperty
@Stability(Stable)
public static final class CfnTopicRule.TimestreamActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.TimestreamActionProperty>
A builder for
CfnTopicRule.TimestreamActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.databaseName(String databaseName) Sets the value ofCfnTopicRule.TimestreamActionProperty.getDatabaseName()dimensions(List<? extends Object> dimensions) Sets the value ofCfnTopicRule.TimestreamActionProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnTopicRule.TimestreamActionProperty.getDimensions()Sets the value ofCfnTopicRule.TimestreamActionProperty.getRoleArn()Sets the value ofCfnTopicRule.TimestreamActionProperty.getTableName()timestamp(IResolvable timestamp) Sets the value ofCfnTopicRule.TimestreamActionProperty.getTimestamp()Sets the value ofCfnTopicRule.TimestreamActionProperty.getTimestamp()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
databaseName
@Stability(Stable) public CfnTopicRule.TimestreamActionProperty.Builder databaseName(String databaseName) Sets the value ofCfnTopicRule.TimestreamActionProperty.getDatabaseName()- Parameters:
databaseName- The name of an Amazon Timestream database that has the table to write records into. This parameter is required.- Returns:
this
-
dimensions
@Stability(Stable) public CfnTopicRule.TimestreamActionProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnTopicRule.TimestreamActionProperty.getDimensions()- Parameters:
dimensions- Metadata attributes of the time series that are written in each measure record. This parameter is required.- Returns:
this
-
dimensions
@Stability(Stable) public CfnTopicRule.TimestreamActionProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnTopicRule.TimestreamActionProperty.getDimensions()- Parameters:
dimensions- Metadata attributes of the time series that are written in each measure record. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnTopicRule.TimestreamActionProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the role that grants AWS IoT permission to write to the Timestream database table. This parameter is required.- Returns:
this
-
tableName
Sets the value ofCfnTopicRule.TimestreamActionProperty.getTableName()- Parameters:
tableName- The table where the message data will be written. This parameter is required.- Returns:
this
-
timestamp
@Stability(Stable) public CfnTopicRule.TimestreamActionProperty.Builder timestamp(IResolvable timestamp) Sets the value ofCfnTopicRule.TimestreamActionProperty.getTimestamp()- Parameters:
timestamp- The value to use for the entry's timestamp. If blank, the time that the entry was processed is used.- Returns:
this
-
timestamp
@Stability(Stable) public CfnTopicRule.TimestreamActionProperty.Builder timestamp(CfnTopicRule.TimestreamTimestampProperty timestamp) Sets the value ofCfnTopicRule.TimestreamActionProperty.getTimestamp()- Parameters:
timestamp- The value to use for the entry's timestamp. If blank, the time that the entry was processed is used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRule.TimestreamActionProperty>- Returns:
- a new instance of
CfnTopicRule.TimestreamActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-