@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3ObjectTag extends Object implements Serializable, Cloneable
The tags to apply to the AMI object that will be stored in the Amazon S3 bucket. For more information, see Categorizing your storage using tags in the Amazon Simple Storage Service User Guide.
Constructor and Description |
---|
S3ObjectTag() |
Modifier and Type | Method and Description |
---|---|
S3ObjectTag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key of the tag.
|
String |
getValue()
The value of the tag.
|
int |
hashCode() |
void |
setKey(String key)
The key of the tag.
|
void |
setValue(String value)
The value of the tag.
|
String |
toString()
Returns a string representation of this object.
|
S3ObjectTag |
withKey(String key)
The key of the tag.
|
S3ObjectTag |
withValue(String value)
The value of the tag.
|
public void setKey(String key)
The key of the tag.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin with
aws
:.
key
- The key of the tag.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin
with aws
:.
public String getKey()
The key of the tag.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin with
aws
:.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin
with aws
:.
public S3ObjectTag withKey(String key)
The key of the tag.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin with
aws
:.
key
- The key of the tag.
Constraints: Tag keys are case-sensitive and can be up to 128 Unicode characters in length. May not begin
with aws
:.
public void setValue(String value)
The value of the tag.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
value
- The value of the tag.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
public String getValue()
The value of the tag.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
public S3ObjectTag withValue(String value)
The value of the tag.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
value
- The value of the tag.
Constraints: Tag values are case-sensitive and can be up to 256 Unicode characters in length.
public String toString()
toString
in class Object
Object.toString()
public S3ObjectTag clone()