Interface BatchPutMessageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<BatchPutMessageRequest.Builder,,BatchPutMessageRequest> IotEventsDataRequest.Builder,SdkBuilder<BatchPutMessageRequest.Builder,,BatchPutMessageRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
BatchPutMessageRequest
public static interface BatchPutMessageRequest.Builder
extends IotEventsDataRequest.Builder, SdkPojo, CopyableBuilder<BatchPutMessageRequest.Builder,BatchPutMessageRequest>
-
Method Summary
Modifier and TypeMethodDescriptionmessages(Collection<Message> messages) The list of messages to send.messages(Consumer<Message.Builder>... messages) The list of messages to send.The list of messages to send.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ioteventsdata.model.IotEventsDataRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
messages
The list of messages to send. Each message has the following format:
'{ "messageId": "string", "inputName": "string", "payload": "string"}'- Parameters:
messages- The list of messages to send. Each message has the following format:'{ "messageId": "string", "inputName": "string", "payload": "string"}'- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The list of messages to send. Each message has the following format:
'{ "messageId": "string", "inputName": "string", "payload": "string"}'- Parameters:
messages- The list of messages to send. Each message has the following format:'{ "messageId": "string", "inputName": "string", "payload": "string"}'- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
The list of messages to send. Each message has the following format:
This is a convenience method that creates an instance of the'{ "messageId": "string", "inputName": "string", "payload": "string"}'Message.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomessages(List<Message>).- Parameters:
messages- a consumer that will call methods onMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
BatchPutMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
BatchPutMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-