public class DescribeMetricFiltersRequest extends AmazonWebServiceRequest implements java.io.Serializable
Lists the specified metric filters. You can list all the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.
Constructor and Description |
---|
DescribeMetricFiltersRequest()
Default constructor for DescribeMetricFiltersRequest object.
|
DescribeMetricFiltersRequest(java.lang.String logGroupName)
Constructs a new DescribeMetricFiltersRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFilterNamePrefix()
The prefix to match.
|
java.lang.Integer |
getLimit()
The maximum number of items returned.
|
java.lang.String |
getLogGroupName()
The name of the log group.
|
java.lang.String |
getMetricName()
Filters results to include only those with the specified metric name.
|
java.lang.String |
getMetricNamespace()
Filters results to include only those in the specified namespace.
|
java.lang.String |
getNextToken()
The token for the next set of items to return.
|
int |
hashCode() |
void |
setFilterNamePrefix(java.lang.String filterNamePrefix)
The prefix to match.
|
void |
setLimit(java.lang.Integer limit)
The maximum number of items returned.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
void |
setMetricName(java.lang.String metricName)
Filters results to include only those with the specified metric name.
|
void |
setMetricNamespace(java.lang.String metricNamespace)
Filters results to include only those in the specified namespace.
|
void |
setNextToken(java.lang.String nextToken)
The token for the next set of items to return.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeMetricFiltersRequest |
withFilterNamePrefix(java.lang.String filterNamePrefix)
The prefix to match.
|
DescribeMetricFiltersRequest |
withLimit(java.lang.Integer limit)
The maximum number of items returned.
|
DescribeMetricFiltersRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
DescribeMetricFiltersRequest |
withMetricName(java.lang.String metricName)
Filters results to include only those with the specified metric name.
|
DescribeMetricFiltersRequest |
withMetricNamespace(java.lang.String metricNamespace)
Filters results to include only those in the specified namespace.
|
DescribeMetricFiltersRequest |
withNextToken(java.lang.String nextToken)
The token for the next set of items to return.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DescribeMetricFiltersRequest()
public DescribeMetricFiltersRequest(java.lang.String logGroupName)
logGroupName
- The name of the log group.
public java.lang.String getLogGroupName()
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
The name of the log group.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public DescribeMetricFiltersRequest withLogGroupName(java.lang.String logGroupName)
The name of the log group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public java.lang.String getFilterNamePrefix()
The prefix to match.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
The prefix to match.
public void setFilterNamePrefix(java.lang.String filterNamePrefix)
The prefix to match.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterNamePrefix
- The prefix to match.
public DescribeMetricFiltersRequest withFilterNamePrefix(java.lang.String filterNamePrefix)
The prefix to match.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterNamePrefix
- The prefix to match.
public java.lang.String getNextToken()
The token for the next set of items to return. (You received this token from a previous call.)
Constraints:
Length: 1 -
The token for the next set of items to return. (You received this token from a previous call.)
public void setNextToken(java.lang.String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
Constraints:
Length: 1 -
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)
public DescribeMetricFiltersRequest withNextToken(java.lang.String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)
public java.lang.Integer getLimit()
The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
Constraints:
Range: 1 - 50
The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
public void setLimit(java.lang.Integer limit)
The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
Constraints:
Range: 1 - 50
limit
- The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
public DescribeMetricFiltersRequest withLimit(java.lang.Integer limit)
The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 50
limit
- The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
public java.lang.String getMetricName()
Filters results to include only those with the specified metric name. If
you include this parameter in your request, you must also include the
metricNamespace
parameter.
Constraints:
Length: - 255
Pattern: [^:*$]*
Filters results to include only those with the specified metric
name. If you include this parameter in your request, you must
also include the metricNamespace
parameter.
public void setMetricName(java.lang.String metricName)
Filters results to include only those with the specified metric name. If
you include this parameter in your request, you must also include the
metricNamespace
parameter.
Constraints:
Length: - 255
Pattern: [^:*$]*
metricName
-
Filters results to include only those with the specified
metric name. If you include this parameter in your request,
you must also include the metricNamespace
parameter.
public DescribeMetricFiltersRequest withMetricName(java.lang.String metricName)
Filters results to include only those with the specified metric name. If
you include this parameter in your request, you must also include the
metricNamespace
parameter.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 255
Pattern: [^:*$]*
metricName
-
Filters results to include only those with the specified
metric name. If you include this parameter in your request,
you must also include the metricNamespace
parameter.
public java.lang.String getMetricNamespace()
Filters results to include only those in the specified namespace. If you
include this parameter in your request, you must also include the
metricName
parameter.
Constraints:
Length: - 255
Pattern: [^:*$]*
Filters results to include only those in the specified namespace.
If you include this parameter in your request, you must also
include the metricName
parameter.
public void setMetricNamespace(java.lang.String metricNamespace)
Filters results to include only those in the specified namespace. If you
include this parameter in your request, you must also include the
metricName
parameter.
Constraints:
Length: - 255
Pattern: [^:*$]*
metricNamespace
-
Filters results to include only those in the specified
namespace. If you include this parameter in your request, you
must also include the metricName
parameter.
public DescribeMetricFiltersRequest withMetricNamespace(java.lang.String metricNamespace)
Filters results to include only those in the specified namespace. If you
include this parameter in your request, you must also include the
metricName
parameter.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 255
Pattern: [^:*$]*
metricNamespace
-
Filters results to include only those in the specified
namespace. If you include this parameter in your request, you
must also include the metricName
parameter.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.