@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagScopeTerm extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a tag-based condition that determines whether an S3 object is included or excluded from a classification job.
Constructor and Description |
---|
TagScopeTerm() |
Modifier and Type | Method and Description |
---|---|
TagScopeTerm |
clone() |
boolean |
equals(Object obj) |
String |
getComparator()
The operator to use in the condition.
|
String |
getKey()
The object property to use in the condition.
|
List<TagValuePair> |
getTagValues()
The tag keys or tag key and value pairs to use in the condition.
|
String |
getTarget()
The type of object to apply the condition to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComparator(String comparator)
The operator to use in the condition.
|
void |
setKey(String key)
The object property to use in the condition.
|
void |
setTagValues(Collection<TagValuePair> tagValues)
The tag keys or tag key and value pairs to use in the condition.
|
void |
setTarget(String target)
The type of object to apply the condition to.
|
String |
toString()
Returns a string representation of this object.
|
TagScopeTerm |
withComparator(JobComparator comparator)
The operator to use in the condition.
|
TagScopeTerm |
withComparator(String comparator)
The operator to use in the condition.
|
TagScopeTerm |
withKey(String key)
The object property to use in the condition.
|
TagScopeTerm |
withTagValues(Collection<TagValuePair> tagValues)
The tag keys or tag key and value pairs to use in the condition.
|
TagScopeTerm |
withTagValues(TagValuePair... tagValues)
The tag keys or tag key and value pairs to use in the condition.
|
TagScopeTerm |
withTarget(String target)
The type of object to apply the condition to.
|
TagScopeTerm |
withTarget(TagTarget target)
The type of object to apply the condition to.
|
public void setComparator(String comparator)
The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).
comparator
- The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).JobComparator
public String getComparator()
The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).
JobComparator
public TagScopeTerm withComparator(String comparator)
The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).
comparator
- The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).JobComparator
public TagScopeTerm withComparator(JobComparator comparator)
The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).
comparator
- The operator to use in the condition. Valid values are EQ (equals) or NE (not equals).JobComparator
public void setKey(String key)
The object property to use in the condition. The only valid value is TAG.
key
- The object property to use in the condition. The only valid value is TAG.public String getKey()
The object property to use in the condition. The only valid value is TAG.
public TagScopeTerm withKey(String key)
The object property to use in the condition. The only valid value is TAG.
key
- The object property to use in the condition. The only valid value is TAG.public List<TagValuePair> getTagValues()
The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition, specify the keys in this array and set the value for each associated tag value to an empty string.
public void setTagValues(Collection<TagValuePair> tagValues)
The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition, specify the keys in this array and set the value for each associated tag value to an empty string.
tagValues
- The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition,
specify the keys in this array and set the value for each associated tag value to an empty string.public TagScopeTerm withTagValues(TagValuePair... tagValues)
The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition, specify the keys in this array and set the value for each associated tag value to an empty string.
NOTE: This method appends the values to the existing list (if any). Use
setTagValues(java.util.Collection)
or withTagValues(java.util.Collection)
if you want to
override the existing values.
tagValues
- The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition,
specify the keys in this array and set the value for each associated tag value to an empty string.public TagScopeTerm withTagValues(Collection<TagValuePair> tagValues)
The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition, specify the keys in this array and set the value for each associated tag value to an empty string.
tagValues
- The tag keys or tag key and value pairs to use in the condition. To specify only tag keys in a condition,
specify the keys in this array and set the value for each associated tag value to an empty string.public void setTarget(String target)
The type of object to apply the condition to.
target
- The type of object to apply the condition to.TagTarget
public String getTarget()
The type of object to apply the condition to.
TagTarget
public TagScopeTerm withTarget(String target)
The type of object to apply the condition to.
target
- The type of object to apply the condition to.TagTarget
public TagScopeTerm withTarget(TagTarget target)
The type of object to apply the condition to.
target
- The type of object to apply the condition to.TagTarget
public String toString()
toString
in class Object
Object.toString()
public TagScopeTerm clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.