Interface Subscription.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Subscription.Builder,Subscription>, SdkBuilder<Subscription.Builder,Subscription>, SdkPojo
Enclosing class:
Subscription

public static interface Subscription.Builder extends SdkPojo, CopyableBuilder<Subscription.Builder,Subscription>
  • Method Details

    • resourceArn

      Subscription.Builder resourceArn(String resourceArn)

      The ARN of the assessment template that is used during the event for which the SNS notification is sent.

      Parameters:
      resourceArn - The ARN of the assessment template that is used during the event for which the SNS notification is sent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topicArn

      Subscription.Builder topicArn(String topicArn)

      The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

      Parameters:
      topicArn - The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventSubscriptions

      Subscription.Builder eventSubscriptions(Collection<EventSubscription> eventSubscriptions)

      The list of existing event subscriptions.

      Parameters:
      eventSubscriptions - The list of existing event subscriptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventSubscriptions

      Subscription.Builder eventSubscriptions(EventSubscription... eventSubscriptions)

      The list of existing event subscriptions.

      Parameters:
      eventSubscriptions - The list of existing event subscriptions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventSubscriptions

      Subscription.Builder eventSubscriptions(Consumer<EventSubscription.Builder>... eventSubscriptions)

      The list of existing event subscriptions.

      This is a convenience method that creates an instance of the EventSubscription.Builder avoiding the need to create one manually via EventSubscription.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to eventSubscriptions(List<EventSubscription>).

      Parameters:
      eventSubscriptions - a consumer that will call methods on EventSubscription.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: