public class PutMetricFilterRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
filterName
A name for the metric filter.
|
private java.lang.String |
filterPattern
A valid CloudWatch Logs filter pattern for extracting metric data out of
ingested log events.
|
private java.lang.String |
logGroupName
The name of the log group to associate the metric filter with.
|
private SdkInternalList<MetricTransformation> |
metricTransformations
A collection of information needed to define how metric data gets
emitted.
|
NOOP
Constructor and Description |
---|
PutMetricFilterRequest()
Default constructor for PutMetricFilterRequest object.
|
PutMetricFilterRequest(java.lang.String logGroupName,
java.lang.String filterName,
java.lang.String filterPattern,
java.util.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(java.lang.Object obj) |
java.lang.String |
getFilterName()
A name for the metric filter.
|
java.lang.String |
getFilterPattern()
A valid CloudWatch Logs filter pattern for extracting metric data out of
ingested log events.
|
java.lang.String |
getLogGroupName()
The name of the log group to associate the metric filter with.
|
java.util.List<MetricTransformation> |
getMetricTransformations()
A collection of information needed to define how metric data gets
emitted.
|
int |
hashCode() |
void |
setFilterName(java.lang.String filterName)
A name for the metric filter.
|
void |
setFilterPattern(java.lang.String filterPattern)
A valid CloudWatch Logs filter pattern for extracting metric data out of
ingested log events.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the metric filter with.
|
void |
setMetricTransformations(java.util.Collection<MetricTransformation> metricTransformations)
A collection of information needed to define how metric data gets
emitted.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricFilterRequest |
withFilterName(java.lang.String filterName)
A name for the metric filter.
|
PutMetricFilterRequest |
withFilterPattern(java.lang.String filterPattern)
A valid CloudWatch Logs filter pattern for extracting metric data out of
ingested log events.
|
PutMetricFilterRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group to associate the metric filter with.
|
PutMetricFilterRequest |
withMetricTransformations(java.util.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
private java.lang.String logGroupName
The name of the log group to associate the metric filter with.
private java.lang.String filterName
A name for the metric filter.
private java.lang.String filterPattern
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
private SdkInternalList<MetricTransformation> metricTransformations
A collection of information needed to define how metric data gets emitted.
public PutMetricFilterRequest()
public PutMetricFilterRequest(java.lang.String logGroupName, java.lang.String filterName, java.lang.String filterPattern, java.util.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(java.lang.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 java.lang.String getLogGroupName()
The name of the log group to associate the metric filter with.
public PutMetricFilterRequest withLogGroupName(java.lang.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(java.lang.String filterName)
A name for the metric filter.
filterName
- A name for the metric filter.public java.lang.String getFilterName()
A name for the metric filter.
public PutMetricFilterRequest withFilterName(java.lang.String filterName)
A name for the metric filter.
filterName
- A name for the metric filter.public void setFilterPattern(java.lang.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 java.lang.String getFilterPattern()
A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.
public PutMetricFilterRequest withFilterPattern(java.lang.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 java.util.List<MetricTransformation> getMetricTransformations()
A collection of information needed to define how metric data gets emitted.
public void setMetricTransformations(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutMetricFilterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()