@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyValuePair extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the tags that are associated with an S3 bucket or object. Each tag consists of a required tag key and an associated tag value.
Constructor and Description |
---|
KeyValuePair() |
Modifier and Type | Method and Description |
---|---|
KeyValuePair |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
One part of a key-value pair that comprises a tag.
|
String |
getValue()
One part of a key-value pair that comprises a tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
One part of a key-value pair that comprises a tag.
|
void |
setValue(String value)
One part of a key-value pair that comprises a tag.
|
String |
toString()
Returns a string representation of this object.
|
KeyValuePair |
withKey(String key)
One part of a key-value pair that comprises a tag.
|
KeyValuePair |
withValue(String value)
One part of a key-value pair that comprises a tag.
|
public void setKey(String key)
One part of a key-value pair that comprises a tag. A tag key is a general label that acts as a category for more specific tag values.
key
- One part of a key-value pair that comprises a tag. A tag key is a general label that acts as a category
for more specific tag values.public String getKey()
One part of a key-value pair that comprises a tag. A tag key is a general label that acts as a category for more specific tag values.
public KeyValuePair withKey(String key)
One part of a key-value pair that comprises a tag. A tag key is a general label that acts as a category for more specific tag values.
key
- One part of a key-value pair that comprises a tag. A tag key is a general label that acts as a category
for more specific tag values.public void setValue(String value)
One part of a key-value pair that comprises a tag. A tag value acts as a descriptor for a tag key. A tag value can be an empty string.
value
- One part of a key-value pair that comprises a tag. A tag value acts as a descriptor for a tag key. A tag
value can be an empty string.public String getValue()
One part of a key-value pair that comprises a tag. A tag value acts as a descriptor for a tag key. A tag value can be an empty string.
public KeyValuePair withValue(String value)
One part of a key-value pair that comprises a tag. A tag value acts as a descriptor for a tag key. A tag value can be an empty string.
value
- One part of a key-value pair that comprises a tag. A tag value acts as a descriptor for a tag key. A tag
value can be an empty string.public String toString()
toString
in class Object
Object.toString()
public KeyValuePair clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.