@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentAttribute extends Object implements Serializable, Cloneable, StructuredPojo
A custom attribute value assigned to a document.
For more information on how to create custom document attributes, see Custom Attributes.
Constructor and Description |
---|
DocumentAttribute() |
Modifier and Type | Method and Description |
---|---|
DocumentAttribute |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The identifier for the attribute.
|
DocumentAttributeValue |
getValue()
The value of the attribute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The identifier for the attribute.
|
void |
setValue(DocumentAttributeValue value)
The value of the attribute.
|
String |
toString()
Returns a string representation of this object.
|
DocumentAttribute |
withKey(String key)
The identifier for the attribute.
|
DocumentAttribute |
withValue(DocumentAttributeValue value)
The value of the attribute.
|
public void setKey(String key)
The identifier for the attribute.
key
- The identifier for the attribute.public String getKey()
The identifier for the attribute.
public DocumentAttribute withKey(String key)
The identifier for the attribute.
key
- The identifier for the attribute.public void setValue(DocumentAttributeValue value)
The value of the attribute.
value
- The value of the attribute.public DocumentAttributeValue getValue()
The value of the attribute.
public DocumentAttribute withValue(DocumentAttributeValue value)
The value of the attribute.
value
- The value of the attribute.public String toString()
toString
in class Object
Object.toString()
public DocumentAttribute clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.