Class DescribeMetricFiltersRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.logs.model.DescribeMetricFiltersRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class DescribeMetricFiltersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description DescribeMetricFiltersRequest()
Default constructor for DescribeMetricFiltersRequest object.DescribeMetricFiltersRequest(String logGroupName)
Constructs a new DescribeMetricFiltersRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeMetricFiltersRequest
clone()
Creates a shallow clone of this request.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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
DescribeMetricFiltersRequest
public DescribeMetricFiltersRequest()
Default constructor for DescribeMetricFiltersRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
DescribeMetricFiltersRequest
public DescribeMetricFiltersRequest(String logGroupName)
Constructs a new DescribeMetricFiltersRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
logGroupName
- The log group name for which metric filters are to be listed.
-
-
Method Detail
-
setLogGroupName
public void setLogGroupName(String logGroupName)
The log group name for which metric filters are to be listed.
- Parameters:
logGroupName
- The log group name for which metric filters are to be listed.
-
getLogGroupName
public String getLogGroupName()
The log group name for which metric filters are to be listed.
- Returns:
- The log group name for which metric filters are to be listed.
-
withLogGroupName
public DescribeMetricFiltersRequest withLogGroupName(String logGroupName)
The log group name for which metric filters are to be listed.
- Parameters:
logGroupName
- The log group name for which metric filters are to be listed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterNamePrefix
public void setFilterNamePrefix(String filterNamePrefix)
Will only return metric filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.
- Parameters:
filterNamePrefix
- Will only return metric filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.
-
getFilterNamePrefix
public String getFilterNamePrefix()
Will only return metric filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.
- Returns:
- Will only return metric filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.
-
withFilterNamePrefix
public DescribeMetricFiltersRequest withFilterNamePrefix(String filterNamePrefix)
Will only return metric filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.
- Parameters:
filterNamePrefix
- Will only return metric filters that match the provided filterNamePrefix. If you don't specify a value, no prefix filter is applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String 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.- Parameters:
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 previousDescribeMetricFilters
request.
-
getNextToken
public String getNextToken()
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.- Returns:
- 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.
-
withNextToken
public DescribeMetricFiltersRequest withNextToken(String 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.- Parameters:
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 previousDescribeMetricFilters
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLimit
public void setLimit(Integer 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.
- Parameters:
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.
-
getLimit
public Integer getLimit()
The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.
- Returns:
- The maximum number of items returned in the response. If you don't specify a value, the request would return up to 50 items.
-
withLimit
public DescribeMetricFiltersRequest withLimit(Integer 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeMetricFiltersRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-