@Stability(value=Experimental) public static final class PublishToTopic.Builder extends Object
PublishToTopic.| Modifier and Type | Method and Description |
|---|---|
PublishToTopic |
build() |
static PublishToTopic.Builder |
create(ITopic topic)
EXPERIMENTAL
|
PublishToTopic.Builder |
integrationPattern(ServiceIntegrationPattern integrationPattern)
The service integration pattern indicates different ways to call Publish to SNS.
|
PublishToTopic.Builder |
message(TaskInput message)
The text message to send to the topic.
|
PublishToTopic.Builder |
messagePerSubscriptionType(Boolean messagePerSubscriptionType)
If true, send a different message to every subscription type.
|
PublishToTopic.Builder |
subject(String subject)
Message subject.
|
@Stability(value=Experimental) public static PublishToTopic.Builder create(ITopic topic)
topic - This parameter is required.PublishToTopic.Builder.@Stability(value=Experimental) public PublishToTopic.Builder message(TaskInput message)
EXPERIMENTAL
message - The text message to send to the topic. This parameter is required.this@Stability(value=Experimental) public PublishToTopic.Builder integrationPattern(ServiceIntegrationPattern integrationPattern)
The valid value is either FIRE_AND_FORGET or WAIT_FOR_TASK_TOKEN.
Default: FIRE_AND_FORGET
EXPERIMENTAL
integrationPattern - The service integration pattern indicates different ways to call Publish to SNS. This parameter is required.this@Stability(value=Experimental) public PublishToTopic.Builder messagePerSubscriptionType(Boolean messagePerSubscriptionType)
If this is set to true, message must be a JSON object with a "default" key and a key for every subscription type (such as "sqs", "email", etc.) The values are strings representing the messages being sent to every subscription type.
EXPERIMENTAL
messagePerSubscriptionType - If true, send a different message to every subscription type. This parameter is required.thishttps://docs.aws.amazon.com/sns/latest/api/API_Publish.html#API_Publish_RequestParameters@Stability(value=Experimental) public PublishToTopic.Builder subject(String subject)
EXPERIMENTAL
subject - Message subject. This parameter is required.this@Stability(value=Experimental) public PublishToTopic build()
Copyright © 2020. All rights reserved.