Class CfnTopicRule.IotAnalyticsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.IotAnalyticsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.IotAnalyticsActionProperty>
- Enclosing interface:
CfnTopicRule.IotAnalyticsActionProperty
@Stability(Stable)
public static final class CfnTopicRule.IotAnalyticsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.IotAnalyticsActionProperty>
A builder for
CfnTopicRule.IotAnalyticsActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTopicRule.IotAnalyticsActionProperty.getBatchMode()batchMode(IResolvable batchMode) Sets the value ofCfnTopicRule.IotAnalyticsActionProperty.getBatchMode()build()Builds the configured instance.channelName(String channelName) Sets the value ofCfnTopicRule.IotAnalyticsActionProperty.getChannelName()Sets the value ofCfnTopicRule.IotAnalyticsActionProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelName
@Stability(Stable) public CfnTopicRule.IotAnalyticsActionProperty.Builder channelName(String channelName) Sets the value ofCfnTopicRule.IotAnalyticsActionProperty.getChannelName()- Parameters:
channelName- The name of the IoT Analytics channel to which message data will be sent. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnTopicRule.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). This parameter is required.- Returns:
this
-
batchMode
@Stability(Stable) public CfnTopicRule.IotAnalyticsActionProperty.Builder batchMode(Boolean batchMode) Sets the value ofCfnTopicRule.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 CfnTopicRule.IotAnalyticsActionProperty.Builder batchMode(IResolvable batchMode) Sets the value ofCfnTopicRule.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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRule.IotAnalyticsActionProperty>- Returns:
- a new instance of
CfnTopicRule.IotAnalyticsActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-