Interface Subscription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Subscription.Builder,
,Subscription> SdkBuilder<Subscription.Builder,
,Subscription> SdkPojo
- Enclosing class:
Subscription
-
Method Summary
Modifier and TypeMethodDescriptionIfENABLED
, the subscription will be automatically renewed at the end of the existing subscription period.IfENABLED
, the subscription will be automatically renewed at the end of the existing subscription period.The date and time your subscription will end.limits
(Collection<Limit> limits) Specifies how many protections of a given type you can create.limits
(Consumer<Limit.Builder>... limits) Specifies how many protections of a given type you can create.Specifies how many protections of a given type you can create.proactiveEngagementStatus
(String proactiveEngagementStatus) IfENABLED
, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.proactiveEngagementStatus
(ProactiveEngagementStatus proactiveEngagementStatus) IfENABLED
, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.The start time of the subscription, in Unix time in seconds.subscriptionArn
(String subscriptionArn) The ARN (Amazon Resource Name) of the subscription.default Subscription.Builder
subscriptionLimits
(Consumer<SubscriptionLimits.Builder> subscriptionLimits) Limits settings for your subscription.subscriptionLimits
(SubscriptionLimits subscriptionLimits) Limits settings for your subscription.timeCommitmentInSeconds
(Long timeCommitmentInSeconds) The length, in seconds, of the Shield Advanced subscription for the account.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
-
startTime
The start time of the subscription, in Unix time in seconds.
- Parameters:
startTime
- The start time of the subscription, in Unix time in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The date and time your subscription will end.
- Parameters:
endTime
- The date and time your subscription will end.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeCommitmentInSeconds
The length, in seconds, of the Shield Advanced subscription for the account.
- Parameters:
timeCommitmentInSeconds
- The length, in seconds, of the Shield Advanced subscription for the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoRenew
If
ENABLED
, the subscription will be automatically renewed at the end of the existing subscription period.When you initally create a subscription,
AutoRenew
is set toENABLED
. You can change this by submitting anUpdateSubscription
request. If theUpdateSubscription
request does not included a value forAutoRenew
, the existing value forAutoRenew
remains unchanged.- Parameters:
autoRenew
- IfENABLED
, the subscription will be automatically renewed at the end of the existing subscription period.When you initally create a subscription,
AutoRenew
is set toENABLED
. You can change this by submitting anUpdateSubscription
request. If theUpdateSubscription
request does not included a value forAutoRenew
, the existing value forAutoRenew
remains unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoRenew
If
ENABLED
, the subscription will be automatically renewed at the end of the existing subscription period.When you initally create a subscription,
AutoRenew
is set toENABLED
. You can change this by submitting anUpdateSubscription
request. If theUpdateSubscription
request does not included a value forAutoRenew
, the existing value forAutoRenew
remains unchanged.- Parameters:
autoRenew
- IfENABLED
, the subscription will be automatically renewed at the end of the existing subscription period.When you initally create a subscription,
AutoRenew
is set toENABLED
. You can change this by submitting anUpdateSubscription
request. If theUpdateSubscription
request does not included a value forAutoRenew
, the existing value forAutoRenew
remains unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
limits
Specifies how many protections of a given type you can create.
- Parameters:
limits
- Specifies how many protections of a given type you can create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limits
Specifies how many protections of a given type you can create.
- Parameters:
limits
- Specifies how many protections of a given type you can create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
limits
Specifies how many protections of a given type you can create.
This is a convenience method that creates an instance of theLimit.Builder
avoiding the need to create one manually viaLimit.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolimits(List<Limit>)
.- Parameters:
limits
- a consumer that will call methods onLimit.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
proactiveEngagementStatus
If
ENABLED
, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.If
PENDING
, you have requested proactive engagement and the request is pending. The status changes toENABLED
when your request is fully processed.If
DISABLED
, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.- Parameters:
proactiveEngagementStatus
- IfENABLED
, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.If
PENDING
, you have requested proactive engagement and the request is pending. The status changes toENABLED
when your request is fully processed.If
DISABLED
, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
proactiveEngagementStatus
If
ENABLED
, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.If
PENDING
, you have requested proactive engagement and the request is pending. The status changes toENABLED
when your request is fully processed.If
DISABLED
, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.- Parameters:
proactiveEngagementStatus
- IfENABLED
, the Shield Response Team (SRT) will use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support.If
PENDING
, you have requested proactive engagement and the request is pending. The status changes toENABLED
when your request is fully processed.If
DISABLED
, the SRT will not proactively notify contacts about escalations or to initiate proactive customer support.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subscriptionLimits
Limits settings for your subscription.
- Parameters:
subscriptionLimits
- Limits settings for your subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subscriptionLimits
default Subscription.Builder subscriptionLimits(Consumer<SubscriptionLimits.Builder> subscriptionLimits) Limits settings for your subscription.
This is a convenience method that creates an instance of theSubscriptionLimits.Builder
avoiding the need to create one manually viaSubscriptionLimits.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubscriptionLimits(SubscriptionLimits)
.- Parameters:
subscriptionLimits
- a consumer that will call methods onSubscriptionLimits.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subscriptionArn
The ARN (Amazon Resource Name) of the subscription.
- Parameters:
subscriptionArn
- The ARN (Amazon Resource Name) of the subscription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-