@Generated(value="software.amazon.awssdk:codegen") public final class FieldValueUnion extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FieldValueUnion.Builder,FieldValueUnion>
Object to store union of Field values.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FieldValueUnion.Builder |
static class |
FieldValueUnion.Type |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
booleanValue()
Can be either null, or have a Boolean value type.
|
static FieldValueUnion.Builder |
builder() |
Double |
doubleValue()
Can be either null, or have a Double number value type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static FieldValueUnion |
fromBooleanValue(Boolean booleanValue)
Create an instance of this class with
booleanValue() initialized to the given value. |
static FieldValueUnion |
fromDoubleValue(Double doubleValue)
Create an instance of this class with
doubleValue() initialized to the given value. |
static FieldValueUnion |
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() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends FieldValueUnion.Builder> |
serializableBuilderClass() |
String |
stringValue()
String value type.
|
FieldValueUnion.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
FieldValueUnion.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean booleanValue()
Can be either null, or have a Boolean value type. Only one value can be provided.
public final Double doubleValue()
Can be either null, or have a Double number value type. Only one value can be provided.
public final String stringValue()
String value type.
public FieldValueUnion.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FieldValueUnion.Builder,FieldValueUnion>public static FieldValueUnion.Builder builder()
public static Class<? extends FieldValueUnion.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static FieldValueUnion fromBooleanValue(Boolean booleanValue)
booleanValue() initialized to the given value.
Can be either null, or have a Boolean value type. Only one value can be provided.
booleanValue - Can be either null, or have a Boolean value type. Only one value can be provided.public static FieldValueUnion fromDoubleValue(Double doubleValue)
doubleValue() initialized to the given value.
Can be either null, or have a Double number value type. Only one value can be provided.
doubleValue - Can be either null, or have a Double number value type. Only one value can be provided.public static FieldValueUnion fromStringValue(String stringValue)
stringValue() initialized to the given value.
String value type.
stringValue - String value type.public FieldValueUnion.Type type()
FieldValueUnion.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 FieldValueUnion.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.