Class HttpActionBatchConfig.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.HttpActionBatchConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpActionBatchConfig>
- Enclosing interface:
HttpActionBatchConfig
@Stability(Experimental)
public static final class HttpActionBatchConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HttpActionBatchConfig>
A builder for
HttpActionBatchConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxBatchOpenDuration(Duration maxBatchOpenDuration) Sets the value ofHttpActionBatchConfig.getMaxBatchOpenDuration()maxBatchSize(Number maxBatchSize) Sets the value ofHttpActionBatchConfig.getMaxBatchSize()maxBatchSizeBytes(Size maxBatchSizeBytes) Sets the value ofHttpActionBatchConfig.getMaxBatchSizeBytes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxBatchOpenDuration
@Stability(Experimental) public HttpActionBatchConfig.Builder maxBatchOpenDuration(Duration maxBatchOpenDuration) Sets the value ofHttpActionBatchConfig.getMaxBatchOpenDuration()- Parameters:
maxBatchOpenDuration- The maximum amount of time an outgoing message waits for other messages to create the batch. Must be between 5 ms and 200 ms.- Returns:
this
-
maxBatchSize
Sets the value ofHttpActionBatchConfig.getMaxBatchSize()- Parameters:
maxBatchSize- The maximum number of messages that are batched together in a single IoT rule action execution. Must be between 2 and 10.- Returns:
this
-
maxBatchSizeBytes
@Stability(Experimental) public HttpActionBatchConfig.Builder maxBatchSizeBytes(Size maxBatchSizeBytes) Sets the value ofHttpActionBatchConfig.getMaxBatchSizeBytes()- Parameters:
maxBatchSizeBytes- Maximum size of a message batch. Must be between 100 bytes and 128 KiB.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpActionBatchConfig>- Returns:
- a new instance of
HttpActionBatchConfig - Throws:
NullPointerException- if any required attribute was not provided
-