@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LicenseConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated Host, or all of these), host affinity (how long a VM must be associated with a host), and the number of licenses purchased and used.
Constructor and Description |
---|
LicenseConfiguration() |
Modifier and Type | Method and Description |
---|---|
LicenseConfiguration |
clone() |
boolean |
equals(Object obj) |
AutomatedDiscoveryInformation |
getAutomatedDiscoveryInformation()
Automated discovery information.
|
Long |
getConsumedLicenses()
Number of licenses consumed.
|
List<ConsumedLicenseSummary> |
getConsumedLicenseSummaryList()
Summaries for licenses consumed by various resources.
|
String |
getDescription()
Description of the license configuration.
|
Boolean |
getDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
|
String |
getLicenseConfigurationArn()
Amazon Resource Name (ARN) of the license configuration.
|
String |
getLicenseConfigurationId()
Unique ID of the license configuration.
|
Long |
getLicenseCount()
Number of licenses managed by the license configuration.
|
Boolean |
getLicenseCountHardLimit()
Number of available licenses as a hard limit.
|
String |
getLicenseCountingType()
Dimension to use to track the license inventory.
|
List<String> |
getLicenseRules()
License rules.
|
List<ManagedResourceSummary> |
getManagedResourceSummaryList()
Summaries for managed resources.
|
String |
getName()
Name of the license configuration.
|
String |
getOwnerAccountId()
Account ID of the license configuration's owner.
|
List<ProductInformation> |
getProductInformationList()
Product information.
|
String |
getStatus()
Status of the license configuration.
|
int |
hashCode() |
Boolean |
isDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
|
Boolean |
isLicenseCountHardLimit()
Number of available licenses as a hard limit.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutomatedDiscoveryInformation(AutomatedDiscoveryInformation automatedDiscoveryInformation)
Automated discovery information.
|
void |
setConsumedLicenses(Long consumedLicenses)
Number of licenses consumed.
|
void |
setConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
Summaries for licenses consumed by various resources.
|
void |
setDescription(String description)
Description of the license configuration.
|
void |
setDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
|
void |
setLicenseConfigurationArn(String licenseConfigurationArn)
Amazon Resource Name (ARN) of the license configuration.
|
void |
setLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the license configuration.
|
void |
setLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
|
void |
setLicenseCountHardLimit(Boolean licenseCountHardLimit)
Number of available licenses as a hard limit.
|
void |
setLicenseCountingType(String licenseCountingType)
Dimension to use to track the license inventory.
|
void |
setLicenseRules(Collection<String> licenseRules)
License rules.
|
void |
setManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
Summaries for managed resources.
|
void |
setName(String name)
Name of the license configuration.
|
void |
setOwnerAccountId(String ownerAccountId)
Account ID of the license configuration's owner.
|
void |
setProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
|
void |
setStatus(String status)
Status of the license configuration.
|
String |
toString()
Returns a string representation of this object.
|
LicenseConfiguration |
withAutomatedDiscoveryInformation(AutomatedDiscoveryInformation automatedDiscoveryInformation)
Automated discovery information.
|
LicenseConfiguration |
withConsumedLicenses(Long consumedLicenses)
Number of licenses consumed.
|
LicenseConfiguration |
withConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
Summaries for licenses consumed by various resources.
|
LicenseConfiguration |
withConsumedLicenseSummaryList(ConsumedLicenseSummary... consumedLicenseSummaryList)
Summaries for licenses consumed by various resources.
|
LicenseConfiguration |
withDescription(String description)
Description of the license configuration.
|
LicenseConfiguration |
withDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
|
LicenseConfiguration |
withLicenseConfigurationArn(String licenseConfigurationArn)
Amazon Resource Name (ARN) of the license configuration.
|
LicenseConfiguration |
withLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the license configuration.
|
LicenseConfiguration |
withLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
|
LicenseConfiguration |
withLicenseCountHardLimit(Boolean licenseCountHardLimit)
Number of available licenses as a hard limit.
|
LicenseConfiguration |
withLicenseCountingType(LicenseCountingType licenseCountingType)
Dimension to use to track the license inventory.
|
LicenseConfiguration |
withLicenseCountingType(String licenseCountingType)
Dimension to use to track the license inventory.
|
LicenseConfiguration |
withLicenseRules(Collection<String> licenseRules)
License rules.
|
LicenseConfiguration |
withLicenseRules(String... licenseRules)
License rules.
|
LicenseConfiguration |
withManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
Summaries for managed resources.
|
LicenseConfiguration |
withManagedResourceSummaryList(ManagedResourceSummary... managedResourceSummaryList)
Summaries for managed resources.
|
LicenseConfiguration |
withName(String name)
Name of the license configuration.
|
LicenseConfiguration |
withOwnerAccountId(String ownerAccountId)
Account ID of the license configuration's owner.
|
LicenseConfiguration |
withProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
|
LicenseConfiguration |
withProductInformationList(ProductInformation... productInformationList)
Product information.
|
LicenseConfiguration |
withStatus(String status)
Status of the license configuration.
|
public void setLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the license configuration.
licenseConfigurationId
- Unique ID of the license configuration.public String getLicenseConfigurationId()
Unique ID of the license configuration.
public LicenseConfiguration withLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the license configuration.
licenseConfigurationId
- Unique ID of the license configuration.public void setLicenseConfigurationArn(String licenseConfigurationArn)
Amazon Resource Name (ARN) of the license configuration.
licenseConfigurationArn
- Amazon Resource Name (ARN) of the license configuration.public String getLicenseConfigurationArn()
Amazon Resource Name (ARN) of the license configuration.
public LicenseConfiguration withLicenseConfigurationArn(String licenseConfigurationArn)
Amazon Resource Name (ARN) of the license configuration.
licenseConfigurationArn
- Amazon Resource Name (ARN) of the license configuration.public void setName(String name)
Name of the license configuration.
name
- Name of the license configuration.public String getName()
Name of the license configuration.
public LicenseConfiguration withName(String name)
Name of the license configuration.
name
- Name of the license configuration.public void setDescription(String description)
Description of the license configuration.
description
- Description of the license configuration.public String getDescription()
Description of the license configuration.
public LicenseConfiguration withDescription(String description)
Description of the license configuration.
description
- Description of the license configuration.public void setLicenseCountingType(String licenseCountingType)
Dimension to use to track the license inventory.
licenseCountingType
- Dimension to use to track the license inventory.LicenseCountingType
public String getLicenseCountingType()
Dimension to use to track the license inventory.
LicenseCountingType
public LicenseConfiguration withLicenseCountingType(String licenseCountingType)
Dimension to use to track the license inventory.
licenseCountingType
- Dimension to use to track the license inventory.LicenseCountingType
public LicenseConfiguration withLicenseCountingType(LicenseCountingType licenseCountingType)
Dimension to use to track the license inventory.
licenseCountingType
- Dimension to use to track the license inventory.LicenseCountingType
public void setLicenseRules(Collection<String> licenseRules)
License rules.
licenseRules
- License rules.public LicenseConfiguration withLicenseRules(String... licenseRules)
License rules.
NOTE: This method appends the values to the existing list (if any). Use
setLicenseRules(java.util.Collection)
or withLicenseRules(java.util.Collection)
if you want to
override the existing values.
licenseRules
- License rules.public LicenseConfiguration withLicenseRules(Collection<String> licenseRules)
License rules.
licenseRules
- License rules.public void setLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
licenseCount
- Number of licenses managed by the license configuration.public Long getLicenseCount()
Number of licenses managed by the license configuration.
public LicenseConfiguration withLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
licenseCount
- Number of licenses managed by the license configuration.public void setLicenseCountHardLimit(Boolean licenseCountHardLimit)
Number of available licenses as a hard limit.
licenseCountHardLimit
- Number of available licenses as a hard limit.public Boolean getLicenseCountHardLimit()
Number of available licenses as a hard limit.
public LicenseConfiguration withLicenseCountHardLimit(Boolean licenseCountHardLimit)
Number of available licenses as a hard limit.
licenseCountHardLimit
- Number of available licenses as a hard limit.public Boolean isLicenseCountHardLimit()
Number of available licenses as a hard limit.
public void setDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
disassociateWhenNotFound
- When true, disassociates a resource when software is uninstalled.public Boolean getDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
public LicenseConfiguration withDisassociateWhenNotFound(Boolean disassociateWhenNotFound)
When true, disassociates a resource when software is uninstalled.
disassociateWhenNotFound
- When true, disassociates a resource when software is uninstalled.public Boolean isDisassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
public void setConsumedLicenses(Long consumedLicenses)
Number of licenses consumed.
consumedLicenses
- Number of licenses consumed.public Long getConsumedLicenses()
Number of licenses consumed.
public LicenseConfiguration withConsumedLicenses(Long consumedLicenses)
Number of licenses consumed.
consumedLicenses
- Number of licenses consumed.public void setStatus(String status)
Status of the license configuration.
status
- Status of the license configuration.public String getStatus()
Status of the license configuration.
public LicenseConfiguration withStatus(String status)
Status of the license configuration.
status
- Status of the license configuration.public void setOwnerAccountId(String ownerAccountId)
Account ID of the license configuration's owner.
ownerAccountId
- Account ID of the license configuration's owner.public String getOwnerAccountId()
Account ID of the license configuration's owner.
public LicenseConfiguration withOwnerAccountId(String ownerAccountId)
Account ID of the license configuration's owner.
ownerAccountId
- Account ID of the license configuration's owner.public List<ConsumedLicenseSummary> getConsumedLicenseSummaryList()
Summaries for licenses consumed by various resources.
public void setConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
Summaries for licenses consumed by various resources.
consumedLicenseSummaryList
- Summaries for licenses consumed by various resources.public LicenseConfiguration withConsumedLicenseSummaryList(ConsumedLicenseSummary... consumedLicenseSummaryList)
Summaries for licenses consumed by various resources.
NOTE: This method appends the values to the existing list (if any). Use
setConsumedLicenseSummaryList(java.util.Collection)
or
withConsumedLicenseSummaryList(java.util.Collection)
if you want to override the existing values.
consumedLicenseSummaryList
- Summaries for licenses consumed by various resources.public LicenseConfiguration withConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
Summaries for licenses consumed by various resources.
consumedLicenseSummaryList
- Summaries for licenses consumed by various resources.public List<ManagedResourceSummary> getManagedResourceSummaryList()
Summaries for managed resources.
public void setManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
Summaries for managed resources.
managedResourceSummaryList
- Summaries for managed resources.public LicenseConfiguration withManagedResourceSummaryList(ManagedResourceSummary... managedResourceSummaryList)
Summaries for managed resources.
NOTE: This method appends the values to the existing list (if any). Use
setManagedResourceSummaryList(java.util.Collection)
or
withManagedResourceSummaryList(java.util.Collection)
if you want to override the existing values.
managedResourceSummaryList
- Summaries for managed resources.public LicenseConfiguration withManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
Summaries for managed resources.
managedResourceSummaryList
- Summaries for managed resources.public List<ProductInformation> getProductInformationList()
Product information.
public void setProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
productInformationList
- Product information.public LicenseConfiguration withProductInformationList(ProductInformation... productInformationList)
Product information.
NOTE: This method appends the values to the existing list (if any). Use
setProductInformationList(java.util.Collection)
or
withProductInformationList(java.util.Collection)
if you want to override the existing values.
productInformationList
- Product information.public LicenseConfiguration withProductInformationList(Collection<ProductInformation> productInformationList)
Product information.
productInformationList
- Product information.public void setAutomatedDiscoveryInformation(AutomatedDiscoveryInformation automatedDiscoveryInformation)
Automated discovery information.
automatedDiscoveryInformation
- Automated discovery information.public AutomatedDiscoveryInformation getAutomatedDiscoveryInformation()
Automated discovery information.
public LicenseConfiguration withAutomatedDiscoveryInformation(AutomatedDiscoveryInformation automatedDiscoveryInformation)
Automated discovery information.
automatedDiscoveryInformation
- Automated discovery information.public String toString()
toString
in class Object
Object.toString()
public LicenseConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.