@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EksAnywhereSubscription extends Object implements Serializable, Cloneable, StructuredPojo
An EKS Anywhere subscription authorizing the customer to support for licensed clusters and access to EKS Anywhere Curated Packages.
Constructor and Description |
---|
EksAnywhereSubscription() |
Modifier and Type | Method and Description |
---|---|
EksAnywhereSubscription |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
EksAnywhereSubscription |
clearTagsEntries()
Removes all the entries added into Tags.
|
EksAnywhereSubscription |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) for the subscription.
|
Boolean |
getAutoRenew()
A boolean indicating whether or not a subscription will auto renew when it expires.
|
Date |
getCreatedAt()
The Unix timestamp in seconds for when the subscription was created.
|
Date |
getEffectiveDate()
The Unix timestamp in seconds for when the subscription is effective.
|
Date |
getExpirationDate()
The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew
configuration of the subscription object.
|
String |
getId()
UUID identifying a subscription.
|
List<String> |
getLicenseArns()
Amazon Web Services License Manager ARN associated with the subscription.
|
Integer |
getLicenseQuantity()
The number of licenses included in a subscription.
|
String |
getLicenseType()
The type of licenses included in the subscription.
|
String |
getStatus()
The status of a subscription.
|
Map<String,String> |
getTags()
The metadata for a subscription to assist with categorization and organization.
|
EksAnywhereSubscriptionTerm |
getTerm()
An EksAnywhereSubscriptionTerm object.
|
int |
hashCode() |
Boolean |
isAutoRenew()
A boolean indicating whether or not a subscription will auto renew when it expires.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) for the subscription.
|
void |
setAutoRenew(Boolean autoRenew)
A boolean indicating whether or not a subscription will auto renew when it expires.
|
void |
setCreatedAt(Date createdAt)
The Unix timestamp in seconds for when the subscription was created.
|
void |
setEffectiveDate(Date effectiveDate)
The Unix timestamp in seconds for when the subscription is effective.
|
void |
setExpirationDate(Date expirationDate)
The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew
configuration of the subscription object.
|
void |
setId(String id)
UUID identifying a subscription.
|
void |
setLicenseArns(Collection<String> licenseArns)
Amazon Web Services License Manager ARN associated with the subscription.
|
void |
setLicenseQuantity(Integer licenseQuantity)
The number of licenses included in a subscription.
|
void |
setLicenseType(String licenseType)
The type of licenses included in the subscription.
|
void |
setStatus(String status)
The status of a subscription.
|
void |
setTags(Map<String,String> tags)
The metadata for a subscription to assist with categorization and organization.
|
void |
setTerm(EksAnywhereSubscriptionTerm term)
An EksAnywhereSubscriptionTerm object.
|
String |
toString()
Returns a string representation of this object.
|
EksAnywhereSubscription |
withArn(String arn)
The Amazon Resource Name (ARN) for the subscription.
|
EksAnywhereSubscription |
withAutoRenew(Boolean autoRenew)
A boolean indicating whether or not a subscription will auto renew when it expires.
|
EksAnywhereSubscription |
withCreatedAt(Date createdAt)
The Unix timestamp in seconds for when the subscription was created.
|
EksAnywhereSubscription |
withEffectiveDate(Date effectiveDate)
The Unix timestamp in seconds for when the subscription is effective.
|
EksAnywhereSubscription |
withExpirationDate(Date expirationDate)
The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew
configuration of the subscription object.
|
EksAnywhereSubscription |
withId(String id)
UUID identifying a subscription.
|
EksAnywhereSubscription |
withLicenseArns(Collection<String> licenseArns)
Amazon Web Services License Manager ARN associated with the subscription.
|
EksAnywhereSubscription |
withLicenseArns(String... licenseArns)
Amazon Web Services License Manager ARN associated with the subscription.
|
EksAnywhereSubscription |
withLicenseQuantity(Integer licenseQuantity)
The number of licenses included in a subscription.
|
EksAnywhereSubscription |
withLicenseType(EksAnywhereSubscriptionLicenseType licenseType)
The type of licenses included in the subscription.
|
EksAnywhereSubscription |
withLicenseType(String licenseType)
The type of licenses included in the subscription.
|
EksAnywhereSubscription |
withStatus(String status)
The status of a subscription.
|
EksAnywhereSubscription |
withTags(Map<String,String> tags)
The metadata for a subscription to assist with categorization and organization.
|
EksAnywhereSubscription |
withTerm(EksAnywhereSubscriptionTerm term)
An EksAnywhereSubscriptionTerm object.
|
public void setId(String id)
UUID identifying a subscription.
id
- UUID identifying a subscription.public String getId()
UUID identifying a subscription.
public EksAnywhereSubscription withId(String id)
UUID identifying a subscription.
id
- UUID identifying a subscription.public void setArn(String arn)
The Amazon Resource Name (ARN) for the subscription.
arn
- The Amazon Resource Name (ARN) for the subscription.public String getArn()
The Amazon Resource Name (ARN) for the subscription.
public EksAnywhereSubscription withArn(String arn)
The Amazon Resource Name (ARN) for the subscription.
arn
- The Amazon Resource Name (ARN) for the subscription.public void setCreatedAt(Date createdAt)
The Unix timestamp in seconds for when the subscription was created.
createdAt
- The Unix timestamp in seconds for when the subscription was created.public Date getCreatedAt()
The Unix timestamp in seconds for when the subscription was created.
public EksAnywhereSubscription withCreatedAt(Date createdAt)
The Unix timestamp in seconds for when the subscription was created.
createdAt
- The Unix timestamp in seconds for when the subscription was created.public void setEffectiveDate(Date effectiveDate)
The Unix timestamp in seconds for when the subscription is effective.
effectiveDate
- The Unix timestamp in seconds for when the subscription is effective.public Date getEffectiveDate()
The Unix timestamp in seconds for when the subscription is effective.
public EksAnywhereSubscription withEffectiveDate(Date effectiveDate)
The Unix timestamp in seconds for when the subscription is effective.
effectiveDate
- The Unix timestamp in seconds for when the subscription is effective.public void setExpirationDate(Date expirationDate)
The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew configuration of the subscription object.
expirationDate
- The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto
renew configuration of the subscription object.public Date getExpirationDate()
The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew configuration of the subscription object.
public EksAnywhereSubscription withExpirationDate(Date expirationDate)
The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto renew configuration of the subscription object.
expirationDate
- The Unix timestamp in seconds for when the subscription will expire or auto renew, depending on the auto
renew configuration of the subscription object.public void setLicenseQuantity(Integer licenseQuantity)
The number of licenses included in a subscription. Valid values are between 1 and 100.
licenseQuantity
- The number of licenses included in a subscription. Valid values are between 1 and 100.public Integer getLicenseQuantity()
The number of licenses included in a subscription. Valid values are between 1 and 100.
public EksAnywhereSubscription withLicenseQuantity(Integer licenseQuantity)
The number of licenses included in a subscription. Valid values are between 1 and 100.
licenseQuantity
- The number of licenses included in a subscription. Valid values are between 1 and 100.public void setLicenseType(String licenseType)
The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
licenseType
- The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type,
each license covers support for a single EKS Anywhere cluster.EksAnywhereSubscriptionLicenseType
public String getLicenseType()
The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
EksAnywhereSubscriptionLicenseType
public EksAnywhereSubscription withLicenseType(String licenseType)
The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
licenseType
- The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type,
each license covers support for a single EKS Anywhere cluster.EksAnywhereSubscriptionLicenseType
public EksAnywhereSubscription withLicenseType(EksAnywhereSubscriptionLicenseType licenseType)
The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type, each license covers support for a single EKS Anywhere cluster.
licenseType
- The type of licenses included in the subscription. Valid value is CLUSTER. With the CLUSTER license type,
each license covers support for a single EKS Anywhere cluster.EksAnywhereSubscriptionLicenseType
public void setTerm(EksAnywhereSubscriptionTerm term)
An EksAnywhereSubscriptionTerm object.
term
- An EksAnywhereSubscriptionTerm object.public EksAnywhereSubscriptionTerm getTerm()
An EksAnywhereSubscriptionTerm object.
public EksAnywhereSubscription withTerm(EksAnywhereSubscriptionTerm term)
An EksAnywhereSubscriptionTerm object.
term
- An EksAnywhereSubscriptionTerm object.public void setStatus(String status)
The status of a subscription.
status
- The status of a subscription.public String getStatus()
The status of a subscription.
public EksAnywhereSubscription withStatus(String status)
The status of a subscription.
status
- The status of a subscription.public void setAutoRenew(Boolean autoRenew)
A boolean indicating whether or not a subscription will auto renew when it expires.
autoRenew
- A boolean indicating whether or not a subscription will auto renew when it expires.public Boolean getAutoRenew()
A boolean indicating whether or not a subscription will auto renew when it expires.
public EksAnywhereSubscription withAutoRenew(Boolean autoRenew)
A boolean indicating whether or not a subscription will auto renew when it expires.
autoRenew
- A boolean indicating whether or not a subscription will auto renew when it expires.public Boolean isAutoRenew()
A boolean indicating whether or not a subscription will auto renew when it expires.
public List<String> getLicenseArns()
Amazon Web Services License Manager ARN associated with the subscription.
public void setLicenseArns(Collection<String> licenseArns)
Amazon Web Services License Manager ARN associated with the subscription.
licenseArns
- Amazon Web Services License Manager ARN associated with the subscription.public EksAnywhereSubscription withLicenseArns(String... licenseArns)
Amazon Web Services License Manager ARN associated with the subscription.
NOTE: This method appends the values to the existing list (if any). Use
setLicenseArns(java.util.Collection)
or withLicenseArns(java.util.Collection)
if you want to
override the existing values.
licenseArns
- Amazon Web Services License Manager ARN associated with the subscription.public EksAnywhereSubscription withLicenseArns(Collection<String> licenseArns)
Amazon Web Services License Manager ARN associated with the subscription.
licenseArns
- Amazon Web Services License Manager ARN associated with the subscription.public Map<String,String> getTags()
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags do not propagate to any other resources associated with the subscription.
public void setTags(Map<String,String> tags)
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags do not propagate to any other resources associated with the subscription.
tags
- The metadata for a subscription to assist with categorization and organization. Each tag consists of a key
and an optional value. Subscription tags do not propagate to any other resources associated with the
subscription.public EksAnywhereSubscription withTags(Map<String,String> tags)
The metadata for a subscription to assist with categorization and organization. Each tag consists of a key and an optional value. Subscription tags do not propagate to any other resources associated with the subscription.
tags
- The metadata for a subscription to assist with categorization and organization. Each tag consists of a key
and an optional value. Subscription tags do not propagate to any other resources associated with the
subscription.public EksAnywhereSubscription addTagsEntry(String key, String value)
public EksAnywhereSubscription clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public EksAnywhereSubscription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.