@Generated(value="software.amazon.awssdk:codegen") public final class TypedAttributeValue extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TypedAttributeValue.Builder,TypedAttributeValue>
Represents the data for a typed attribute. You can set one, and only one, of the elements. Each attribute in an item is a name-value pair. Attributes have a single value.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TypedAttributeValue.Builder |
static class |
TypedAttributeValue.Type |
| Modifier and Type | Method and Description |
|---|---|
SdkBytes |
binaryValue()
A binary data value.
|
Boolean |
booleanValue()
A Boolean data value.
|
static TypedAttributeValue.Builder |
builder() |
Instant |
datetimeValue()
A date and time value.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static TypedAttributeValue |
fromBinaryValue(SdkBytes binaryValue)
Create an instance of this class with
binaryValue() initialized to the given value. |
static TypedAttributeValue |
fromBooleanValue(Boolean booleanValue)
Create an instance of this class with
booleanValue() initialized to the given value. |
static TypedAttributeValue |
fromDatetimeValue(Instant datetimeValue)
Create an instance of this class with
datetimeValue() initialized to the given value. |
static TypedAttributeValue |
fromNumberValue(String numberValue)
Create an instance of this class with
numberValue() initialized to the given value. |
static TypedAttributeValue |
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() |
String |
numberValue()
A number data value.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TypedAttributeValue.Builder> |
serializableBuilderClass() |
String |
stringValue()
A string data value.
|
TypedAttributeValue.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
TypedAttributeValue.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String stringValue()
A string data value.
public final SdkBytes binaryValue()
A binary data value.
public final Boolean booleanValue()
A Boolean data value.
public final String numberValue()
A number data value.
public final Instant datetimeValue()
A date and time value.
public TypedAttributeValue.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TypedAttributeValue.Builder,TypedAttributeValue>public static TypedAttributeValue.Builder builder()
public static Class<? extends TypedAttributeValue.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static TypedAttributeValue fromStringValue(String stringValue)
stringValue() initialized to the given value.
A string data value.
stringValue - A string data value.public static TypedAttributeValue fromBinaryValue(SdkBytes binaryValue)
binaryValue() initialized to the given value.
A binary data value.
binaryValue - A binary data value.public static TypedAttributeValue fromBooleanValue(Boolean booleanValue)
booleanValue() initialized to the given value.
A Boolean data value.
booleanValue - A Boolean data value.public static TypedAttributeValue fromNumberValue(String numberValue)
numberValue() initialized to the given value.
A number data value.
numberValue - A number data value.public static TypedAttributeValue fromDatetimeValue(Instant datetimeValue)
datetimeValue() initialized to the given value.
A date and time value.
datetimeValue - A date and time value.public TypedAttributeValue.Type type()
TypedAttributeValue.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 TypedAttributeValue.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2022. All rights reserved.