public class FilterV2
extends java.lang.Object
implements java.io.Serializable
Contains the filter to apply when retrieving metrics with the GetMetricDataV2 API.
| Constructor and Description |
|---|
FilterV2() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFilterKey()
The key to use for filtering data.
|
java.util.List<java.lang.String> |
getFilterValues()
The identifiers to use for filtering data.
|
int |
hashCode() |
void |
setFilterKey(java.lang.String filterKey)
The key to use for filtering data.
|
void |
setFilterValues(java.util.Collection<java.lang.String> filterValues)
The identifiers to use for filtering data.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FilterV2 |
withFilterKey(java.lang.String filterKey)
The key to use for filtering data.
|
FilterV2 |
withFilterValues(java.util.Collection<java.lang.String> filterValues)
The identifiers to use for filtering data.
|
FilterV2 |
withFilterValues(java.lang.String... filterValues)
The identifiers to use for filtering data.
|
public java.lang.String getFilterKey()
The key to use for filtering data. For example, QUEUE,
ROUTING_PROFILE, AGENT, CHANNEL,
AGENT_HIERARCHY_LEVEL_ONE,
AGENT_HIERARCHY_LEVEL_TWO,
AGENT_HIERARCHY_LEVEL_THREE,
AGENT_HIERARCHY_LEVEL_FOUR,
AGENT_HIERARCHY_LEVEL_FIVE. There must be at least 1 key and
a maximum 5 keys.
Constraints:
Length: 1 - 250
The key to use for filtering data. For example,
QUEUE, ROUTING_PROFILE, AGENT,
CHANNEL, AGENT_HIERARCHY_LEVEL_ONE,
AGENT_HIERARCHY_LEVEL_TWO,
AGENT_HIERARCHY_LEVEL_THREE,
AGENT_HIERARCHY_LEVEL_FOUR,
AGENT_HIERARCHY_LEVEL_FIVE. There must be at least 1
key and a maximum 5 keys.
public void setFilterKey(java.lang.String filterKey)
The key to use for filtering data. For example, QUEUE,
ROUTING_PROFILE, AGENT, CHANNEL,
AGENT_HIERARCHY_LEVEL_ONE,
AGENT_HIERARCHY_LEVEL_TWO,
AGENT_HIERARCHY_LEVEL_THREE,
AGENT_HIERARCHY_LEVEL_FOUR,
AGENT_HIERARCHY_LEVEL_FIVE. There must be at least 1 key and
a maximum 5 keys.
Constraints:
Length: 1 - 250
filterKey -
The key to use for filtering data. For example,
QUEUE, ROUTING_PROFILE, AGENT,
CHANNEL, AGENT_HIERARCHY_LEVEL_ONE,
AGENT_HIERARCHY_LEVEL_TWO,
AGENT_HIERARCHY_LEVEL_THREE,
AGENT_HIERARCHY_LEVEL_FOUR,
AGENT_HIERARCHY_LEVEL_FIVE. There must be at
least 1 key and a maximum 5 keys.
public FilterV2 withFilterKey(java.lang.String filterKey)
The key to use for filtering data. For example, QUEUE,
ROUTING_PROFILE, AGENT, CHANNEL,
AGENT_HIERARCHY_LEVEL_ONE,
AGENT_HIERARCHY_LEVEL_TWO,
AGENT_HIERARCHY_LEVEL_THREE,
AGENT_HIERARCHY_LEVEL_FOUR,
AGENT_HIERARCHY_LEVEL_FIVE. There must be at least 1 key and
a maximum 5 keys.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 250
filterKey -
The key to use for filtering data. For example,
QUEUE, ROUTING_PROFILE, AGENT,
CHANNEL, AGENT_HIERARCHY_LEVEL_ONE,
AGENT_HIERARCHY_LEVEL_TWO,
AGENT_HIERARCHY_LEVEL_THREE,
AGENT_HIERARCHY_LEVEL_FOUR,
AGENT_HIERARCHY_LEVEL_FIVE. There must be at
least 1 key and a maximum 5 keys.
public java.util.List<java.lang.String> getFilterValues()
The identifiers to use for filtering data. For example, if you have a
filter key of QUEUE, you would add queue IDs or ARNs in
FilterValues.
The identifiers to use for filtering data. For example, if you
have a filter key of QUEUE, you would add queue IDs
or ARNs in FilterValues.
public void setFilterValues(java.util.Collection<java.lang.String> filterValues)
The identifiers to use for filtering data. For example, if you have a
filter key of QUEUE, you would add queue IDs or ARNs in
FilterValues.
filterValues -
The identifiers to use for filtering data. For example, if you
have a filter key of QUEUE, you would add queue
IDs or ARNs in FilterValues.
public FilterV2 withFilterValues(java.lang.String... filterValues)
The identifiers to use for filtering data. For example, if you have a
filter key of QUEUE, you would add queue IDs or ARNs in
FilterValues.
Returns a reference to this object so that method calls can be chained together.
filterValues -
The identifiers to use for filtering data. For example, if you
have a filter key of QUEUE, you would add queue
IDs or ARNs in FilterValues.
public FilterV2 withFilterValues(java.util.Collection<java.lang.String> filterValues)
The identifiers to use for filtering data. For example, if you have a
filter key of QUEUE, you would add queue IDs or ARNs in
FilterValues.
Returns a reference to this object so that method calls can be chained together.
filterValues -
The identifiers to use for filtering data. For example, if you
have a filter key of QUEUE, you would add queue
IDs or ARNs in FilterValues.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object