@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GroupFilter extends Object implements Serializable, Cloneable, StructuredPojo
A filter collection that you can use to restrict the results from a List
operation to only those you
want to include.
Constructor and Description |
---|
GroupFilter() |
Modifier and Type | Method and Description |
---|---|
GroupFilter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the filter.
|
List<String> |
getValues()
One or more filter values.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the filter.
|
void |
setValues(Collection<String> values)
One or more filter values.
|
String |
toString()
Returns a string representation of this object.
|
GroupFilter |
withName(GroupFilterName name)
The name of the filter.
|
GroupFilter |
withName(String name)
The name of the filter.
|
GroupFilter |
withValues(Collection<String> values)
One or more filter values.
|
GroupFilter |
withValues(String... values)
One or more filter values.
|
public void setName(String name)
The name of the filter. Filter names are case-sensitive.
name
- The name of the filter. Filter names are case-sensitive.GroupFilterName
public String getName()
The name of the filter. Filter names are case-sensitive.
GroupFilterName
public GroupFilter withName(String name)
The name of the filter. Filter names are case-sensitive.
name
- The name of the filter. Filter names are case-sensitive.GroupFilterName
public GroupFilter withName(GroupFilterName name)
The name of the filter. Filter names are case-sensitive.
name
- The name of the filter. Filter names are case-sensitive.GroupFilterName
public List<String> getValues()
One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.
public void setValues(Collection<String> values)
One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.
values
- One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.public GroupFilter withValues(String... values)
One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.
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.
values
- One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.public GroupFilter withValues(Collection<String> values)
One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.
values
- One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.public String toString()
toString
in class Object
Object.toString()
public GroupFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.