@Stability(value=Experimental) public static final class PublishToTopicProps.Builder extends Object
PublishToTopicProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PublishToTopicProps |
build()
Builds the configured instance.
|
PublishToTopicProps.Builder |
integrationPattern(ServiceIntegrationPattern integrationPattern)
Sets the value of
PublishToTopicProps.getIntegrationPattern() |
PublishToTopicProps.Builder |
message(TaskInput message)
Sets the value of
PublishToTopicProps.getMessage() |
PublishToTopicProps.Builder |
messagePerSubscriptionType(Boolean messagePerSubscriptionType)
Sets the value of
PublishToTopicProps.getMessagePerSubscriptionType() |
PublishToTopicProps.Builder |
subject(String subject)
Sets the value of
PublishToTopicProps.getSubject() |
@Stability(value=Experimental) public PublishToTopicProps.Builder message(TaskInput message)
PublishToTopicProps.getMessage()message - The text message to send to the topic. This parameter is required.this@Stability(value=Experimental) public PublishToTopicProps.Builder integrationPattern(ServiceIntegrationPattern integrationPattern)
PublishToTopicProps.getIntegrationPattern()integrationPattern - The service integration pattern indicates different ways to call Publish to SNS.
The valid value is either FIRE_AND_FORGET or WAIT_FOR_TASK_TOKEN.this@Stability(value=Experimental) public PublishToTopicProps.Builder messagePerSubscriptionType(Boolean messagePerSubscriptionType)
PublishToTopicProps.getMessagePerSubscriptionType()messagePerSubscriptionType - If true, send a different message to every subscription type.
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.this@Stability(value=Experimental) public PublishToTopicProps.Builder subject(String subject)
PublishToTopicProps.getSubject()subject - Message subject.this@Stability(value=Experimental) public PublishToTopicProps build()
PublishToTopicPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.