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:
  • Constructor Details

    • 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 Details

    • 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) or withMetricTransformations(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: