Class FirehosePutRecordActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.FirehosePutRecordActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FirehosePutRecordActionProps>
- Enclosing interface:
FirehosePutRecordActionProps
@Stability(Experimental)
public static final class FirehosePutRecordActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<FirehosePutRecordActionProps>
A builder for
FirehosePutRecordActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofFirehosePutRecordActionProps.getBatchMode()
build()
Builds the configured instance.recordSeparator
(FirehoseRecordSeparator recordSeparator) Sets the value ofFirehosePutRecordActionProps.getRecordSeparator()
Sets the value ofCommonActionProps.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchMode
Sets the value ofFirehosePutRecordActionProps.getBatchMode()
- Parameters:
batchMode
- Whether to deliver the Kinesis Data Firehose stream as a batch by usingPutRecordBatch
. When batchMode is true and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch request. The resulting array can't have more than 500 records.- Returns:
this
-
recordSeparator
@Stability(Experimental) public FirehosePutRecordActionProps.Builder recordSeparator(FirehoseRecordSeparator recordSeparator) Sets the value ofFirehosePutRecordActionProps.getRecordSeparator()
- Parameters:
recordSeparator
- A character separator that will be used to separate records written to the Kinesis Data Firehose stream.- 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:
build
in interfacesoftware.amazon.jsii.Builder<FirehosePutRecordActionProps>
- Returns:
- a new instance of
FirehosePutRecordActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-