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 Summary
Modifier and TypeMethodDescriptioneventSubscriptions
(Collection<EventSubscription> eventSubscriptions) The list of existing event subscriptions.eventSubscriptions
(Consumer<EventSubscription.Builder>... eventSubscriptions) The list of existing event subscriptions.eventSubscriptions
(EventSubscription... eventSubscriptions) The list of existing event subscriptions.resourceArn
(String resourceArn) The ARN of the assessment template that is used during the event for which the SNS notification is sent.The ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
The list of existing event subscriptions.
This is a convenience method that creates an instance of theEventSubscription.Builder
avoiding the need to create one manually viaEventSubscription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventSubscriptions(List<EventSubscription>)
.- Parameters:
eventSubscriptions
- a consumer that will call methods onEventSubscription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-