@Generated(value="software.amazon.awssdk:codegen") public final class VariableValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VariableValue.Builder,VariableValue>
The value assigned to a feature variation. This structure must contain exactly one field. It can be
boolValue, doubleValue, longValue, or stringValue.
| Modifier and Type | Class and Description |
|---|---|
static interface |
VariableValue.Builder |
static class |
VariableValue.Type |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
boolValue()
If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
|
static VariableValue.Builder |
builder() |
Double |
doubleValue()
If this feature uses the double integer variation type, this field contains the double integer value of this
variation.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static VariableValue |
fromBoolValue(Boolean boolValue)
Create an instance of this class with
boolValue() initialized to the given value. |
static VariableValue |
fromDoubleValue(Double doubleValue)
Create an instance of this class with
doubleValue() initialized to the given value. |
static VariableValue |
fromLongValue(Long longValue)
Create an instance of this class with
longValue() initialized to the given value. |
static VariableValue |
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() |
Long |
longValue()
If this feature uses the long variation type, this field contains the long value of this variation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends VariableValue.Builder> |
serializableBuilderClass() |
String |
stringValue()
If this feature uses the string variation type, this field contains the string value of this variation.
|
VariableValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VariableValue.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean boolValue()
If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
public final Double doubleValue()
If this feature uses the double integer variation type, this field contains the double integer value of this variation.
public final Long longValue()
If this feature uses the long variation type, this field contains the long value of this variation.
public final String stringValue()
If this feature uses the string variation type, this field contains the string value of this variation.
public VariableValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<VariableValue.Builder,VariableValue>public static VariableValue.Builder builder()
public static Class<? extends VariableValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static VariableValue fromBoolValue(Boolean boolValue)
boolValue() initialized to the given value.
If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.
boolValue - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.public static VariableValue fromDoubleValue(Double doubleValue)
doubleValue() initialized to the given value.
If this feature uses the double integer variation type, this field contains the double integer value of this variation.
doubleValue - If this feature uses the double integer variation type, this field contains the double integer value of
this variation.public static VariableValue fromLongValue(Long longValue)
longValue() initialized to the given value.
If this feature uses the long variation type, this field contains the long value of this variation.
longValue - If this feature uses the long variation type, this field contains the long value of this variation.public static VariableValue fromStringValue(String stringValue)
stringValue() initialized to the given value.
If this feature uses the string variation type, this field contains the string value of this variation.
stringValue - If this feature uses the string variation type, this field contains the string value of this variation.public VariableValue.Type type()
VariableValue.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 VariableValue.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.