Class CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRulePropsMixin.IotAnalyticsActionProperty>
- Enclosing interface:
CfnTopicRulePropsMixin.IotAnalyticsActionProperty
@Stability(Stable)
public static final class CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRulePropsMixin.IotAnalyticsActionProperty>
A builder for
CfnTopicRulePropsMixin.IotAnalyticsActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getBatchMode()batchMode(IResolvable batchMode) Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getBatchMode()build()Builds the configured instance.channelName(String channelName) Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getChannelName()Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getRoleArn()Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchMode
@Stability(Stable) public CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder batchMode(Boolean batchMode) Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getBatchMode()- Parameters:
batchMode- Whether to process the action as a batch. The default value isfalse. WhenbatchModeistrueand the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed byBatchPutMessageThe resulting array can't have more than 100 messages.- Returns:
this
-
batchMode
@Stability(Stable) public CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder batchMode(IResolvable batchMode) Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getBatchMode()- Parameters:
batchMode- Whether to process the action as a batch. The default value isfalse. WhenbatchModeistrueand the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed byBatchPutMessageThe resulting array can't have more than 100 messages.- Returns:
this
-
channelName
@Stability(Stable) public CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder channelName(String channelName) Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getChannelName()- Parameters:
channelName- The name of the IoT Analytics channel to which message data will be sent.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage).- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRulePropsMixin.IotAnalyticsActionProperty.Builder roleArn(IRoleRef roleArn) Sets the value ofCfnTopicRulePropsMixin.IotAnalyticsActionProperty.getRoleArn()- Parameters:
roleArn- The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRulePropsMixin.IotAnalyticsActionProperty>- Returns:
- a new instance of
CfnTopicRulePropsMixin.IotAnalyticsActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-