Class PublishToTopic.Builder

java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.PublishToTopic.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<PublishToTopic>
Enclosing class:
PublishToTopic

@Stability(Deprecated) @Deprecated public static final class PublishToTopic.Builder extends Object implements software.amazon.jsii.Builder<PublishToTopic>
Deprecated.
(deprecated) A fluent builder for PublishToTopic.
  • Method Details

    • create

      @Stability(Deprecated) @Deprecated public static PublishToTopic.Builder create(ITopic topic)
      Deprecated.
      Parameters:
      topic - This parameter is required.
      Returns:
      a new instance of PublishToTopic.Builder.
    • message

      @Stability(Deprecated) @Deprecated public PublishToTopic.Builder message(TaskInput message)
      Deprecated.
      (deprecated) The text message to send to the topic.

      Parameters:
      message - The text message to send to the topic. This parameter is required.
      Returns:
      this
    • integrationPattern

      @Stability(Deprecated) @Deprecated public PublishToTopic.Builder integrationPattern(ServiceIntegrationPattern integrationPattern)
      Deprecated.
      (deprecated) 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.

      Default: FIRE_AND_FORGET

      Parameters:
      integrationPattern - The service integration pattern indicates different ways to call Publish to SNS. This parameter is required.
      Returns:
      this
    • messagePerSubscriptionType

      @Stability(Deprecated) @Deprecated public PublishToTopic.Builder messagePerSubscriptionType(Boolean messagePerSubscriptionType)
      Deprecated.
      (deprecated) 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.

      Default: false

      Parameters:
      messagePerSubscriptionType - If true, send a different message to every subscription type. This parameter is required.
      Returns:
      this
      See Also:
    • subject

      @Stability(Deprecated) @Deprecated public PublishToTopic.Builder subject(String subject)
      Deprecated.
      (deprecated) 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.

      Default: - No subject

      Parameters:
      subject - Used as the "Subject" line when the message is delivered to email endpoints. This parameter is required.
      Returns:
      this
    • build

      @Stability(Deprecated) @Deprecated public PublishToTopic build()
      Deprecated.
      Specified by:
      build in interface software.amazon.jsii.Builder<PublishToTopic>
      Returns:
      a newly built instance of PublishToTopic.