Class IotEventsPutMessageActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.IotEventsPutMessageActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IotEventsPutMessageActionProps>
- Enclosing interface:
IotEventsPutMessageActionProps
@Stability(Experimental)
public static final class IotEventsPutMessageActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<IotEventsPutMessageActionProps>
A builder for
IotEventsPutMessageActionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofIotEventsPutMessageActionProps.getBatchMode()build()Builds the configured instance.Sets the value ofIotEventsPutMessageActionProps.getMessageId()Sets the value ofCommonActionProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchMode
Sets the value ofIotEventsPutMessageActionProps.getBatchMode()- Parameters:
batchMode- Whether to process the event actions as a batch. When batchMode is true, you can't specify a messageId.When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is treated as a separate message when Events by calling BatchPutMessage. The resulting array can't have more than 10 messages.
- Returns:
this
-
messageId
Sets the value ofIotEventsPutMessageActionProps.getMessageId()- Parameters:
messageId- The ID of the message. When batchMode is true, you can't specify a messageId--a new UUID value will be assigned. Assign a value to this property to ensure that only one input (message) with a given messageId will be processed by an AWS IoT Events detector.- Returns:
this
-
role
Sets the value ofCommonActionProps.getRole()- Parameters:
role- The IAM role that allows access to AWS service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IotEventsPutMessageActionProps>- Returns:
- a new instance of
IotEventsPutMessageActionProps - Throws:
NullPointerException- if any required attribute was not provided
-