@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Tag extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the key-value pair that are assigned to a file during the execution of a Tagging step.
Constructor and Description |
---|
S3Tag() |
Modifier and Type | Method and Description |
---|---|
S3Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The name assigned to the tag that you create.
|
String |
getValue()
The value that corresponds to the key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The name assigned to the tag that you create.
|
void |
setValue(String value)
The value that corresponds to the key.
|
String |
toString()
Returns a string representation of this object.
|
S3Tag |
withKey(String key)
The name assigned to the tag that you create.
|
S3Tag |
withValue(String value)
The value that corresponds to the key.
|
public void setKey(String key)
The name assigned to the tag that you create.
key
- The name assigned to the tag that you create.public String getKey()
The name assigned to the tag that you create.
public S3Tag withKey(String key)
The name assigned to the tag that you create.
key
- The name assigned to the tag that you create.public void setValue(String value)
The value that corresponds to the key.
value
- The value that corresponds to the key.public String getValue()
The value that corresponds to the key.
public S3Tag withValue(String value)
The value that corresponds to the key.
value
- The value that corresponds to the 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.