@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
A filter that can use conditional operators.
For more information about filters, see Querying Discovered Configuration Items.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getCondition()
A conditional operator.
|
String |
getName()
The name of the filter.
|
List<String> |
getValues()
A string value on which to filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCondition(String condition)
A conditional operator.
|
void |
setName(String name)
The name of the filter.
|
void |
setValues(Collection<String> values)
A string value on which to filter.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Filter |
withCondition(String condition)
A conditional operator.
|
Filter |
withName(String name)
The name of the filter.
|
Filter |
withValues(Collection<String> values)
A string value on which to filter.
|
Filter |
withValues(String... values)
A string value on which to filter.
|
public void setName(String name)
The name of the filter.
name
- The name of the filter.public String getName()
The name of the filter.
public Filter withName(String name)
The name of the filter.
name
- The name of the filter.public List<String> getValues()
A string value on which to filter. For example, if you choose the destinationServer.osVersion
filter
name, you could specify Ubuntu
for the value.
destinationServer.osVersion
filter name, you could specify Ubuntu
for the
value.public void setValues(Collection<String> values)
A string value on which to filter. For example, if you choose the destinationServer.osVersion
filter
name, you could specify Ubuntu
for the value.
values
- A string value on which to filter. For example, if you choose the destinationServer.osVersion
filter name, you could specify Ubuntu
for the value.public Filter withValues(String... values)
A string value on which to filter. For example, if you choose the destinationServer.osVersion
filter
name, you could specify Ubuntu
for the value.
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
- A string value on which to filter. For example, if you choose the destinationServer.osVersion
filter name, you could specify Ubuntu
for the value.public Filter withValues(Collection<String> values)
A string value on which to filter. For example, if you choose the destinationServer.osVersion
filter
name, you could specify Ubuntu
for the value.
values
- A string value on which to filter. For example, if you choose the destinationServer.osVersion
filter name, you could specify Ubuntu
for the value.public void setCondition(String condition)
A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.
condition
- A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If
you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you
specify multiple values for a particular filter, the system differentiates the values using OR.
Calling either DescribeConfigurations or ListConfigurations returns attributes of matching
configuration items.public String getCondition()
A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.
public Filter withCondition(String condition)
A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items.
condition
- A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If
you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you
specify multiple values for a particular filter, the system differentiates the values using OR.
Calling either DescribeConfigurations or ListConfigurations returns attributes of matching
configuration items.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.