Class PublishToTopicProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.PublishToTopicProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublishToTopicProps>
- Enclosing interface:
- PublishToTopicProps
@Stability(Deprecated)
@Deprecated
public static final class PublishToTopicProps.Builder
extends Object
implements software.amazon.jsii.Builder<PublishToTopicProps>
Deprecated.
A builder for
PublishToTopicProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.integrationPattern
(ServiceIntegrationPattern integrationPattern) Deprecated.Deprecated.messagePerSubscriptionType
(Boolean messagePerSubscriptionType) Deprecated.Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
message
Deprecated.Sets the value ofPublishToTopicProps.getMessage()
- Parameters:
message
- The text message to send to the topic. This parameter is required.- Returns:
this
-
integrationPattern
@Stability(Deprecated) @Deprecated public PublishToTopicProps.Builder integrationPattern(ServiceIntegrationPattern integrationPattern) Deprecated.Sets the value ofPublishToTopicProps.getIntegrationPattern()
- Parameters:
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.- Returns:
this
-
messagePerSubscriptionType
@Stability(Deprecated) @Deprecated public PublishToTopicProps.Builder messagePerSubscriptionType(Boolean messagePerSubscriptionType) Deprecated.Sets the value ofPublishToTopicProps.getMessagePerSubscriptionType()
- Parameters:
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.- Returns:
this
-
subject
Deprecated.Sets the value ofPublishToTopicProps.getSubject()
- Parameters:
subject
- Used as the "Subject" line when the message is delivered to email endpoints. Also included, if present, in the standard JSON messages delivered to other endpoints.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PublishToTopicProps>
- Returns:
- a new instance of
PublishToTopicProps
- Throws:
NullPointerException
- if any required attribute was not provided
-