public class Filter
extends java.lang.Object
implements java.io.Serializable
A filter used to limit results when describing tags. Multiple values can be specified per filter. A tag must match at least one of the specified values for it to be returned from an operation.
Wildcards can be included in filter values; * specifies that zero or more characters must match, and ? specifies that
exactly one character must match. Use a backslash to escape special characters. For example, a filter value of \*amazon\?\\ specifies
the literal string *amazon?\ .
| コンストラクタと説明 |
|---|
Filter()
Default constructor for a new Filter object.
|
Filter(java.lang.String name)
Constructs a new Filter object.
|
Filter(java.lang.String name,
java.util.List<java.lang.String> values)
Constructs a new Filter object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Specifies the name of the filter.
|
java.util.List<java.lang.String> |
getValues()
Contains one or more values for the filter.
|
int |
hashCode() |
void |
setName(java.lang.String name)
Specifies the name of the filter.
|
void |
setValues(java.util.Collection<java.lang.String> values)
Contains one or more values for the filter.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Filter |
withName(java.lang.String name)
Specifies the name of the filter.
|
Filter |
withValues(java.util.Collection<java.lang.String> values)
Contains one or more values for the filter.
|
Filter |
withValues(java.lang.String... values)
Contains one or more values for the filter.
|
public Filter()
public Filter(java.lang.String name,
java.util.List<java.lang.String> values)
name - Specifies the name of the filter.values - Contains one or more values for the filter.public Filter(java.lang.String name)
name - Specifies the name of the filter.public java.lang.String getName()
public void setName(java.lang.String name)
name - Specifies the name of the filter.public Filter withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
name - Specifies the name of the filter.public java.util.List<java.lang.String> getValues()
public void setValues(java.util.Collection<java.lang.String> values)
values - Contains one or more values for the filter.public Filter withValues(java.lang.String... values)
Returns a reference to this object so that method calls can be chained together.
values - Contains one or more values for the filter.public Filter withValues(java.util.Collection<java.lang.String> values)
Returns a reference to this object so that method calls can be chained together.
values - Contains one or more values for the filter.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object