@Generated(value="software.amazon.awssdk:codegen") public final class DataValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataValue.Builder,DataValue>
An object that specifies a value for a property.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DataValue.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
booleanValue()
A Boolean value.
|
static DataValue.Builder |
builder() |
Double |
doubleValue()
A double value.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
expression()
An expression that produces the value.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasListValue()
For responses, this returns true if the service returned a value for the ListValue property.
|
boolean |
hasMapValue()
For responses, this returns true if the service returned a value for the MapValue property.
|
Integer |
integerValue()
An integer value.
|
List<DataValue> |
listValue()
A list of multiple values.
|
Long |
longValue()
A long value.
|
Map<String,DataValue> |
mapValue()
An object that maps strings to multiple
DataValue objects. |
RelationshipValue |
relationshipValue()
A value that relates a component to another component.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DataValue.Builder> |
serializableBuilderClass() |
String |
stringValue()
A string value.
|
DataValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean booleanValue()
A Boolean value.
public final Double doubleValue()
A double value.
public final String expression()
An expression that produces the value.
public final Integer integerValue()
An integer value.
public final boolean hasListValue()
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<DataValue> listValue()
A list of multiple values.
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 hasListValue() method.
public final Long longValue()
A long value.
public final boolean hasMapValue()
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 Map<String,DataValue> mapValue()
An object that maps strings to multiple DataValue objects.
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 hasMapValue() method.
DataValue objects.public final RelationshipValue relationshipValue()
A value that relates a component to another component.
public final String stringValue()
A string value.
public DataValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DataValue.Builder,DataValue>public static DataValue.Builder builder()
public static Class<? extends DataValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.