@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 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 tag key 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) |
void |
setComparator(String comparator)
The operator to use in the condition.
|
void |
setKey(String key)
The tag key 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 tag key 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 operators are EQ (equals) or NE (not equals).
comparator - The operator to use in the condition. Valid operators are EQ (equals) or NE (not equals).JobComparatorpublic String getComparator()
The operator to use in the condition. Valid operators are EQ (equals) or NE (not equals).
JobComparatorpublic TagScopeTerm withComparator(String comparator)
The operator to use in the condition. Valid operators are EQ (equals) or NE (not equals).
comparator - The operator to use in the condition. Valid operators are EQ (equals) or NE (not equals).JobComparatorpublic TagScopeTerm withComparator(JobComparator comparator)
The operator to use in the condition. Valid operators are EQ (equals) or NE (not equals).
comparator - The operator to use in the condition. Valid operators are EQ (equals) or NE (not equals).JobComparatorpublic void setKey(String key)
The tag key to use in the condition.
key - The tag key to use in the condition.public String getKey()
The tag key to use in the condition.
public TagScopeTerm withKey(String key)
The tag key to use in the condition.
key - The tag key to use in the condition.public List<TagValuePair> getTagValues()
The tag keys or tag key and value pairs to use in the condition.
public void setTagValues(Collection<TagValuePair> tagValues)
The tag keys or tag key and value pairs to use in the condition.
tagValues - The tag keys or tag key and value pairs to use in the condition.public TagScopeTerm withTagValues(TagValuePair... tagValues)
The tag keys or tag key and value pairs to use in the condition.
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.public TagScopeTerm withTagValues(Collection<TagValuePair> tagValues)
The tag keys or tag key and value pairs to use in the condition.
tagValues - The tag keys or tag key and value pairs to use in the condition.public void setTarget(String target)
The type of object to apply the condition to.
target - The type of object to apply the condition to.TagTargetpublic String getTarget()
The type of object to apply the condition to.
TagTargetpublic TagScopeTerm withTarget(String target)
The type of object to apply the condition to.
target - The type of object to apply the condition to.TagTargetpublic TagScopeTerm withTarget(TagTarget target)
The type of object to apply the condition to.
target - The type of object to apply the condition to.TagTargetpublic String toString()
toString in class ObjectObject.toString()public TagScopeTerm clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.