public class Filter extends Object implements Serializable, Cloneable
Describes a filter.
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the filter.
|
List<String> |
getValues()
The value of the filter.
|
int |
hashCode() |
void |
setName(String name)
The name of the filter.
|
void |
setValues(Collection<String> values)
The value of the filter.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Filter |
withName(String name)
The name of the filter.
|
Filter |
withValues(Collection<String> values)
The value of the filter.
|
Filter |
withValues(String... values)
The value of the filter.
|
public String getName()
"auto-scaling-group", "key",
"value", and "propagate-at-launch".
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
"auto-scaling-group", "key",
"value", and "propagate-at-launch".public void setName(String name)
"auto-scaling-group", "key",
"value", and "propagate-at-launch".
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
name - The name of the filter. The valid values are:
"auto-scaling-group", "key",
"value", and "propagate-at-launch".public Filter withName(String name)
"auto-scaling-group", "key",
"value", and "propagate-at-launch".
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
name - The name of the filter. The valid values are:
"auto-scaling-group", "key",
"value", and "propagate-at-launch".public void setValues(Collection<String> values)
values - The value of the filter.public Filter withValues(String... values)
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.
Returns a reference to this object so that method calls can be chained together.
values - The value of the filter.public Filter withValues(Collection<String> values)
Returns a reference to this object so that method calls can be chained together.
values - The value of the filter.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.