Package | Description |
---|---|
software.amazon.awssdk.services.sns |
|
software.amazon.awssdk.services.sns.model |
Modifier and Type | Method and Description |
---|---|
default PublishResponse |
SnsClient.publish(Consumer<PublishRequest.Builder> publishRequest)
Sends a message to an Amazon SNS topic or sends a text message (SMS message) directly to a phone number.
|
default CompletableFuture<PublishResponse> |
SnsAsyncClient.publish(Consumer<PublishRequest.Builder> publishRequest)
Sends a message to an Amazon SNS topic or sends a text message (SMS message) directly to a phone number.
|
Modifier and Type | Method and Description |
---|---|
static PublishRequest.Builder |
PublishRequest.builder() |
PublishRequest.Builder |
PublishRequest.Builder.message(String message)
The message you want to send.
|
PublishRequest.Builder |
PublishRequest.Builder.messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
Message attributes for Publish action.
|
PublishRequest.Builder |
PublishRequest.Builder.messageStructure(String messageStructure)
Set
MessageStructure to json if you want to send a different message for each
protocol. |
PublishRequest.Builder |
PublishRequest.Builder.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PublishRequest.Builder |
PublishRequest.Builder.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PublishRequest.Builder |
PublishRequest.Builder.phoneNumber(String phoneNumber)
The phone number to which you want to deliver an SMS message.
|
PublishRequest.Builder |
PublishRequest.Builder.subject(String subject)
Optional parameter to be used as the "Subject" line when the message is delivered to email endpoints.
|
PublishRequest.Builder |
PublishRequest.Builder.targetArn(String targetArn)
If you don't specify a value for the
TargetArn parameter, you must specify a value for the
PhoneNumber or TopicArn parameters. |
PublishRequest.Builder |
PublishRequest.toBuilder() |
PublishRequest.Builder |
PublishRequest.Builder.topicArn(String topicArn)
The topic you want to publish to.
|
Modifier and Type | Method and Description |
---|---|
static Class<? extends PublishRequest.Builder> |
PublishRequest.serializableBuilderClass() |
Copyright © 2020. All rights reserved.