@Generated(value="software.amazon.awssdk:codegen") public final class LicenseConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LicenseConfiguration.Builder,LicenseConfiguration>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
LicenseConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static LicenseConfiguration.Builder |
builder() |
Long |
consumedLicenses()
Number of licenses consumed.
|
List<ConsumedLicenseSummary> |
consumedLicenseSummaryList()
List of summaries for licenses consumed by various resources.
|
String |
description()
Description of the license configuration.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
licenseConfigurationArn()
ARN of the
LicenseConfiguration object. |
String |
licenseConfigurationId()
Unique ID of the
LicenseConfiguration object. |
Long |
licenseCount()
Number of licenses managed by the license configuration.
|
Boolean |
licenseCountHardLimit()
Sets the number of available licenses as a hard limit.
|
LicenseCountingType |
licenseCountingType()
Dimension to use to track license inventory.
|
String |
licenseCountingTypeAsString()
Dimension to use to track license inventory.
|
List<String> |
licenseRules()
Array of configured License Manager rules.
|
List<ManagedResourceSummary> |
managedResourceSummaryList()
List of summaries for managed resources.
|
String |
name()
Name of the license configuration.
|
String |
ownerAccountId()
Account ID of the license configuration's owner.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LicenseConfiguration.Builder> |
serializableBuilderClass() |
String |
status()
Status of the license configuration.
|
LicenseConfiguration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String licenseConfigurationId()
Unique ID of the LicenseConfiguration
object.
LicenseConfiguration
object.public String licenseConfigurationArn()
ARN of the LicenseConfiguration
object.
LicenseConfiguration
object.public String name()
Name of the license configuration.
public String description()
Description of the license configuration.
public LicenseCountingType licenseCountingType()
Dimension to use to track license inventory.
If the service returns an enum value that is not available in the current SDK version,
licenseCountingType
will return LicenseCountingType.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from licenseCountingTypeAsString()
.
LicenseCountingType
public String licenseCountingTypeAsString()
Dimension to use to track license inventory.
If the service returns an enum value that is not available in the current SDK version,
licenseCountingType
will return LicenseCountingType.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from licenseCountingTypeAsString()
.
LicenseCountingType
public List<String> licenseRules()
Array of configured License Manager rules.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Long licenseCount()
Number of licenses managed by the license configuration.
public Boolean licenseCountHardLimit()
Sets the number of available licenses as a hard limit.
public Long consumedLicenses()
Number of licenses consumed.
public String status()
Status of the license configuration.
public String ownerAccountId()
Account ID of the license configuration's owner.
public List<ConsumedLicenseSummary> consumedLicenseSummaryList()
List of summaries for licenses consumed by various resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<ManagedResourceSummary> managedResourceSummaryList()
List of summaries for managed resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public LicenseConfiguration.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<LicenseConfiguration.Builder,LicenseConfiguration>
public static LicenseConfiguration.Builder builder()
public static Class<? extends LicenseConfiguration.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.