@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetadataKeyValuePair extends Object implements Serializable, Cloneable, StructuredPojo
A structure containing a key value pair for metadata.
Constructor and Description |
---|
MetadataKeyValuePair() |
Modifier and Type | Method and Description |
---|---|
MetadataKeyValuePair |
clone() |
boolean |
equals(Object obj) |
String |
getMetadataKey()
A metadata key.
|
String |
getMetadataValue()
A metadata key’s corresponding value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetadataKey(String metadataKey)
A metadata key.
|
void |
setMetadataValue(String metadataValue)
A metadata key’s corresponding value.
|
String |
toString()
Returns a string representation of this object.
|
MetadataKeyValuePair |
withMetadataKey(String metadataKey)
A metadata key.
|
MetadataKeyValuePair |
withMetadataValue(String metadataValue)
A metadata key’s corresponding value.
|
public void setMetadataKey(String metadataKey)
A metadata key.
metadataKey
- A metadata key.public String getMetadataKey()
A metadata key.
public MetadataKeyValuePair withMetadataKey(String metadataKey)
A metadata key.
metadataKey
- A metadata key.public void setMetadataValue(String metadataValue)
A metadata key’s corresponding value.
metadataValue
- A metadata key’s corresponding value.public String getMetadataValue()
A metadata key’s corresponding value.
public MetadataKeyValuePair withMetadataValue(String metadataValue)
A metadata key’s corresponding value.
metadataValue
- A metadata key’s corresponding value.public String toString()
toString
in class Object
Object.toString()
public MetadataKeyValuePair clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.