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