Interface PublishBatchResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PublishBatchResponse.Builder,,PublishBatchResponse> SdkBuilder<PublishBatchResponse.Builder,,PublishBatchResponse> SdkPojo,SdkResponse.Builder,SnsResponse.Builder
- Enclosing class:
PublishBatchResponse
public static interface PublishBatchResponse.Builder
extends SnsResponse.Builder, SdkPojo, CopyableBuilder<PublishBatchResponse.Builder,PublishBatchResponse>
-
Method Summary
Modifier and TypeMethodDescriptionfailed(Collection<BatchResultErrorEntry> failed) A list of failedPublishBatchresponses.failed(Consumer<BatchResultErrorEntry.Builder>... failed) A list of failedPublishBatchresponses.failed(BatchResultErrorEntry... failed) A list of failedPublishBatchresponses.successful(Collection<PublishBatchResultEntry> successful) A list of successfulPublishBatchresponses.successful(Consumer<PublishBatchResultEntry.Builder>... successful) A list of successfulPublishBatchresponses.successful(PublishBatchResultEntry... successful) A list of successfulPublishBatchresponses.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.sns.model.SnsResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
successful
A list of successful
PublishBatchresponses.- Parameters:
successful- A list of successfulPublishBatchresponses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successful
A list of successful
PublishBatchresponses.- Parameters:
successful- A list of successfulPublishBatchresponses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successful
A list of successful
This is a convenience method that creates an instance of thePublishBatchresponses.PublishBatchResultEntry.Builderavoiding the need to create one manually viaPublishBatchResultEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosuccessful(List<PublishBatchResultEntry>).- Parameters:
successful- a consumer that will call methods onPublishBatchResultEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failed
A list of failed
PublishBatchresponses.- Parameters:
failed- A list of failedPublishBatchresponses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failed
A list of failed
PublishBatchresponses.- Parameters:
failed- A list of failedPublishBatchresponses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failed
A list of failed
This is a convenience method that creates an instance of thePublishBatchresponses.BatchResultErrorEntry.Builderavoiding the need to create one manually viaBatchResultErrorEntry.builder().When the
Consumercompletes,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:
-