Interface PublishBatchResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PublishBatchResponse.Builder,PublishBatchResponse>,SdkBuilder<PublishBatchResponse.Builder,PublishBatchResponse>,SdkPojo,SdkResponse.Builder,SnsResponse.Builder
- Enclosing class:
- PublishBatchResponse
@Mutable @NotThreadSafe public static interface PublishBatchResponse.Builder extends SnsResponse.Builder, SdkPojo, CopyableBuilder<PublishBatchResponse.Builder,PublishBatchResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PublishBatchResponse.Builderfailed(Collection<BatchResultErrorEntry> failed)A list of failedPublishBatchresponses.PublishBatchResponse.Builderfailed(Consumer<BatchResultErrorEntry.Builder>... failed)A list of failedPublishBatchresponses.PublishBatchResponse.Builderfailed(BatchResultErrorEntry... failed)A list of failedPublishBatchresponses.PublishBatchResponse.Buildersuccessful(Collection<PublishBatchResultEntry> successful)A list of successfulPublishBatchresponses.PublishBatchResponse.Buildersuccessful(Consumer<PublishBatchResultEntry.Builder>... successful)A list of successfulPublishBatchresponses.PublishBatchResponse.Buildersuccessful(PublishBatchResultEntry... successful)A list of successfulPublishBatchresponses.-
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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.sns.model.SnsResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
successful
PublishBatchResponse.Builder successful(Collection<PublishBatchResultEntry> 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
PublishBatchResponse.Builder successful(PublishBatchResultEntry... 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
PublishBatchResponse.Builder successful(Consumer<PublishBatchResultEntry.Builder>... 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 to#successful(List.) - 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:
#successful(java.util.Collection)
-
failed
PublishBatchResponse.Builder failed(Collection<BatchResultErrorEntry> 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
PublishBatchResponse.Builder failed(BatchResultErrorEntry... 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
PublishBatchResponse.Builder failed(Consumer<BatchResultErrorEntry.Builder>... 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 to#failed(List.) - 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:
#failed(java.util.Collection)
-
-