@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FilterParameter extends Object implements Serializable, Cloneable, StructuredPojo
A filter that you use with the results of a Amazon CloudWatch Internet Monitor query that you created and ran. The
query sets up a repository of data that is a subset of your application's Internet Monitor data.
FilterParameter
is a string that defines how you want to filter the repository of data to return a set
of results, based on your criteria.
The filter parameters that you can specify depend on the query type that you used to create the repository, since each query type returns a different set of Internet Monitor data.
For each filter, you specify a field (such as city
), an operator (such as not_equals
, and a
value or array of values (such as ["Seattle", "Redmond"]
). Separate values in the array with commas.
For more information about specifying filter parameters, see Using the Amazon CloudWatch Internet Monitor query interface in the Amazon CloudWatch Internet Monitor User Guide.
Constructor and Description |
---|
FilterParameter() |
Modifier and Type | Method and Description |
---|---|
FilterParameter |
clone() |
boolean |
equals(Object obj) |
String |
getField()
A data field that you want to filter, to further scope your application's Internet Monitor data in a repository
that you created by running a query.
|
String |
getOperator()
The operator to use with the filter field and a value, such as
not_equals . |
List<String> |
getValues()
One or more values to be used, together with the specified operator, to filter data for a query.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setField(String field)
A data field that you want to filter, to further scope your application's Internet Monitor data in a repository
that you created by running a query.
|
void |
setOperator(String operator)
The operator to use with the filter field and a value, such as
not_equals . |
void |
setValues(Collection<String> values)
One or more values to be used, together with the specified operator, to filter data for a query.
|
String |
toString()
Returns a string representation of this object.
|
FilterParameter |
withField(String field)
A data field that you want to filter, to further scope your application's Internet Monitor data in a repository
that you created by running a query.
|
FilterParameter |
withOperator(Operator operator)
The operator to use with the filter field and a value, such as
not_equals . |
FilterParameter |
withOperator(String operator)
The operator to use with the filter field and a value, such as
not_equals . |
FilterParameter |
withValues(Collection<String> values)
One or more values to be used, together with the specified operator, to filter data for a query.
|
FilterParameter |
withValues(String... values)
One or more values to be used, together with the specified operator, to filter data for a query.
|
public void setField(String field)
A data field that you want to filter, to further scope your application's Internet Monitor data in a repository
that you created by running a query. A field might be city
, for example. The field must be one of
the fields that was returned by the specific query that you used to create the repository.
field
- A data field that you want to filter, to further scope your application's Internet Monitor data in a
repository that you created by running a query. A field might be city
, for example. The field
must be one of the fields that was returned by the specific query that you used to create the repository.public String getField()
A data field that you want to filter, to further scope your application's Internet Monitor data in a repository
that you created by running a query. A field might be city
, for example. The field must be one of
the fields that was returned by the specific query that you used to create the repository.
city
, for example. The
field must be one of the fields that was returned by the specific query that you used to create the
repository.public FilterParameter withField(String field)
A data field that you want to filter, to further scope your application's Internet Monitor data in a repository
that you created by running a query. A field might be city
, for example. The field must be one of
the fields that was returned by the specific query that you used to create the repository.
field
- A data field that you want to filter, to further scope your application's Internet Monitor data in a
repository that you created by running a query. A field might be city
, for example. The field
must be one of the fields that was returned by the specific query that you used to create the repository.public void setOperator(String operator)
The operator to use with the filter field and a value, such as not_equals
.
operator
- The operator to use with the filter field and a value, such as not_equals
.Operator
public String getOperator()
The operator to use with the filter field and a value, such as not_equals
.
not_equals
.Operator
public FilterParameter withOperator(String operator)
The operator to use with the filter field and a value, such as not_equals
.
operator
- The operator to use with the filter field and a value, such as not_equals
.Operator
public FilterParameter withOperator(Operator operator)
The operator to use with the filter field and a value, such as not_equals
.
operator
- The operator to use with the filter field and a value, such as not_equals
.Operator
public List<String> getValues()
One or more values to be used, together with the specified operator, to filter data for a query. For example, you
could specify an array of values such as ["Seattle", "Redmond"]
. Values in the array are separated
by commas.
["Seattle", "Redmond"]
. Values in the
array are separated by commas.public void setValues(Collection<String> values)
One or more values to be used, together with the specified operator, to filter data for a query. For example, you
could specify an array of values such as ["Seattle", "Redmond"]
. Values in the array are separated
by commas.
values
- One or more values to be used, together with the specified operator, to filter data for a query. For
example, you could specify an array of values such as ["Seattle", "Redmond"]
. Values in the
array are separated by commas.public FilterParameter withValues(String... values)
One or more values to be used, together with the specified operator, to filter data for a query. For example, you
could specify an array of values such as ["Seattle", "Redmond"]
. Values in the array are separated
by commas.
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 values to be used, together with the specified operator, to filter data for a query. For
example, you could specify an array of values such as ["Seattle", "Redmond"]
. Values in the
array are separated by commas.public FilterParameter withValues(Collection<String> values)
One or more values to be used, together with the specified operator, to filter data for a query. For example, you
could specify an array of values such as ["Seattle", "Redmond"]
. Values in the array are separated
by commas.
values
- One or more values to be used, together with the specified operator, to filter data for a query. For
example, you could specify an array of values such as ["Seattle", "Redmond"]
. Values in the
array are separated by commas.public String toString()
toString
in class Object
Object.toString()
public FilterParameter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.