public class InstanceInformationFilter
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a filter for a specific list of instances.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The name of the filter.
|
private SdkInternalList<java.lang.String> |
valueSet
The filter values.
|
Constructor and Description |
---|
InstanceInformationFilter() |
Modifier and Type | Method and Description |
---|---|
InstanceInformationFilter |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The name of the filter.
|
java.util.List<java.lang.String> |
getValueSet()
The filter values.
|
int |
hashCode() |
void |
setKey(InstanceInformationFilterKey key)
The name of the filter.
|
void |
setKey(java.lang.String key)
The name of the filter.
|
void |
setValueSet(java.util.Collection<java.lang.String> valueSet)
The filter values.
|
java.lang.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(java.lang.String key)
The name of the filter.
|
InstanceInformationFilter |
withValueSet(java.util.Collection<java.lang.String> valueSet)
The filter values.
|
InstanceInformationFilter |
withValueSet(java.lang.String... valueSet)
The filter values.
|
private java.lang.String key
The name of the filter.
private SdkInternalList<java.lang.String> valueSet
The filter values.
public void setKey(java.lang.String key)
The name of the filter.
key
- The name of the filter.InstanceInformationFilterKey
public java.lang.String getKey()
The name of the filter.
InstanceInformationFilterKey
public InstanceInformationFilter withKey(java.lang.String key)
The name of the filter.
key
- The name of the filter.InstanceInformationFilterKey
public void setKey(InstanceInformationFilterKey key)
The name of the filter.
key
- The name of the filter.InstanceInformationFilterKey
public InstanceInformationFilter withKey(InstanceInformationFilterKey key)
The name of the filter.
key
- The name of the filter.InstanceInformationFilterKey
public java.util.List<java.lang.String> getValueSet()
The filter values.
public void setValueSet(java.util.Collection<java.lang.String> valueSet)
The filter values.
valueSet
- The filter values.public InstanceInformationFilter withValueSet(java.lang.String... valueSet)
The filter values.
NOTE: This method appends the values to the existing list (if
any). Use setValueSet(java.util.Collection)
or
withValueSet(java.util.Collection)
if you want to override the
existing values.
valueSet
- The filter values.public InstanceInformationFilter withValueSet(java.util.Collection<java.lang.String> valueSet)
The filter values.
valueSet
- The filter values.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 InstanceInformationFilter clone()
clone
in class java.lang.Object