@Generated(value="software.amazon.awssdk:codegen") public final class LicenseConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LicenseConfiguration.Builder,LicenseConfiguration>
Describes the configuration of a license for an Amazon EC2 instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LicenseConfiguration.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LicenseConfiguration.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMetricsSource()
For responses, this returns true if the service returned a value for the MetricsSource property.
|
String |
instanceType()
The instance type used in the license.
|
LicenseEdition |
licenseEdition()
The edition of the license for the application that runs on the instance.
|
String |
licenseEditionAsString()
The edition of the license for the application that runs on the instance.
|
LicenseModel |
licenseModel()
The license type associated with the instance.
|
String |
licenseModelAsString()
The license type associated with the instance.
|
LicenseName |
licenseName()
The name of the license for the application that runs on the instance.
|
String |
licenseNameAsString()
The name of the license for the application that runs on the instance.
|
String |
licenseVersion()
The version of the license for the application that runs on the instance.
|
List<MetricSource> |
metricsSource()
The list of metric sources required to generate recommendations for commercial software licenses.
|
Integer |
numberOfCores()
The current number of cores associated with the instance.
|
String |
operatingSystem()
The operating system of the instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LicenseConfiguration.Builder> |
serializableBuilderClass() |
LicenseConfiguration.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer numberOfCores()
The current number of cores associated with the instance.
public final String instanceType()
The instance type used in the license.
public final String operatingSystem()
The operating system of the instance.
public final LicenseEdition licenseEdition()
The edition of the license for the application that runs on the instance.
If the service returns an enum value that is not available in the current SDK version, licenseEdition
will return LicenseEdition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from licenseEditionAsString().
LicenseEditionpublic final String licenseEditionAsString()
The edition of the license for the application that runs on the instance.
If the service returns an enum value that is not available in the current SDK version, licenseEdition
will return LicenseEdition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from licenseEditionAsString().
LicenseEditionpublic final LicenseName licenseName()
The name of the license for the application that runs on the instance.
If the service returns an enum value that is not available in the current SDK version, licenseName will
return LicenseName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
licenseNameAsString().
LicenseNamepublic final String licenseNameAsString()
The name of the license for the application that runs on the instance.
If the service returns an enum value that is not available in the current SDK version, licenseName will
return LicenseName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
licenseNameAsString().
LicenseNamepublic final LicenseModel licenseModel()
The license type associated with the instance.
If the service returns an enum value that is not available in the current SDK version, licenseModel will
return LicenseModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
licenseModelAsString().
LicenseModelpublic final String licenseModelAsString()
The license type associated with the instance.
If the service returns an enum value that is not available in the current SDK version, licenseModel will
return LicenseModel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
licenseModelAsString().
LicenseModelpublic final String licenseVersion()
The version of the license for the application that runs on the instance.
public final boolean hasMetricsSource()
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<MetricSource> metricsSource()
The list of metric sources required to generate recommendations for commercial software licenses.
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 hasMetricsSource() method.
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 © 2023. All rights reserved.