@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagFilter extends Object implements Serializable, Cloneable, StructuredPojo
Used to filter information based on tags.
| Constructor and Description |
|---|
TagFilter() |
| Modifier and Type | Method and Description |
|---|---|
TagFilter |
clone() |
boolean |
equals(Object obj) |
String |
getTagKey()
The tag key.
|
List<String> |
getTagValues()
The tag values.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setTagKey(String tagKey)
The tag key.
|
void |
setTagValues(Collection<String> tagValues)
The tag values.
|
String |
toString()
Returns a string representation of this object.
|
TagFilter |
withTagKey(String tagKey)
The tag key.
|
TagFilter |
withTagValues(Collection<String> tagValues)
The tag values.
|
TagFilter |
withTagValues(String... tagValues)
The tag values.
|
public void setTagKey(String tagKey)
The tag key.
tagKey - The tag key.public String getTagKey()
The tag key.
public TagFilter withTagKey(String tagKey)
The tag key.
tagKey - The tag key.public void setTagValues(Collection<String> tagValues)
The tag values.
tagValues - The tag values.public TagFilter withTagValues(String... tagValues)
The tag values.
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 values.public TagFilter withTagValues(Collection<String> tagValues)
The tag values.
tagValues - The tag values.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.