Class PutMetricFilterRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.logs.model.PutMetricFilterRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class PutMetricFilterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutMetricFilterRequest()
Default constructor for PutMetricFilterRequest object.PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, List<MetricTransformation> metricTransformations)
Constructs a new PutMetricFilterRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(MetricTransformation... metricTransformations)
A collection of information needed to define how metric data gets emitted.PutMetricFilterRequest
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 Detail
-
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 Detail
-
setLogGroupName
public void setLogGroupName(String logGroupName)
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
public String 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
public PutMetricFilterRequest withLogGroupName(String logGroupName)
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
public void setFilterName(String filterName)
A name for the metric filter.
- Parameters:
filterName
- A name for the metric filter.
-
getFilterName
public String getFilterName()
A name for the metric filter.
- Returns:
- A name for the metric filter.
-
withFilterName
public PutMetricFilterRequest withFilterName(String filterName)
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
public void setFilterPattern(String filterPattern)
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
public String 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
public PutMetricFilterRequest withFilterPattern(String filterPattern)
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
public List<MetricTransformation> 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
public void setMetricTransformations(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.
-
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
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 PutMetricFilterRequest 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()
-
-