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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subscription.BuildereventSubscriptions(Collection<EventSubscription> eventSubscriptions)The list of existing event subscriptions.Subscription.BuildereventSubscriptions(Consumer<EventSubscription.Builder>... eventSubscriptions)The list of existing event subscriptions.Subscription.BuildereventSubscriptions(EventSubscription... eventSubscriptions)The list of existing event subscriptions.Subscription.BuilderresourceArn(String resourceArn)The ARN of the assessment template that is used during the event for which the SNS notification is sent.Subscription.BuildertopicArn(String topicArn)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 Detail
-
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 theEventSubscription.Builderavoiding the need to create one manually viaEventSubscription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#eventSubscriptions(List.) - 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:
#eventSubscriptions(java.util.Collection)
-
-