public static interface Subscription.Builder extends CopyableBuilder<Subscription.Builder,Subscription>
Modifier and Type | Method and Description |
---|---|
Subscription.Builder |
eventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
|
Subscription.Builder |
eventSubscriptions(Consumer<EventSubscription.Builder>... eventSubscriptions)
The list of existing event subscriptions.
|
Subscription.Builder |
eventSubscriptions(EventSubscription... eventSubscriptions)
The list of existing event subscriptions.
|
Subscription.Builder |
resourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
|
Subscription.Builder |
topicArn(String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
|
copy
applyMutation, build
Subscription.Builder resourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which the SNS notification is sent.
resourceArn
- The ARN of the assessment template that is used during the event for which the SNS notification is
sent.Subscription.Builder topicArn(String topicArn)
The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.
topicArn
- The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.Subscription.Builder eventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of existing event subscriptions.
eventSubscriptions
- The list of existing event subscriptions.Subscription.Builder eventSubscriptions(EventSubscription... eventSubscriptions)
The list of existing event subscriptions.
eventSubscriptions
- The list of existing event subscriptions.Subscription.Builder eventSubscriptions(Consumer<EventSubscription.Builder>... eventSubscriptions)
The list of existing event subscriptions.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #eventSubscriptions(List)
.eventSubscriptions
- a consumer that will call methods on List.Builder
#eventSubscriptions(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.