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 PutMetricFilterRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetFilterName()A name for the metric filter.StringgetFilterPattern()A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.StringgetLogGroupName()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.inthashCode()voidsetFilterName(String filterName)A name for the metric filter.voidsetFilterPattern(String filterPattern)A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.voidsetLogGroupName(String logGroupName)The name of the log group to associate the metric filter with.voidsetMetricTransformations(Collection<MetricTransformation> metricTransformations)A collection of information needed to define how metric data gets emitted.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutMetricFilterRequestwithFilterName(String filterName)A name for the metric filter.PutMetricFilterRequestwithFilterPattern(String filterPattern)A valid CloudWatch Logs filter pattern for extracting metric data out of ingested log events.PutMetricFilterRequestwithLogGroupName(String logGroupName)The name of the log group to associate the metric filter with.PutMetricFilterRequestwithMetricTransformations(MetricTransformation... metricTransformations)A collection of information needed to define how metric data gets emitted.PutMetricFilterRequestwithMetricTransformations(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutMetricFilterRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-