Class DescribeAlarmsForMetricRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudwatch.model.DescribeAlarmsForMetricRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class DescribeAlarmsForMetricRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
See Also:
  • Constructor Details

    • DescribeAlarmsForMetricRequest

      public DescribeAlarmsForMetricRequest()
  • Method Details

    • setMetricName

      public void setMetricName(String metricName)

      The name of the metric.

      Parameters:
      metricName - The name of the metric.
    • getMetricName

      public String getMetricName()

      The name of the metric.

      Returns:
      The name of the metric.
    • withMetricName

      public DescribeAlarmsForMetricRequest withMetricName(String metricName)

      The name of the metric.

      Parameters:
      metricName - The name of the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNamespace

      public void setNamespace(String namespace)

      The namespace of the metric.

      Parameters:
      namespace - The namespace of the metric.
    • getNamespace

      public String getNamespace()

      The namespace of the metric.

      Returns:
      The namespace of the metric.
    • withNamespace

      public DescribeAlarmsForMetricRequest withNamespace(String namespace)

      The namespace of the metric.

      Parameters:
      namespace - The namespace of the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStatistic

      public void setStatistic(String statistic)

      The statistic for the metric.

      Parameters:
      statistic - The statistic for the metric.
      See Also:
    • getStatistic

      public String getStatistic()

      The statistic for the metric.

      Returns:
      The statistic for the metric.
      See Also:
    • withStatistic

      public DescribeAlarmsForMetricRequest withStatistic(String statistic)

      The statistic for the metric.

      Parameters:
      statistic - The statistic for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setStatistic

      public void setStatistic(Statistic statistic)

      The statistic for the metric.

      Parameters:
      statistic - The statistic for the metric.
      See Also:
    • withStatistic

      public DescribeAlarmsForMetricRequest withStatistic(Statistic statistic)

      The statistic for the metric.

      Parameters:
      statistic - The statistic for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getDimensions

      public List<Dimension> getDimensions()

      The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.

      Returns:
      The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
    • setDimensions

      public void setDimensions(Collection<Dimension> dimensions)

      The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.

      Parameters:
      dimensions - The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
    • withDimensions

      public DescribeAlarmsForMetricRequest withDimensions(Dimension... dimensions)

      The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.

      NOTE: This method appends the values to the existing list (if any). Use setDimensions(java.util.Collection) or withDimensions(java.util.Collection) if you want to override the existing values.

      Parameters:
      dimensions - The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDimensions

      public DescribeAlarmsForMetricRequest withDimensions(Collection<Dimension> dimensions)

      The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.

      Parameters:
      dimensions - The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPeriod

      public void setPeriod(Integer period)

      The period in seconds over which the statistic is applied.

      Parameters:
      period - The period in seconds over which the statistic is applied.
    • getPeriod

      public Integer getPeriod()

      The period in seconds over which the statistic is applied.

      Returns:
      The period in seconds over which the statistic is applied.
    • withPeriod

      public DescribeAlarmsForMetricRequest withPeriod(Integer period)

      The period in seconds over which the statistic is applied.

      Parameters:
      period - The period in seconds over which the statistic is applied.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUnit

      public void setUnit(String unit)

      The unit for the metric.

      Parameters:
      unit - The unit for the metric.
      See Also:
    • getUnit

      public String getUnit()

      The unit for the metric.

      Returns:
      The unit for the metric.
      See Also:
    • withUnit

      public DescribeAlarmsForMetricRequest withUnit(String unit)

      The unit for the metric.

      Parameters:
      unit - The unit for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setUnit

      public void setUnit(StandardUnit unit)

      The unit for the metric.

      Parameters:
      unit - The unit for the metric.
      See Also:
    • withUnit

      The unit for the metric.

      Parameters:
      unit - The unit for the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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: