@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
Identifies the name and value of a filter object. This filter is used to limit the number and type of DMS objects
that are returned for a particular Describe*
call or similar operation. Filters are used as an optional
parameter for certain API operations.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the filter as specified for a
Describe* or similar operation. |
List<String> |
getValues()
The filter value, which can specify one or more values used to narrow the returned results.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the filter as specified for a
Describe* or similar operation. |
void |
setValues(Collection<String> values)
The filter value, which can specify one or more values used to narrow the returned results.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withName(String name)
The name of the filter as specified for a
Describe* or similar operation. |
Filter |
withValues(Collection<String> values)
The filter value, which can specify one or more values used to narrow the returned results.
|
Filter |
withValues(String... values)
The filter value, which can specify one or more values used to narrow the returned results.
|
public void setName(String name)
The name of the filter as specified for a Describe*
or similar operation.
name
- The name of the filter as specified for a Describe*
or similar operation.public String getName()
The name of the filter as specified for a Describe*
or similar operation.
Describe*
or similar operation.public Filter withName(String name)
The name of the filter as specified for a Describe*
or similar operation.
name
- The name of the filter as specified for a Describe*
or similar operation.public List<String> getValues()
The filter value, which can specify one or more values used to narrow the returned results.
public void setValues(Collection<String> values)
The filter value, which can specify one or more values used to narrow the returned results.
values
- The filter value, which can specify one or more values used to narrow the returned results.public Filter withValues(String... values)
The filter value, which can specify one or more values used to narrow the returned results.
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
- The filter value, which can specify one or more values used to narrow the returned results.public Filter withValues(Collection<String> values)
The filter value, which can specify one or more values used to narrow the returned results.
values
- The filter value, which can specify one or more values used to narrow the returned results.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.