@Generated(value="software.amazon.awssdk:codegen") public final class DocumentAttributeValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DocumentAttributeValue.Builder,DocumentAttributeValue>
The value of a custom document attribute. You can only provide one value for a custom attribute.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DocumentAttributeValue.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DocumentAttributeValue.Builder |
builder() |
Instant |
dateValue()
A date expressed as an ISO 8601 string.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasStringListValue()
Returns true if the StringListValue property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
Long |
longValue()
A long integer value.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DocumentAttributeValue.Builder> |
serializableBuilderClass() |
List<String> |
stringListValue()
A list of strings.
|
String |
stringValue()
A string, such as "department".
|
DocumentAttributeValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String stringValue()
A string, such as "department".
public boolean hasStringListValue()
public List<String> stringListValue()
A list of strings.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasStringListValue() to see if a value was sent in this field.
public Long longValue()
A long integer value.
public Instant dateValue()
A date expressed as an ISO 8601 string.
public DocumentAttributeValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DocumentAttributeValue.Builder,DocumentAttributeValue>public static DocumentAttributeValue.Builder builder()
public static Class<? extends DocumentAttributeValue.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.