Interface PublishBatchRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PublishBatchRequest.Builder,PublishBatchRequest>
,SdkBuilder<PublishBatchRequest.Builder,PublishBatchRequest>
,SdkPojo
,SdkRequest.Builder
,SnsRequest.Builder
- Enclosing class:
- PublishBatchRequest
public static interface PublishBatchRequest.Builder extends SnsRequest.Builder, SdkPojo, CopyableBuilder<PublishBatchRequest.Builder,PublishBatchRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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.services.sns.model.SnsRequest.Builder
build
-
-
-
-
Method Detail
-
topicArn
PublishBatchRequest.Builder topicArn(String topicArn)
The Amazon resource name (ARN) of the topic you want to batch publish to.
- Parameters:
topicArn
- The Amazon resource name (ARN) of the topic you want to batch publish to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publishBatchRequestEntries
PublishBatchRequest.Builder publishBatchRequestEntries(Collection<PublishBatchRequestEntry> publishBatchRequestEntries)
A list of
PublishBatch
request entries to be sent to the SNS topic.- Parameters:
publishBatchRequestEntries
- A list ofPublishBatch
request entries to be sent to the SNS topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publishBatchRequestEntries
PublishBatchRequest.Builder publishBatchRequestEntries(PublishBatchRequestEntry... publishBatchRequestEntries)
A list of
PublishBatch
request entries to be sent to the SNS topic.- Parameters:
publishBatchRequestEntries
- A list ofPublishBatch
request entries to be sent to the SNS topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publishBatchRequestEntries
PublishBatchRequest.Builder publishBatchRequestEntries(Consumer<PublishBatchRequestEntry.Builder>... publishBatchRequestEntries)
A list of
This is a convenience method that creates an instance of thePublishBatch
request entries to be sent to the SNS topic.PublishBatchRequestEntry.Builder
avoiding the need to create one manually viaPublishBatchRequestEntry.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#publishBatchRequestEntries(List
.) - Parameters:
publishBatchRequestEntries
- a consumer that will call methods onPublishBatchRequestEntry.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#publishBatchRequestEntries(java.util.Collection
)
-
overrideConfiguration
PublishBatchRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PublishBatchRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-