@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), 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LicenseConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
AutomatedDiscoveryInformation |
automatedDiscoveryInformation()
Automated discovery information.
|
static LicenseConfiguration.Builder |
builder() |
Long |
consumedLicenses()
Number of licenses consumed.
|
List<ConsumedLicenseSummary> |
consumedLicenseSummaryList()
Summaries for licenses consumed by various resources.
|
String |
description()
Description of the license configuration.
|
Boolean |
disassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasConsumedLicenseSummaryList()
For responses, this returns true if the service returned a value for the ConsumedLicenseSummaryList property.
|
int |
hashCode() |
boolean |
hasLicenseRules()
For responses, this returns true if the service returned a value for the LicenseRules property.
|
boolean |
hasManagedResourceSummaryList()
For responses, this returns true if the service returned a value for the ManagedResourceSummaryList property.
|
boolean |
hasProductInformationList()
For responses, this returns true if the service returned a value for the ProductInformationList property.
|
String |
licenseConfigurationArn()
Amazon Resource Name (ARN) of the license configuration.
|
String |
licenseConfigurationId()
Unique ID of the license configuration.
|
Long |
licenseCount()
Number of licenses managed by the license configuration.
|
Boolean |
licenseCountHardLimit()
Number of available licenses as a hard limit.
|
LicenseCountingType |
licenseCountingType()
Dimension to use to track the license inventory.
|
String |
licenseCountingTypeAsString()
Dimension to use to track the license inventory.
|
List<String> |
licenseRules()
License rules.
|
List<ManagedResourceSummary> |
managedResourceSummaryList()
Summaries for managed resources.
|
String |
name()
Name of the license configuration.
|
String |
ownerAccountId()
Account ID of the license configuration's owner.
|
List<ProductInformation> |
productInformationList()
Product information.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LicenseConfiguration.Builder> |
serializableBuilderClass() |
String |
status()
Status of the license configuration.
|
LicenseConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String licenseConfigurationId()
Unique ID of the license configuration.
public final String licenseConfigurationArn()
Amazon Resource Name (ARN) of the license configuration.
public final String name()
Name of the license configuration.
public final String description()
Description of the license configuration.
public final LicenseCountingType licenseCountingType()
Dimension to use to track the 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().
LicenseCountingTypepublic final String licenseCountingTypeAsString()
Dimension to use to track the 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().
LicenseCountingTypepublic final boolean hasLicenseRules()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> licenseRules()
License rules.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLicenseRules() method.
public final Long licenseCount()
Number of licenses managed by the license configuration.
public final Boolean licenseCountHardLimit()
Number of available licenses as a hard limit.
public final Boolean disassociateWhenNotFound()
When true, disassociates a resource when software is uninstalled.
public final Long consumedLicenses()
Number of licenses consumed.
public final String status()
Status of the license configuration.
public final String ownerAccountId()
Account ID of the license configuration's owner.
public final boolean hasConsumedLicenseSummaryList()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<ConsumedLicenseSummary> consumedLicenseSummaryList()
Summaries for licenses consumed by various resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasConsumedLicenseSummaryList() method.
public final boolean hasManagedResourceSummaryList()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<ManagedResourceSummary> managedResourceSummaryList()
Summaries for managed resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasManagedResourceSummaryList() method.
public final boolean hasProductInformationList()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<ProductInformation> productInformationList()
Product information.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasProductInformationList() method.
public final AutomatedDiscoveryInformation automatedDiscoveryInformation()
Automated discovery information.
public LicenseConfiguration.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LicenseConfiguration.Builder,LicenseConfiguration>public static LicenseConfiguration.Builder builder()
public static Class<? extends LicenseConfiguration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.