@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subscription extends Object implements Serializable, Cloneable, StructuredPojo
Information about the AWS Shield Advanced subscription for an account.
Constructor and Description |
---|
Subscription() |
Modifier and Type | Method and Description |
---|---|
Subscription |
clone() |
boolean |
equals(Object obj) |
String |
getAutoRenew()
If
ENABLED , the subscription will be automatically renewed at the end of the existing subscription
period. |
Date |
getEndTime()
The date and time your subscription will end.
|
List<Limit> |
getLimits()
Specifies how many protections of a given type you can create.
|
Date |
getStartTime()
The start time of the subscription, in Unix time in seconds.
|
Long |
getTimeCommitmentInSeconds()
The length, in seconds, of the AWS Shield Advanced subscription for the account.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoRenew(String autoRenew)
If
ENABLED , the subscription will be automatically renewed at the end of the existing subscription
period. |
void |
setEndTime(Date endTime)
The date and time your subscription will end.
|
void |
setLimits(Collection<Limit> limits)
Specifies how many protections of a given type you can create.
|
void |
setStartTime(Date startTime)
The start time of the subscription, in Unix time in seconds.
|
void |
setTimeCommitmentInSeconds(Long timeCommitmentInSeconds)
The length, in seconds, of the AWS Shield Advanced subscription for the account.
|
String |
toString()
Returns a string representation of this object.
|
Subscription |
withAutoRenew(AutoRenew autoRenew)
If
ENABLED , the subscription will be automatically renewed at the end of the existing subscription
period. |
Subscription |
withAutoRenew(String autoRenew)
If
ENABLED , the subscription will be automatically renewed at the end of the existing subscription
period. |
Subscription |
withEndTime(Date endTime)
The date and time your subscription will end.
|
Subscription |
withLimits(Collection<Limit> limits)
Specifies how many protections of a given type you can create.
|
Subscription |
withLimits(Limit... limits)
Specifies how many protections of a given type you can create.
|
Subscription |
withStartTime(Date startTime)
The start time of the subscription, in Unix time in seconds.
|
Subscription |
withTimeCommitmentInSeconds(Long timeCommitmentInSeconds)
The length, in seconds, of the AWS Shield Advanced subscription for the account.
|
public void setStartTime(Date startTime)
The start time of the subscription, in Unix time in seconds. For more information see timestamp.
startTime
- The start time of the subscription, in Unix time in seconds. For more information see timestamp.public Date getStartTime()
The start time of the subscription, in Unix time in seconds. For more information see timestamp.
public Subscription withStartTime(Date startTime)
The start time of the subscription, in Unix time in seconds. For more information see timestamp.
startTime
- The start time of the subscription, in Unix time in seconds. For more information see timestamp.public void setEndTime(Date endTime)
The date and time your subscription will end.
endTime
- The date and time your subscription will end.public Date getEndTime()
The date and time your subscription will end.
public Subscription withEndTime(Date endTime)
The date and time your subscription will end.
endTime
- The date and time your subscription will end.public void setTimeCommitmentInSeconds(Long timeCommitmentInSeconds)
The length, in seconds, of the AWS Shield Advanced subscription for the account.
timeCommitmentInSeconds
- The length, in seconds, of the AWS Shield Advanced subscription for the account.public Long getTimeCommitmentInSeconds()
The length, in seconds, of the AWS Shield Advanced subscription for the account.
public Subscription withTimeCommitmentInSeconds(Long timeCommitmentInSeconds)
The length, in seconds, of the AWS Shield Advanced subscription for the account.
timeCommitmentInSeconds
- The length, in seconds, of the AWS Shield Advanced subscription for the account.public void setAutoRenew(String 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 to ENABLED
. You can change
this by submitting an UpdateSubscription
request. If the UpdateSubscription
request
does not included a value for AutoRenew
, the existing value for AutoRenew
remains
unchanged.
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 to ENABLED
. You can
change this by submitting an UpdateSubscription
request. If the
UpdateSubscription
request does not included a value for AutoRenew
, the existing
value for AutoRenew
remains unchanged.
AutoRenew
public String getAutoRenew()
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 to ENABLED
. You can change
this by submitting an UpdateSubscription
request. If the UpdateSubscription
request
does not included a value for AutoRenew
, the existing value for AutoRenew
remains
unchanged.
ENABLED
, the subscription will be automatically renewed at the end of the existing
subscription period.
When you initally create a subscription, AutoRenew
is set to ENABLED
. You can
change this by submitting an UpdateSubscription
request. If the
UpdateSubscription
request does not included a value for AutoRenew
, the
existing value for AutoRenew
remains unchanged.
AutoRenew
public Subscription withAutoRenew(String 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 to ENABLED
. You can change
this by submitting an UpdateSubscription
request. If the UpdateSubscription
request
does not included a value for AutoRenew
, the existing value for AutoRenew
remains
unchanged.
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 to ENABLED
. You can
change this by submitting an UpdateSubscription
request. If the
UpdateSubscription
request does not included a value for AutoRenew
, the existing
value for AutoRenew
remains unchanged.
AutoRenew
public Subscription withAutoRenew(AutoRenew 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 to ENABLED
. You can change
this by submitting an UpdateSubscription
request. If the UpdateSubscription
request
does not included a value for AutoRenew
, the existing value for AutoRenew
remains
unchanged.
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 to ENABLED
. You can
change this by submitting an UpdateSubscription
request. If the
UpdateSubscription
request does not included a value for AutoRenew
, the existing
value for AutoRenew
remains unchanged.
AutoRenew
public List<Limit> getLimits()
Specifies how many protections of a given type you can create.
public void setLimits(Collection<Limit> limits)
Specifies how many protections of a given type you can create.
limits
- Specifies how many protections of a given type you can create.public Subscription withLimits(Limit... limits)
Specifies how many protections of a given type you can create.
NOTE: This method appends the values to the existing list (if any). Use
setLimits(java.util.Collection)
or withLimits(java.util.Collection)
if you want to override the
existing values.
limits
- Specifies how many protections of a given type you can create.public Subscription withLimits(Collection<Limit> limits)
Specifies how many protections of a given type you can create.
limits
- Specifies how many protections of a given type you can create.public String toString()
toString
in class Object
Object.toString()
public Subscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.