@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TypedAttributeValue extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
TypedAttributeValue() |
| Modifier and Type | Method and Description |
|---|---|
TypedAttributeValue |
clone() |
boolean |
equals(Object obj) |
ByteBuffer |
getBinaryValue()
A binary data value.
|
Boolean |
getBooleanValue()
A Boolean data value.
|
Date |
getDatetimeValue()
A date and time value.
|
String |
getNumberValue()
A number data value.
|
String |
getStringValue()
A string data value.
|
int |
hashCode() |
Boolean |
isBooleanValue()
A Boolean data value.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBinaryValue(ByteBuffer binaryValue)
A binary data value.
|
void |
setBooleanValue(Boolean booleanValue)
A Boolean data value.
|
void |
setDatetimeValue(Date datetimeValue)
A date and time value.
|
void |
setNumberValue(String numberValue)
A number data value.
|
void |
setStringValue(String stringValue)
A string data value.
|
String |
toString()
Returns a string representation of this object.
|
TypedAttributeValue |
withBinaryValue(ByteBuffer binaryValue)
A binary data value.
|
TypedAttributeValue |
withBooleanValue(Boolean booleanValue)
A Boolean data value.
|
TypedAttributeValue |
withDatetimeValue(Date datetimeValue)
A date and time value.
|
TypedAttributeValue |
withNumberValue(String numberValue)
A number data value.
|
TypedAttributeValue |
withStringValue(String stringValue)
A string data value.
|
public void setStringValue(String stringValue)
A string data value.
stringValue - A string data value.public String getStringValue()
A string data value.
public TypedAttributeValue withStringValue(String stringValue)
A string data value.
stringValue - A string data value.public void setBinaryValue(ByteBuffer binaryValue)
A binary data value.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
binaryValue - A binary data value.public ByteBuffer getBinaryValue()
A binary data value.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer.
Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public TypedAttributeValue withBinaryValue(ByteBuffer binaryValue)
A binary data value.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
binaryValue - A binary data value.public void setBooleanValue(Boolean booleanValue)
A Boolean data value.
booleanValue - A Boolean data value.public Boolean getBooleanValue()
A Boolean data value.
public TypedAttributeValue withBooleanValue(Boolean booleanValue)
A Boolean data value.
booleanValue - A Boolean data value.public Boolean isBooleanValue()
A Boolean data value.
public void setNumberValue(String numberValue)
A number data value.
numberValue - A number data value.public String getNumberValue()
A number data value.
public TypedAttributeValue withNumberValue(String numberValue)
A number data value.
numberValue - A number data value.public void setDatetimeValue(Date datetimeValue)
A date and time value.
datetimeValue - A date and time value.public Date getDatetimeValue()
A date and time value.
public TypedAttributeValue withDatetimeValue(Date datetimeValue)
A date and time value.
datetimeValue - A date and time value.public String toString()
toString in class ObjectObject.toString()public TypedAttributeValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.