Class Filter
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.Filter
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Filter extends Object implements Serializable, Cloneable
Describes a filter.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Filter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String... values)
The value of the filter.Filter
withValues(Collection<String> values)
The value of the filter.
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of the filter. The valid values are:
"auto-scaling-group"
,"key"
,"value"
, and"propagate-at-launch"
.- Parameters:
name
- The name of the filter. The valid values are:"auto-scaling-group"
,"key"
,"value"
, and"propagate-at-launch"
.
-
getName
public String getName()
The name of the filter. The valid values are:
"auto-scaling-group"
,"key"
,"value"
, and"propagate-at-launch"
.- Returns:
- The name of the filter. The valid values are:
"auto-scaling-group"
,"key"
,"value"
, and"propagate-at-launch"
.
-
withName
public Filter withName(String name)
The name of the filter. The valid values are:
"auto-scaling-group"
,"key"
,"value"
, and"propagate-at-launch"
.- Parameters:
name
- The name of the filter. The valid values are:"auto-scaling-group"
,"key"
,"value"
, and"propagate-at-launch"
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getValues
public List<String> getValues()
The value of the filter.
- Returns:
- The value of the filter.
-
setValues
public void setValues(Collection<String> values)
The value of the filter.
- Parameters:
values
- The value of the filter.
-
withValues
public Filter withValues(String... values)
The value of the 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
- The value of the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withValues
public Filter withValues(Collection<String> values)
The value of the filter.
- Parameters:
values
- The value of the 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-