@Generated(value="software.amazon.awssdk:codegen") public final class EntitlementValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EntitlementValue.Builder,EntitlementValue>
The EntitlementValue represents the amount of capacity that the customer is entitled to for the product.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EntitlementValue.Builder |
static class |
EntitlementValue.Type |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
booleanValue()
The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type.
|
static EntitlementValue.Builder |
builder() |
Double |
doubleValue()
The DoubleValue field will be populated with a double value when the entitlement is a double type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static EntitlementValue |
fromBooleanValue(Boolean booleanValue)
Create an instance of this class with
booleanValue() initialized to the given value. |
static EntitlementValue |
fromDoubleValue(Double doubleValue)
Create an instance of this class with
doubleValue() initialized to the given value. |
static EntitlementValue |
fromIntegerValue(Integer integerValue)
Create an instance of this class with
integerValue() initialized to the given value. |
static EntitlementValue |
fromStringValue(String stringValue)
Create an instance of this class with
stringValue() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
integerValue()
The IntegerValue field will be populated with an integer value when the entitlement is an integer type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EntitlementValue.Builder> |
serializableBuilderClass() |
String |
stringValue()
The StringValue field will be populated with a string value when the entitlement is a string type.
|
EntitlementValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
EntitlementValue.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer integerValue()
The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set.
public final Double doubleValue()
The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set.
public final Boolean booleanValue()
The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set.
public final String stringValue()
The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set.
public EntitlementValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EntitlementValue.Builder,EntitlementValue>public static EntitlementValue.Builder builder()
public static Class<? extends EntitlementValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static EntitlementValue fromIntegerValue(Integer integerValue)
integerValue() initialized to the given value.
The IntegerValue field will be populated with an integer value when the entitlement is an integer type. Otherwise, the field will not be set.
integerValue - The IntegerValue field will be populated with an integer value when the entitlement is an integer type.
Otherwise, the field will not be set.public static EntitlementValue fromDoubleValue(Double doubleValue)
doubleValue() initialized to the given value.
The DoubleValue field will be populated with a double value when the entitlement is a double type. Otherwise, the field will not be set.
doubleValue - The DoubleValue field will be populated with a double value when the entitlement is a double type.
Otherwise, the field will not be set.public static EntitlementValue fromBooleanValue(Boolean booleanValue)
booleanValue() initialized to the given value.
The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type. Otherwise, the field will not be set.
booleanValue - The BooleanValue field will be populated with a boolean value when the entitlement is a boolean type.
Otherwise, the field will not be set.public static EntitlementValue fromStringValue(String stringValue)
stringValue() initialized to the given value.
The StringValue field will be populated with a string value when the entitlement is a string type. Otherwise, the field will not be set.
stringValue - The StringValue field will be populated with a string value when the entitlement is a string type.
Otherwise, the field will not be set.public EntitlementValue.Type type()
EntitlementValue.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be EntitlementValue.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2022. All rights reserved.