Class PutMetricFilterRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PutMetricFilterRequest object.PutMetricFilterRequest
(String logGroupName, String filterName, String filterPattern, List<MetricTransformation> metricTransformations) Constructs a new PutMetricFilterRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A name for the metric filter.A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.The name of the log group to associate the metric filter with.A collection of information needed to define how metric data gets emitted.int
hashCode()
void
setFilterName
(String filterName) A name for the metric filter.void
setFilterPattern
(String filterPattern) A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.void
setLogGroupName
(String logGroupName) The name of the log group to associate the metric filter with.void
setMetricTransformations
(Collection<MetricTransformation> metricTransformations) A collection of information needed to define how metric data gets emitted.toString()
Returns a string representation of this object; useful for testing and debugging.withFilterName
(String filterName) A name for the metric filter.withFilterPattern
(String filterPattern) A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.withLogGroupName
(String logGroupName) The name of the log group to associate the metric filter with.withMetricTransformations
(MetricTransformation... metricTransformations) A collection of information needed to define how metric data gets emitted.withMetricTransformations
(Collection<MetricTransformation> metricTransformations) A collection of information needed to define how metric data gets emitted.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 Details
-
PutMetricFilterRequest
public PutMetricFilterRequest()Default constructor for PutMetricFilterRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
PutMetricFilterRequest
public PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, List<MetricTransformation> metricTransformations) Constructs a new PutMetricFilterRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
logGroupName
- The name of the log group to associate the metric filter with.filterName
- A name for the metric filter.filterPattern
- A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.metricTransformations
- A collection of information needed to define how metric data gets emitted.
-
-
Method Details
-
setLogGroupName
The name of the log group to associate the metric filter with.
- Parameters:
logGroupName
- The name of the log group to associate the metric filter with.
-
getLogGroupName
The name of the log group to associate the metric filter with.
- Returns:
- The name of the log group to associate the metric filter with.
-
withLogGroupName
The name of the log group to associate the metric filter with.
- Parameters:
logGroupName
- The name of the log group to associate the metric filter with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterName
A name for the metric filter.
- Parameters:
filterName
- A name for the metric filter.
-
getFilterName
A name for the metric filter.
- Returns:
- A name for the metric filter.
-
withFilterName
A name for the metric filter.
- Parameters:
filterName
- A name for the metric filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterPattern
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
- Parameters:
filterPattern
- A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
-
getFilterPattern
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
- Returns:
- A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
-
withFilterPattern
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
- Parameters:
filterPattern
- A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMetricTransformations
A collection of information needed to define how metric data gets emitted.
- Returns:
- A collection of information needed to define how metric data gets emitted.
-
setMetricTransformations
A collection of information needed to define how metric data gets emitted.
- Parameters:
metricTransformations
- A collection of information needed to define how metric data gets emitted.
-
withMetricTransformations
public PutMetricFilterRequest withMetricTransformations(MetricTransformation... metricTransformations) A collection of information needed to define how metric data gets emitted.
NOTE: This method appends the values to the existing list (if any). Use
setMetricTransformations(java.util.Collection)
orwithMetricTransformations(java.util.Collection)
if you want to override the existing values.- Parameters:
metricTransformations
- A collection of information needed to define how metric data gets emitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMetricTransformations
public PutMetricFilterRequest withMetricTransformations(Collection<MetricTransformation> metricTransformations) A collection of information needed to define how metric data gets emitted.
- Parameters:
metricTransformations
- A collection of information needed to define how metric data gets emitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
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:
-