@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttributeKeyAndValue extends Object implements Serializable, Cloneable, StructuredPojo
The combination of an attribute key and an attribute value.
Constructor and Description |
---|
AttributeKeyAndValue() |
Modifier and Type | Method and Description |
---|---|
AttributeKeyAndValue |
clone() |
boolean |
equals(Object obj) |
AttributeKey |
getKey()
The key of the attribute.
|
TypedAttributeValue |
getValue()
The value of the attribute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(AttributeKey key)
The key of the attribute.
|
void |
setValue(TypedAttributeValue value)
The value of the attribute.
|
String |
toString()
Returns a string representation of this object.
|
AttributeKeyAndValue |
withKey(AttributeKey key)
The key of the attribute.
|
AttributeKeyAndValue |
withValue(TypedAttributeValue value)
The value of the attribute.
|
public void setKey(AttributeKey key)
The key of the attribute.
key
- The key of the attribute.public AttributeKey getKey()
The key of the attribute.
public AttributeKeyAndValue withKey(AttributeKey key)
The key of the attribute.
key
- The key of the attribute.public void setValue(TypedAttributeValue value)
The value of the attribute.
value
- The value of the attribute.public TypedAttributeValue getValue()
The value of the attribute.
public AttributeKeyAndValue withValue(TypedAttributeValue value)
The value of the attribute.
value
- The value of the attribute.public String toString()
toString
in class Object
Object.toString()
public AttributeKeyAndValue clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.