@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Tag extends Object implements Serializable, Cloneable
A container for a key-value name pair.
Constructor and Description |
---|
S3Tag() |
Modifier and Type | Method and Description |
---|---|
S3Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
Key of the tag
|
String |
getValue()
Value of the tag
|
int |
hashCode() |
void |
setKey(String key)
Key of the tag
|
void |
setValue(String value)
Value of the tag
|
String |
toString()
Returns a string representation of this object.
|
S3Tag |
withKey(String key)
Key of the tag
|
S3Tag |
withValue(String value)
Value of the tag
|
public void setKey(String key)
Key of the tag
key
- Key of the tagpublic String getKey()
Key of the tag
public S3Tag withKey(String key)
Key of the tag
key
- Key of the tagpublic void setValue(String value)
Value of the tag
value
- Value of the tagpublic String getValue()
Value of the tag
public S3Tag withValue(String value)
Value of the tag
value
- Value of the tagpublic String toString()
toString
in class Object
Object.toString()