public class PutMetricFilterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutMetricFilterRequest()
Default constructor for PutMetricFilterRequest object.
|
PutMetricFilterRequest(String logGroupName,
String filterName,
String filterPattern,
List<MetricTransformation> metricTransformations)
Constructs a new PutMetricFilterRequest object.
|
Modifier and Type | Method and Description |
---|---|
PutMetricFilterRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getFilterName()
A name for the metric filter.
|
String |
getFilterPattern()
A valid CloudWatch Logs filter pattern for extracting metric data out of
ingested log events.
|
String |
getLogGroupName()
The name of the log group to associate the metric filter with.
|
List<MetricTransformation> |
getMetricTransformations()
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricFilterRequest |
withFilterName(String filterName)
A name for the metric filter.
|
PutMetricFilterRequest |
withFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern for extracting metric data out of
ingested log events.
|
PutMetricFilterRequest |
withLogGroupName(String logGroupName)
The name of the log group to associate the metric filter with.
|
PutMetricFilterRequest |
withMetricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information needed to define how metric data gets
emitted.
|
PutMetricFilterRequest |
withMetricTransformations(MetricTransformation... metricTransformations)
A collection of information needed to define how metric data gets
emitted.
|
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
public PutMetricFilterRequest()
public PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, List<MetricTransformation> metricTransformations)
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.public void setLogGroupName(String logGroupName)
The name of the log group to associate the metric filter with.
logGroupName
- The name of the log group to associate the metric filter with.public String getLogGroupName()
The name of the log group to associate the metric filter with.
public PutMetricFilterRequest withLogGroupName(String logGroupName)
The name of the log group to associate the metric filter with.
logGroupName
- The name of the log group to associate the metric filter with.public void setFilterName(String filterName)
A name for the metric filter.
filterName
- A name for the metric filter.public String getFilterName()
A name for the metric filter.
public PutMetricFilterRequest withFilterName(String filterName)
A name for the metric filter.
filterName
- A name for the metric filter.public void setFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
filterPattern
- A valid CloudWatch Logs filter pattern for extracting metric data
out of ingested log events.public String getFilterPattern()
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
public PutMetricFilterRequest withFilterPattern(String filterPattern)
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
filterPattern
- A valid CloudWatch Logs filter pattern for extracting metric data
out of ingested log events.public List<MetricTransformation> getMetricTransformations()
A collection of information needed to define how metric data gets emitted.
public void setMetricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information needed to define how metric data gets emitted.
metricTransformations
- A collection of information needed to define how metric data gets
emitted.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)
or
withMetricTransformations(java.util.Collection)
if you want to
override the existing values.
metricTransformations
- A collection of information needed to define how metric data gets
emitted.public PutMetricFilterRequest withMetricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information needed to define how metric data gets emitted.
metricTransformations
- A collection of information needed to define how metric data gets
emitted.public String toString()
toString
in class Object
Object.toString()
public PutMetricFilterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2018. All rights reserved.