public class DescribeMetricFiltersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeMetricFilters operation.
Returns all the metrics filters associated with the specified log group. The list returned in the response is ASCII-sorted by filter name.
By default, this operation returns up to 50 metric filters. If there
are more metric filters to list, the response would contain a
nextToken value in the response body. You can also limit
the number of metric filters returned in the response by specifying
the limit parameter in the request.
NOOP| Constructor and Description |
|---|
DescribeMetricFiltersRequest()
Default constructor for a new DescribeMetricFiltersRequest object.
|
DescribeMetricFiltersRequest(String logGroupName)
Constructs a new DescribeMetricFiltersRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
DescribeMetricFiltersRequest |
clone() |
boolean |
equals(Object obj) |
String |
getFilterNamePrefix()
Will only return metric filters that match the provided
filterNamePrefix.
|
Integer |
getLimit()
The maximum number of items returned in the response.
|
String |
getLogGroupName()
The log group name for which metric filters are to be listed.
|
String |
getNextToken()
A string token used for pagination that points to the next page of
results.
|
int |
hashCode() |
void |
setFilterNamePrefix(String filterNamePrefix)
Will only return metric filters that match the provided
filterNamePrefix.
|
void |
setLimit(Integer limit)
The maximum number of items returned in the response.
|
void |
setLogGroupName(String logGroupName)
The log group name for which metric filters are to be listed.
|
void |
setNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeMetricFiltersRequest |
withFilterNamePrefix(String filterNamePrefix)
Will only return metric filters that match the provided
filterNamePrefix.
|
DescribeMetricFiltersRequest |
withLimit(Integer limit)
The maximum number of items returned in the response.
|
DescribeMetricFiltersRequest |
withLogGroupName(String logGroupName)
The log group name for which metric filters are to be listed.
|
DescribeMetricFiltersRequest |
withNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic DescribeMetricFiltersRequest()
public DescribeMetricFiltersRequest(String logGroupName)
logGroupName - The log group name for which metric filters are to
be listed.public String getLogGroupName()
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
public void setLogGroupName(String logGroupName)
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName - The log group name for which metric filters are to be listed.public DescribeMetricFiltersRequest withLogGroupName(String logGroupName)
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 log group name for which metric filters are to be listed.public String getFilterNamePrefix()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setFilterNamePrefix(String filterNamePrefix)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterNamePrefix - Will only return metric filters that match the provided
filterNamePrefix. If you don't specify a value, no prefix filter is
applied.public DescribeMetricFiltersRequest withFilterNamePrefix(String filterNamePrefix)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterNamePrefix - Will only return metric filters that match the provided
filterNamePrefix. If you don't specify a value, no prefix filter is
applied.public String getNextToken()
DescribeMetricFilters request.
Constraints:
Length: 1 -
DescribeMetricFilters request.public void setNextToken(String nextToken)
DescribeMetricFilters request.
Constraints:
Length: 1 -
nextToken - A string token used for pagination that points to the next page of
results. It must be a value obtained from the response of the previous
DescribeMetricFilters request.public DescribeMetricFiltersRequest withNextToken(String nextToken)
DescribeMetricFilters request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
nextToken - A string token used for pagination that points to the next page of
results. It must be a value obtained from the response of the previous
DescribeMetricFilters request.public Integer getLimit()
Constraints:
Range: 1 - 50
public void setLimit(Integer limit)
Constraints:
Range: 1 - 50
limit - The maximum number of items returned in the response. If you don't
specify a value, the request would return up to 50 items.public DescribeMetricFiltersRequest withLimit(Integer limit)
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 in the response. If you don't
specify a value, the request would return up to 50 items.public String toString()
toString in class ObjectObject.toString()public DescribeMetricFiltersRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.