Class PutMetricFilterRequest

    • 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​(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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object