@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GrantedLicense extends Object implements Serializable, Cloneable, StructuredPojo
Describes a license that is granted to a grantee.
Constructor and Description |
---|
GrantedLicense() |
Modifier and Type | Method and Description |
---|---|
GrantedLicense |
clone() |
boolean |
equals(Object obj) |
String |
getBeneficiary()
Granted license beneficiary.
|
ConsumptionConfiguration |
getConsumptionConfiguration()
Configuration for consumption of the license.
|
String |
getCreateTime()
Creation time of the granted license.
|
List<Entitlement> |
getEntitlements()
License entitlements.
|
String |
getHomeRegion()
Home Region of the granted license.
|
IssuerDetails |
getIssuer()
Granted license issuer.
|
String |
getLicenseArn()
Amazon Resource Name (ARN) of the license.
|
List<Metadata> |
getLicenseMetadata()
Granted license metadata.
|
String |
getLicenseName()
License name.
|
String |
getProductName()
Product name.
|
String |
getProductSKU()
Product SKU.
|
ReceivedMetadata |
getReceivedMetadata()
Granted license received metadata.
|
String |
getStatus()
Granted license status.
|
DatetimeRange |
getValidity()
Date and time range during which the granted license is valid, in ISO8601-UTC format.
|
String |
getVersion()
Version of the granted license.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBeneficiary(String beneficiary)
Granted license beneficiary.
|
void |
setConsumptionConfiguration(ConsumptionConfiguration consumptionConfiguration)
Configuration for consumption of the license.
|
void |
setCreateTime(String createTime)
Creation time of the granted license.
|
void |
setEntitlements(Collection<Entitlement> entitlements)
License entitlements.
|
void |
setHomeRegion(String homeRegion)
Home Region of the granted license.
|
void |
setIssuer(IssuerDetails issuer)
Granted license issuer.
|
void |
setLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
|
void |
setLicenseMetadata(Collection<Metadata> licenseMetadata)
Granted license metadata.
|
void |
setLicenseName(String licenseName)
License name.
|
void |
setProductName(String productName)
Product name.
|
void |
setProductSKU(String productSKU)
Product SKU.
|
void |
setReceivedMetadata(ReceivedMetadata receivedMetadata)
Granted license received metadata.
|
void |
setStatus(String status)
Granted license status.
|
void |
setValidity(DatetimeRange validity)
Date and time range during which the granted license is valid, in ISO8601-UTC format.
|
void |
setVersion(String version)
Version of the granted license.
|
String |
toString()
Returns a string representation of this object.
|
GrantedLicense |
withBeneficiary(String beneficiary)
Granted license beneficiary.
|
GrantedLicense |
withConsumptionConfiguration(ConsumptionConfiguration consumptionConfiguration)
Configuration for consumption of the license.
|
GrantedLicense |
withCreateTime(String createTime)
Creation time of the granted license.
|
GrantedLicense |
withEntitlements(Collection<Entitlement> entitlements)
License entitlements.
|
GrantedLicense |
withEntitlements(Entitlement... entitlements)
License entitlements.
|
GrantedLicense |
withHomeRegion(String homeRegion)
Home Region of the granted license.
|
GrantedLicense |
withIssuer(IssuerDetails issuer)
Granted license issuer.
|
GrantedLicense |
withLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
|
GrantedLicense |
withLicenseMetadata(Collection<Metadata> licenseMetadata)
Granted license metadata.
|
GrantedLicense |
withLicenseMetadata(Metadata... licenseMetadata)
Granted license metadata.
|
GrantedLicense |
withLicenseName(String licenseName)
License name.
|
GrantedLicense |
withProductName(String productName)
Product name.
|
GrantedLicense |
withProductSKU(String productSKU)
Product SKU.
|
GrantedLicense |
withReceivedMetadata(ReceivedMetadata receivedMetadata)
Granted license received metadata.
|
GrantedLicense |
withStatus(LicenseStatus status)
Granted license status.
|
GrantedLicense |
withStatus(String status)
Granted license status.
|
GrantedLicense |
withValidity(DatetimeRange validity)
Date and time range during which the granted license is valid, in ISO8601-UTC format.
|
GrantedLicense |
withVersion(String version)
Version of the granted license.
|
public void setLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
licenseArn
- Amazon Resource Name (ARN) of the license.public String getLicenseArn()
Amazon Resource Name (ARN) of the license.
public GrantedLicense withLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
licenseArn
- Amazon Resource Name (ARN) of the license.public void setLicenseName(String licenseName)
License name.
licenseName
- License name.public String getLicenseName()
License name.
public GrantedLicense withLicenseName(String licenseName)
License name.
licenseName
- License name.public void setProductName(String productName)
Product name.
productName
- Product name.public String getProductName()
Product name.
public GrantedLicense withProductName(String productName)
Product name.
productName
- Product name.public void setProductSKU(String productSKU)
Product SKU.
productSKU
- Product SKU.public String getProductSKU()
Product SKU.
public GrantedLicense withProductSKU(String productSKU)
Product SKU.
productSKU
- Product SKU.public void setIssuer(IssuerDetails issuer)
Granted license issuer.
issuer
- Granted license issuer.public IssuerDetails getIssuer()
Granted license issuer.
public GrantedLicense withIssuer(IssuerDetails issuer)
Granted license issuer.
issuer
- Granted license issuer.public void setHomeRegion(String homeRegion)
Home Region of the granted license.
homeRegion
- Home Region of the granted license.public String getHomeRegion()
Home Region of the granted license.
public GrantedLicense withHomeRegion(String homeRegion)
Home Region of the granted license.
homeRegion
- Home Region of the granted license.public void setStatus(String status)
Granted license status.
status
- Granted license status.LicenseStatus
public String getStatus()
Granted license status.
LicenseStatus
public GrantedLicense withStatus(String status)
Granted license status.
status
- Granted license status.LicenseStatus
public GrantedLicense withStatus(LicenseStatus status)
Granted license status.
status
- Granted license status.LicenseStatus
public void setValidity(DatetimeRange validity)
Date and time range during which the granted license is valid, in ISO8601-UTC format.
validity
- Date and time range during which the granted license is valid, in ISO8601-UTC format.public DatetimeRange getValidity()
Date and time range during which the granted license is valid, in ISO8601-UTC format.
public GrantedLicense withValidity(DatetimeRange validity)
Date and time range during which the granted license is valid, in ISO8601-UTC format.
validity
- Date and time range during which the granted license is valid, in ISO8601-UTC format.public void setBeneficiary(String beneficiary)
Granted license beneficiary.
beneficiary
- Granted license beneficiary.public String getBeneficiary()
Granted license beneficiary.
public GrantedLicense withBeneficiary(String beneficiary)
Granted license beneficiary.
beneficiary
- Granted license beneficiary.public List<Entitlement> getEntitlements()
License entitlements.
public void setEntitlements(Collection<Entitlement> entitlements)
License entitlements.
entitlements
- License entitlements.public GrantedLicense withEntitlements(Entitlement... entitlements)
License entitlements.
NOTE: This method appends the values to the existing list (if any). Use
setEntitlements(java.util.Collection)
or withEntitlements(java.util.Collection)
if you want to
override the existing values.
entitlements
- License entitlements.public GrantedLicense withEntitlements(Collection<Entitlement> entitlements)
License entitlements.
entitlements
- License entitlements.public void setConsumptionConfiguration(ConsumptionConfiguration consumptionConfiguration)
Configuration for consumption of the license.
consumptionConfiguration
- Configuration for consumption of the license.public ConsumptionConfiguration getConsumptionConfiguration()
Configuration for consumption of the license.
public GrantedLicense withConsumptionConfiguration(ConsumptionConfiguration consumptionConfiguration)
Configuration for consumption of the license.
consumptionConfiguration
- Configuration for consumption of the license.public List<Metadata> getLicenseMetadata()
Granted license metadata.
public void setLicenseMetadata(Collection<Metadata> licenseMetadata)
Granted license metadata.
licenseMetadata
- Granted license metadata.public GrantedLicense withLicenseMetadata(Metadata... licenseMetadata)
Granted license metadata.
NOTE: This method appends the values to the existing list (if any). Use
setLicenseMetadata(java.util.Collection)
or withLicenseMetadata(java.util.Collection)
if you
want to override the existing values.
licenseMetadata
- Granted license metadata.public GrantedLicense withLicenseMetadata(Collection<Metadata> licenseMetadata)
Granted license metadata.
licenseMetadata
- Granted license metadata.public void setCreateTime(String createTime)
Creation time of the granted license.
createTime
- Creation time of the granted license.public String getCreateTime()
Creation time of the granted license.
public GrantedLicense withCreateTime(String createTime)
Creation time of the granted license.
createTime
- Creation time of the granted license.public void setVersion(String version)
Version of the granted license.
version
- Version of the granted license.public String getVersion()
Version of the granted license.
public GrantedLicense withVersion(String version)
Version of the granted license.
version
- Version of the granted license.public void setReceivedMetadata(ReceivedMetadata receivedMetadata)
Granted license received metadata.
receivedMetadata
- Granted license received metadata.public ReceivedMetadata getReceivedMetadata()
Granted license received metadata.
public GrantedLicense withReceivedMetadata(ReceivedMetadata receivedMetadata)
Granted license received metadata.
receivedMetadata
- Granted license received metadata.public String toString()
toString
in class Object
Object.toString()
public GrantedLicense clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.