public class InstanceInformationFilter extends Object implements Serializable, Cloneable
Describes a filter for a specific list of instances.
Constructor and Description |
---|
InstanceInformationFilter() |
Modifier and Type | Method and 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(Collection<String> valueSet)
The filter values.
|
InstanceInformationFilter |
withValueSet(String... valueSet)
The filter values.
|
public void setKey(String key)
The name of the filter.
key
- The name of the filter.InstanceInformationFilterKey
public String getKey()
The name of the filter.
InstanceInformationFilterKey
public InstanceInformationFilter withKey(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 void setValueSet(Collection<String> valueSet)
The filter values.
valueSet
- The filter values.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)
or
withValueSet(java.util.Collection)
if you want to override the
existing values.
valueSet
- The filter values.public InstanceInformationFilter withValueSet(Collection<String> valueSet)
The filter values.
valueSet
- The filter values.public String toString()
toString
in class Object
Object.toString()
public InstanceInformationFilter clone()
Copyright © 2018. All rights reserved.