Class TagFilter
- java.lang.Object
-
- com.amazonaws.services.applicationdiscovery.model.TagFilter
-
- All Implemented Interfaces:
Serializable,Cloneable
public class TagFilter extends Object implements Serializable, Cloneable
The name of a tag filter. Valid names are:
tagKey,tagValue,configurationId.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagFilterclone()booleanequals(Object obj)StringgetName()A name of a tag filter.List<String>getValues()Values of a tag filter.inthashCode()voidsetName(String name)A name of a tag filter.voidsetValues(Collection<String> values)Values of a tag filter.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagFilterwithName(String name)A name of a tag filter.TagFilterwithValues(String... values)Values of a tag filter.TagFilterwithValues(Collection<String> values)Values of a tag filter.
-
-
-
Method Detail
-
setName
public void setName(String name)
A name of a tag filter.
- Parameters:
name- A name of a tag filter.
-
getName
public String getName()
A name of a tag filter.
- Returns:
- A name of a tag filter.
-
withName
public TagFilter withName(String name)
A name of a tag filter.
- Parameters:
name- A name of a tag filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValues
public void setValues(Collection<String> values)
Values of a tag filter.
- Parameters:
values- Values of a tag filter.
-
withValues
public TagFilter withValues(String... values)
Values of a tag filter.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)orwithValues(java.util.Collection)if you want to override the existing values.- Parameters:
values- Values of a tag filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withValues
public TagFilter withValues(Collection<String> values)
Values of a tag filter.
- Parameters:
values- Values of a tag filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-