public class Filters
extends java.lang.Object
implements java.io.Serializable
Contains the filter to apply when retrieving metrics.
| Constructor and Description |
|---|
Filters() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getChannels()
The channel to use to filter the metrics.
|
java.util.List<java.lang.String> |
getQueues()
The queues to use to filter the metrics.
|
java.util.List<java.lang.String> |
getRoutingProfiles()
A list of up to 100 routing profile IDs or ARNs.
|
int |
hashCode() |
void |
setChannels(java.util.Collection<java.lang.String> channels)
The channel to use to filter the metrics.
|
void |
setQueues(java.util.Collection<java.lang.String> queues)
The queues to use to filter the metrics.
|
void |
setRoutingProfiles(java.util.Collection<java.lang.String> routingProfiles)
A list of up to 100 routing profile IDs or ARNs.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Filters |
withChannels(java.util.Collection<java.lang.String> channels)
The channel to use to filter the metrics.
|
Filters |
withChannels(java.lang.String... channels)
The channel to use to filter the metrics.
|
Filters |
withQueues(java.util.Collection<java.lang.String> queues)
The queues to use to filter the metrics.
|
Filters |
withQueues(java.lang.String... queues)
The queues to use to filter the metrics.
|
Filters |
withRoutingProfiles(java.util.Collection<java.lang.String> routingProfiles)
A list of up to 100 routing profile IDs or ARNs.
|
Filters |
withRoutingProfiles(java.lang.String... routingProfiles)
A list of up to 100 routing profile IDs or ARNs.
|
public java.util.List<java.lang.String> getQueues()
The queues to use to filter the metrics. You should specify at least one
queue, and can specify up to 100 queues per request. The
GetCurrentMetricsData API in particular requires a queue
when you include a Filter in your request.
The queues to use to filter the metrics. You should specify at
least one queue, and can specify up to 100 queues per request.
The GetCurrentMetricsData API in particular requires
a queue when you include a Filter in your request.
public void setQueues(java.util.Collection<java.lang.String> queues)
The queues to use to filter the metrics. You should specify at least one
queue, and can specify up to 100 queues per request. The
GetCurrentMetricsData API in particular requires a queue
when you include a Filter in your request.
queues -
The queues to use to filter the metrics. You should specify at
least one queue, and can specify up to 100 queues per request.
The GetCurrentMetricsData API in particular
requires a queue when you include a Filter in
your request.
public Filters withQueues(java.lang.String... queues)
The queues to use to filter the metrics. You should specify at least one
queue, and can specify up to 100 queues per request. The
GetCurrentMetricsData API in particular requires a queue
when you include a Filter in your request.
Returns a reference to this object so that method calls can be chained together.
queues -
The queues to use to filter the metrics. You should specify at
least one queue, and can specify up to 100 queues per request.
The GetCurrentMetricsData API in particular
requires a queue when you include a Filter in
your request.
public Filters withQueues(java.util.Collection<java.lang.String> queues)
The queues to use to filter the metrics. You should specify at least one
queue, and can specify up to 100 queues per request. The
GetCurrentMetricsData API in particular requires a queue
when you include a Filter in your request.
Returns a reference to this object so that method calls can be chained together.
queues -
The queues to use to filter the metrics. You should specify at
least one queue, and can specify up to 100 queues per request.
The GetCurrentMetricsData API in particular
requires a queue when you include a Filter in
your request.
public java.util.List<java.lang.String> getChannels()
The channel to use to filter the metrics.
The channel to use to filter the metrics.
public void setChannels(java.util.Collection<java.lang.String> channels)
The channel to use to filter the metrics.
channels - The channel to use to filter the metrics.
public Filters withChannels(java.lang.String... channels)
The channel to use to filter the metrics.
Returns a reference to this object so that method calls can be chained together.
channels - The channel to use to filter the metrics.
public Filters withChannels(java.util.Collection<java.lang.String> channels)
The channel to use to filter the metrics.
Returns a reference to this object so that method calls can be chained together.
channels - The channel to use to filter the metrics.
public java.util.List<java.lang.String> getRoutingProfiles()
A list of up to 100 routing profile IDs or ARNs.
A list of up to 100 routing profile IDs or ARNs.
public void setRoutingProfiles(java.util.Collection<java.lang.String> routingProfiles)
A list of up to 100 routing profile IDs or ARNs.
routingProfiles - A list of up to 100 routing profile IDs or ARNs.
public Filters withRoutingProfiles(java.lang.String... routingProfiles)
A list of up to 100 routing profile IDs or ARNs.
Returns a reference to this object so that method calls can be chained together.
routingProfiles - A list of up to 100 routing profile IDs or ARNs.
public Filters withRoutingProfiles(java.util.Collection<java.lang.String> routingProfiles)
A list of up to 100 routing profile IDs or ARNs.
Returns a reference to this object so that method calls can be chained together.
routingProfiles - A list of up to 100 routing profile IDs or ARNs.
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