@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentAttributeValue extends Object implements Serializable, Cloneable, StructuredPojo
The value of a document attribute. You can only provide one value for a document attribute.
| Constructor and Description |
|---|
DocumentAttributeValue() |
| Modifier and Type | Method and Description |
|---|---|
DocumentAttributeValue |
clone() |
boolean |
equals(Object obj) |
Date |
getDateValue()
A date expressed as an ISO 8601 string.
|
Long |
getLongValue()
A long integer value.
|
List<String> |
getStringListValue()
A list of strings.
|
String |
getStringValue()
A string.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDateValue(Date dateValue)
A date expressed as an ISO 8601 string.
|
void |
setLongValue(Long longValue)
A long integer value.
|
void |
setStringListValue(Collection<String> stringListValue)
A list of strings.
|
void |
setStringValue(String stringValue)
A string.
|
String |
toString()
Returns a string representation of this object.
|
DocumentAttributeValue |
withDateValue(Date dateValue)
A date expressed as an ISO 8601 string.
|
DocumentAttributeValue |
withLongValue(Long longValue)
A long integer value.
|
DocumentAttributeValue |
withStringListValue(Collection<String> stringListValue)
A list of strings.
|
DocumentAttributeValue |
withStringListValue(String... stringListValue)
A list of strings.
|
DocumentAttributeValue |
withStringValue(String stringValue)
A string.
|
public void setStringValue(String stringValue)
A string.
stringValue - A string.public String getStringValue()
A string.
public DocumentAttributeValue withStringValue(String stringValue)
A string.
stringValue - A string.public List<String> getStringListValue()
A list of strings.
public void setStringListValue(Collection<String> stringListValue)
A list of strings.
stringListValue - A list of strings.public DocumentAttributeValue withStringListValue(String... stringListValue)
A list of strings.
NOTE: This method appends the values to the existing list (if any). Use
setStringListValue(java.util.Collection) or withStringListValue(java.util.Collection) if you
want to override the existing values.
stringListValue - A list of strings.public DocumentAttributeValue withStringListValue(Collection<String> stringListValue)
A list of strings.
stringListValue - A list of strings.public void setLongValue(Long longValue)
A long integer value.
longValue - A long integer value.public Long getLongValue()
A long integer value.
public DocumentAttributeValue withLongValue(Long longValue)
A long integer value.
longValue - A long integer value.public void setDateValue(Date dateValue)
A date expressed as an ISO 8601 string.
It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
dateValue - A date expressed as an ISO 8601 string.
It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
public Date getDateValue()
A date expressed as an ISO 8601 string.
It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
public DocumentAttributeValue withDateValue(Date dateValue)
A date expressed as an ISO 8601 string.
It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
dateValue - A date expressed as an ISO 8601 string.
It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time.
public String toString()
toString in class ObjectObject.toString()public DocumentAttributeValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.