@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getFilterName()
A name for the metric filter.
|
String |
getFilterPattern()
A filter pattern for extracting metric data out of ingested log events.
|
String |
getLogGroupName()
The name of the log group.
|
List<MetricTransformation> |
getMetricTransformations()
A collection of information that defines how metric data gets emitted.
|
int |
hashCode() |
void |
setFilterName(String filterName)
A name for the metric filter.
|
void |
setFilterPattern(String filterPattern)
A filter pattern for extracting metric data out of ingested log events.
|
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setMetricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information that defines 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 filter pattern for extracting metric data out of ingested log events.
|
PutMetricFilterRequest |
withLogGroupName(String logGroupName)
The name of the log group.
|
PutMetricFilterRequest |
withMetricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
|
PutMetricFilterRequest |
withMetricTransformations(MetricTransformation... metricTransformations)
A collection of information that defines how metric data gets emitted.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic PutMetricFilterRequest()
public PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, List<MetricTransformation> metricTransformations)
logGroupName - The name of the log group.filterName - A name for the metric filter.filterPattern - A filter pattern for extracting metric data out of ingested log events.metricTransformations - A collection of information that defines how metric data gets emitted.public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName - The name of the log group.public String getLogGroupName()
The name of the log group.
public PutMetricFilterRequest withLogGroupName(String logGroupName)
The name of the log group.
logGroupName - The name of the log group.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 filter pattern for extracting metric data out of ingested log events.
filterPattern - A filter pattern for extracting metric data out of ingested log events.public String getFilterPattern()
A filter pattern for extracting metric data out of ingested log events.
public PutMetricFilterRequest withFilterPattern(String filterPattern)
A filter pattern for extracting metric data out of ingested log events.
filterPattern - A filter pattern for extracting metric data out of ingested log events.public List<MetricTransformation> getMetricTransformations()
A collection of information that defines how metric data gets emitted.
public void setMetricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
metricTransformations - A collection of information that defines how metric data gets emitted.public PutMetricFilterRequest withMetricTransformations(MetricTransformation... metricTransformations)
A collection of information that defines 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 that defines how metric data gets emitted.public PutMetricFilterRequest withMetricTransformations(Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
metricTransformations - A collection of information that defines how metric data gets emitted.public String toString()
toString in class ObjectObject.toString()public PutMetricFilterRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.