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