Class DescribeAlarmsForMetricRequest

    • Constructor Detail

      • DescribeAlarmsForMetricRequest

        public DescribeAlarmsForMetricRequest()
    • Method Detail

      • 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:
        Statistic
      • getStatistic

        public String getStatistic()

        The statistic for the metric.

        Returns:
        The statistic for the metric.
        See Also:
        Statistic
      • 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:
        Statistic
      • setStatistic

        public void setStatistic​(Statistic statistic)

        The statistic for the metric.

        Parameters:
        statistic - The statistic for the metric.
        See Also:
        Statistic
      • 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:
        Statistic
      • 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:
        StandardUnit
      • getUnit

        public String getUnit()

        The unit for the metric.

        Returns:
        The unit for the metric.
        See Also:
        StandardUnit
      • 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:
        StandardUnit
      • setUnit

        public void setUnit​(StandardUnit unit)

        The unit for the metric.

        Parameters:
        unit - The unit for the metric.
        See Also:
        StandardUnit
      • 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