public class TagFilter
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The name of a tag filter. Valid names are: tagKey
,
tagValue
, configurationId
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
A name of a tag filter.
|
private java.util.List<java.lang.String> |
values
Values of a tag filter.
|
Constructor and Description |
---|
TagFilter() |
Modifier and Type | Method and Description |
---|---|
TagFilter |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
A name of a tag filter.
|
java.util.List<java.lang.String> |
getValues()
Values of a tag filter.
|
int |
hashCode() |
void |
setName(java.lang.String name)
A name of a tag filter.
|
void |
setValues(java.util.Collection<java.lang.String> values)
Values of a tag filter.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagFilter |
withName(java.lang.String name)
A name of a tag filter.
|
TagFilter |
withValues(java.util.Collection<java.lang.String> values)
Values of a tag filter.
|
TagFilter |
withValues(java.lang.String... values)
Values of a tag filter.
|
private java.lang.String name
A name of a tag filter.
private java.util.List<java.lang.String> values
Values of a tag filter.
public void setName(java.lang.String name)
A name of a tag filter.
name
- A name of a tag filter.public java.lang.String getName()
A name of a tag filter.
public TagFilter withName(java.lang.String name)
A name of a tag filter.
name
- A name of a tag filter.public java.util.List<java.lang.String> getValues()
Values of a tag filter.
public void setValues(java.util.Collection<java.lang.String> values)
Values of a tag filter.
values
- Values of a tag filter.public TagFilter withValues(java.lang.String... values)
Values of a tag filter.
NOTE: This method appends the values to the existing list (if
any). Use setValues(java.util.Collection)
or
withValues(java.util.Collection)
if you want to override the
existing values.
values
- Values of a tag filter.public TagFilter withValues(java.util.Collection<java.lang.String> values)
Values of a tag filter.
values
- Values of a tag filter.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TagFilter clone()
clone
in class java.lang.Object