Class InstanceInformationFilter
- java.lang.Object
-
- com.amazonaws.services.simplesystemsmanagement.model.InstanceInformationFilter
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceInformationFilter extends Object implements Serializable, Cloneable
Describes a filter for a specific list of instances.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceInformationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceInformationFilter
clone()
boolean
equals(Object obj)
String
getKey()
The name of the filter.List<String>
getValueSet()
The filter values.int
hashCode()
void
setKey(InstanceInformationFilterKey key)
The name of the filter.void
setKey(String key)
The name of the filter.void
setValueSet(Collection<String> valueSet)
The filter values.String
toString()
Returns a string representation of this object; useful for testing and debugging.InstanceInformationFilter
withKey(InstanceInformationFilterKey key)
The name of the filter.InstanceInformationFilter
withKey(String key)
The name of the filter.InstanceInformationFilter
withValueSet(String... valueSet)
The filter values.InstanceInformationFilter
withValueSet(Collection<String> valueSet)
The filter values.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
The name of the filter.
- Parameters:
key
- The name of the filter.- See Also:
InstanceInformationFilterKey
-
getKey
public String getKey()
The name of the filter.
- Returns:
- The name of the filter.
- See Also:
InstanceInformationFilterKey
-
withKey
public InstanceInformationFilter withKey(String key)
The name of the filter.
- Parameters:
key
- The name of the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceInformationFilterKey
-
setKey
public void setKey(InstanceInformationFilterKey key)
The name of the filter.
- Parameters:
key
- The name of the filter.- See Also:
InstanceInformationFilterKey
-
withKey
public InstanceInformationFilter withKey(InstanceInformationFilterKey key)
The name of the filter.
- Parameters:
key
- The name of the filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceInformationFilterKey
-
setValueSet
public void setValueSet(Collection<String> valueSet)
The filter values.
- Parameters:
valueSet
- The filter values.
-
withValueSet
public InstanceInformationFilter withValueSet(String... valueSet)
The filter values.
NOTE: This method appends the values to the existing list (if any). Use
setValueSet(java.util.Collection)
orwithValueSet(java.util.Collection)
if you want to override the existing values.- Parameters:
valueSet
- The filter values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withValueSet
public InstanceInformationFilter withValueSet(Collection<String> valueSet)
The filter values.
- Parameters:
valueSet
- The filter values.- 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()
-
clone
public InstanceInformationFilter clone()
-
-