@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QueryFilter extends Object implements Serializable, Cloneable, StructuredPojo
A structure that defines a key and values that you can use to filter the results. The only performance events that
are returned are those that have values matching the ones that you specify in one of your QueryFilter
structures.
For example, you could specify Browser
as the Name
and specify Chrome,Firefox
as the Values
to return events generated only from those browsers.
Specifying Invert
as the Name
works as a "not equal to" filter. For example, specify
Invert
as the Name
and specify Chrome
as the value to return all events except
events from user sessions with the Chrome browser.
Constructor and Description |
---|
QueryFilter() |
Modifier and Type | Method and Description |
---|---|
QueryFilter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of a key to search for.
|
List<String> |
getValues()
The values of the
Name that are to be be included in the returned results. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of a key to search for.
|
void |
setValues(Collection<String> values)
The values of the
Name that are to be be included in the returned results. |
String |
toString()
Returns a string representation of this object.
|
QueryFilter |
withName(String name)
The name of a key to search for.
|
QueryFilter |
withValues(Collection<String> values)
The values of the
Name that are to be be included in the returned results. |
QueryFilter |
withValues(String... values)
The values of the
Name that are to be be included in the returned results. |
public void setName(String name)
The name of a key to search for. The filter returns only the events that match the Name
and
Values
that you specify.
Valid values for Name
are Browser
| Device
| Country
|
Page
| OS
| EventType
| Invert
name
- The name of a key to search for. The filter returns only the events that match the Name
and
Values
that you specify.
Valid values for Name
are Browser
| Device
| Country
|
Page
| OS
| EventType
| Invert
public String getName()
The name of a key to search for. The filter returns only the events that match the Name
and
Values
that you specify.
Valid values for Name
are Browser
| Device
| Country
|
Page
| OS
| EventType
| Invert
Name
and
Values
that you specify.
Valid values for Name
are Browser
| Device
| Country
| Page
| OS
| EventType
| Invert
public QueryFilter withName(String name)
The name of a key to search for. The filter returns only the events that match the Name
and
Values
that you specify.
Valid values for Name
are Browser
| Device
| Country
|
Page
| OS
| EventType
| Invert
name
- The name of a key to search for. The filter returns only the events that match the Name
and
Values
that you specify.
Valid values for Name
are Browser
| Device
| Country
|
Page
| OS
| EventType
| Invert
public List<String> getValues()
The values of the Name
that are to be be included in the returned results.
Name
that are to be be included in the returned results.public void setValues(Collection<String> values)
The values of the Name
that are to be be included in the returned results.
values
- The values of the Name
that are to be be included in the returned results.public QueryFilter withValues(String... values)
The values of the Name
that are to be be included in 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 values of the Name
that are to be be included in the returned results.public QueryFilter withValues(Collection<String> values)
The values of the Name
that are to be be included in the returned results.
values
- The values of the Name
that are to be be included in the returned results.public String toString()
toString
in class Object
Object.toString()
public QueryFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.