@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), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.
Constructor and Description |
---|
LicenseConfiguration() |
Modifier and Type | Method and Description |
---|---|
LicenseConfiguration |
clone() |
boolean |
equals(Object obj) |
Long |
getConsumedLicenses()
Number of licenses consumed.
|
List<ConsumedLicenseSummary> |
getConsumedLicenseSummaryList()
List of summaries for licenses consumed by various resources.
|
String |
getDescription()
Description of the license configuration.
|
String |
getLicenseConfigurationArn()
ARN of the
LicenseConfiguration object. |
String |
getLicenseConfigurationId()
Unique ID of the
LicenseConfiguration object. |
Long |
getLicenseCount()
Number of licenses managed by the license configuration.
|
Boolean |
getLicenseCountHardLimit()
Sets the number of available licenses as a hard limit.
|
String |
getLicenseCountingType()
Dimension to use to track license inventory.
|
List<String> |
getLicenseRules()
Array of configured License Manager rules.
|
List<ManagedResourceSummary> |
getManagedResourceSummaryList()
List of summaries for managed resources.
|
String |
getName()
Name of the license configuration.
|
String |
getOwnerAccountId()
Account ID of the license configuration's owner.
|
String |
getStatus()
Status of the license configuration.
|
int |
hashCode() |
Boolean |
isLicenseCountHardLimit()
Sets the number of available licenses as a hard limit.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConsumedLicenses(Long consumedLicenses)
Number of licenses consumed.
|
void |
setConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
List of summaries for licenses consumed by various resources.
|
void |
setDescription(String description)
Description of the license configuration.
|
void |
setLicenseConfigurationArn(String licenseConfigurationArn)
ARN of the
LicenseConfiguration object. |
void |
setLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the
LicenseConfiguration object. |
void |
setLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
|
void |
setLicenseCountHardLimit(Boolean licenseCountHardLimit)
Sets the number of available licenses as a hard limit.
|
void |
setLicenseCountingType(String licenseCountingType)
Dimension to use to track license inventory.
|
void |
setLicenseRules(Collection<String> licenseRules)
Array of configured License Manager rules.
|
void |
setManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
List of 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 |
setStatus(String status)
Status of the license configuration.
|
String |
toString()
Returns a string representation of this object.
|
LicenseConfiguration |
withConsumedLicenses(Long consumedLicenses)
Number of licenses consumed.
|
LicenseConfiguration |
withConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
List of summaries for licenses consumed by various resources.
|
LicenseConfiguration |
withConsumedLicenseSummaryList(ConsumedLicenseSummary... consumedLicenseSummaryList)
List of summaries for licenses consumed by various resources.
|
LicenseConfiguration |
withDescription(String description)
Description of the license configuration.
|
LicenseConfiguration |
withLicenseConfigurationArn(String licenseConfigurationArn)
ARN of the
LicenseConfiguration object. |
LicenseConfiguration |
withLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the
LicenseConfiguration object. |
LicenseConfiguration |
withLicenseCount(Long licenseCount)
Number of licenses managed by the license configuration.
|
LicenseConfiguration |
withLicenseCountHardLimit(Boolean licenseCountHardLimit)
Sets the number of available licenses as a hard limit.
|
LicenseConfiguration |
withLicenseCountingType(LicenseCountingType licenseCountingType)
Dimension to use to track license inventory.
|
LicenseConfiguration |
withLicenseCountingType(String licenseCountingType)
Dimension to use to track license inventory.
|
LicenseConfiguration |
withLicenseRules(Collection<String> licenseRules)
Array of configured License Manager rules.
|
LicenseConfiguration |
withLicenseRules(String... licenseRules)
Array of configured License Manager rules.
|
LicenseConfiguration |
withManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
List of summaries for managed resources.
|
LicenseConfiguration |
withManagedResourceSummaryList(ManagedResourceSummary... managedResourceSummaryList)
List of 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 |
withStatus(String status)
Status of the license configuration.
|
public void setLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the LicenseConfiguration
object.
licenseConfigurationId
- Unique ID of the LicenseConfiguration
object.public String getLicenseConfigurationId()
Unique ID of the LicenseConfiguration
object.
LicenseConfiguration
object.public LicenseConfiguration withLicenseConfigurationId(String licenseConfigurationId)
Unique ID of the LicenseConfiguration
object.
licenseConfigurationId
- Unique ID of the LicenseConfiguration
object.public void setLicenseConfigurationArn(String licenseConfigurationArn)
ARN of the LicenseConfiguration
object.
licenseConfigurationArn
- ARN of the LicenseConfiguration
object.public String getLicenseConfigurationArn()
ARN of the LicenseConfiguration
object.
LicenseConfiguration
object.public LicenseConfiguration withLicenseConfigurationArn(String licenseConfigurationArn)
ARN of the LicenseConfiguration
object.
licenseConfigurationArn
- ARN of the LicenseConfiguration
object.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 license inventory.
licenseCountingType
- Dimension to use to track license inventory.LicenseCountingType
public String getLicenseCountingType()
Dimension to use to track license inventory.
LicenseCountingType
public LicenseConfiguration withLicenseCountingType(String licenseCountingType)
Dimension to use to track license inventory.
licenseCountingType
- Dimension to use to track license inventory.LicenseCountingType
public LicenseConfiguration withLicenseCountingType(LicenseCountingType licenseCountingType)
Dimension to use to track license inventory.
licenseCountingType
- Dimension to use to track license inventory.LicenseCountingType
public List<String> getLicenseRules()
Array of configured License Manager rules.
public void setLicenseRules(Collection<String> licenseRules)
Array of configured License Manager rules.
licenseRules
- Array of configured License Manager rules.public LicenseConfiguration withLicenseRules(String... licenseRules)
Array of configured License Manager 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
- Array of configured License Manager rules.public LicenseConfiguration withLicenseRules(Collection<String> licenseRules)
Array of configured License Manager rules.
licenseRules
- Array of configured License Manager 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)
Sets the number of available licenses as a hard limit.
licenseCountHardLimit
- Sets the number of available licenses as a hard limit.public Boolean getLicenseCountHardLimit()
Sets the number of available licenses as a hard limit.
public LicenseConfiguration withLicenseCountHardLimit(Boolean licenseCountHardLimit)
Sets the number of available licenses as a hard limit.
licenseCountHardLimit
- Sets the number of available licenses as a hard limit.public Boolean isLicenseCountHardLimit()
Sets the number of available licenses as a hard limit.
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()
List of summaries for licenses consumed by various resources.
public void setConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
List of summaries for licenses consumed by various resources.
consumedLicenseSummaryList
- List of summaries for licenses consumed by various resources.public LicenseConfiguration withConsumedLicenseSummaryList(ConsumedLicenseSummary... consumedLicenseSummaryList)
List of 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
- List of summaries for licenses consumed by various resources.public LicenseConfiguration withConsumedLicenseSummaryList(Collection<ConsumedLicenseSummary> consumedLicenseSummaryList)
List of summaries for licenses consumed by various resources.
consumedLicenseSummaryList
- List of summaries for licenses consumed by various resources.public List<ManagedResourceSummary> getManagedResourceSummaryList()
List of summaries for managed resources.
public void setManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
List of summaries for managed resources.
managedResourceSummaryList
- List of summaries for managed resources.public LicenseConfiguration withManagedResourceSummaryList(ManagedResourceSummary... managedResourceSummaryList)
List of 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
- List of summaries for managed resources.public LicenseConfiguration withManagedResourceSummaryList(Collection<ManagedResourceSummary> managedResourceSummaryList)
List of summaries for managed resources.
managedResourceSummaryList
- List of summaries for managed resources.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.