@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagValuePair extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a tag key or tag key and value pair to use in a tag-based condition that determines whether an S3 object is included or excluded from a classification job. Tag keys and values are case sensitive. Also, Amazon Macie doesn't support use of partial values or wildcard characters in tag-based conditions.
Constructor and Description |
---|
TagValuePair() |
Modifier and Type | Method and Description |
---|---|
TagValuePair |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The value for the tag key to use in the condition.
|
String |
getValue()
The tag value, associated with the specified tag key (key), to use in the condition.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The value for the tag key to use in the condition.
|
void |
setValue(String value)
The tag value, associated with the specified tag key (key), to use in the condition.
|
String |
toString()
Returns a string representation of this object.
|
TagValuePair |
withKey(String key)
The value for the tag key to use in the condition.
|
TagValuePair |
withValue(String value)
The tag value, associated with the specified tag key (key), to use in the condition.
|
public void setKey(String key)
The value for the tag key to use in the condition.
key
- The value for the tag key to use in the condition.public String getKey()
The value for the tag key to use in the condition.
public TagValuePair withKey(String key)
The value for the tag key to use in the condition.
key
- The value for the tag key to use in the condition.public void setValue(String value)
The tag value, associated with the specified tag key (key), to use in the condition. To specify only a tag key for a condition, specify the tag key for the key property and set this value to an empty string.
value
- The tag value, associated with the specified tag key (key), to use in the condition. To specify only a tag
key for a condition, specify the tag key for the key property and set this value to an empty string.public String getValue()
The tag value, associated with the specified tag key (key), to use in the condition. To specify only a tag key for a condition, specify the tag key for the key property and set this value to an empty string.
public TagValuePair withValue(String value)
The tag value, associated with the specified tag key (key), to use in the condition. To specify only a tag key for a condition, specify the tag key for the key property and set this value to an empty string.
value
- The tag value, associated with the specified tag key (key), to use in the condition. To specify only a tag
key for a condition, specify the tag key for the key property and set this value to an empty string.public String toString()
toString
in class Object
Object.toString()
public TagValuePair clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.