Interface SendMessageBatchResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SendMessageBatchResponse.Builder,
,SendMessageBatchResponse> SdkBuilder<SendMessageBatchResponse.Builder,
,SendMessageBatchResponse> SdkPojo
,SdkResponse.Builder
,SqsResponse.Builder
- Enclosing class:
SendMessageBatchResponse
-
Method Summary
Modifier and TypeMethodDescriptionfailed
(Collection<BatchResultErrorEntry> failed) A list ofBatchResultErrorEntry
items with error details about each message that can't be enqueued.failed
(Consumer<BatchResultErrorEntry.Builder>... failed) A list ofBatchResultErrorEntry
items with error details about each message that can't be enqueued.failed
(BatchResultErrorEntry... failed) A list ofBatchResultErrorEntry
items with error details about each message that can't be enqueued.successful
(Collection<SendMessageBatchResultEntry> successful) A list ofSendMessageBatchResultEntry
items.successful
(Consumer<SendMessageBatchResultEntry.Builder>... successful) A list ofSendMessageBatchResultEntry
items.successful
(SendMessageBatchResultEntry... successful) A list ofSendMessageBatchResultEntry
items.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.sqs.model.SqsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
successful
A list of
SendMessageBatchResultEntry
items.- Parameters:
successful
- A list ofSendMessageBatchResultEntry
items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successful
A list of
SendMessageBatchResultEntry
items.- Parameters:
successful
- A list ofSendMessageBatchResultEntry
items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successful
SendMessageBatchResponse.Builder successful(Consumer<SendMessageBatchResultEntry.Builder>... successful) A list of
This is a convenience method that creates an instance of theSendMessageBatchResultEntry
items.SendMessageBatchResultEntry.Builder
avoiding the need to create one manually viaSendMessageBatchResultEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuccessful(List<SendMessageBatchResultEntry>)
.- Parameters:
successful
- a consumer that will call methods onSendMessageBatchResultEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failed
A list of
BatchResultErrorEntry
items with error details about each message that can't be enqueued.- Parameters:
failed
- A list ofBatchResultErrorEntry
items with error details about each message that can't be enqueued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failed
A list of
BatchResultErrorEntry
items with error details about each message that can't be enqueued.- Parameters:
failed
- A list ofBatchResultErrorEntry
items with error details about each message that can't be enqueued.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failed
A list of
This is a convenience method that creates an instance of theBatchResultErrorEntry
items with error details about each message that can't be enqueued.BatchResultErrorEntry.Builder
avoiding the need to create one manually viaBatchResultErrorEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailed(List<BatchResultErrorEntry>)
.- Parameters:
failed
- a consumer that will call methods onBatchResultErrorEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-