Interface DescribeAlarmsForMetricRequest.Builder

    • Method Detail

      • metricName

        DescribeAlarmsForMetricRequest.Builder metricName​(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.
      • namespace

        DescribeAlarmsForMetricRequest.Builder namespace​(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.
      • statistic

        DescribeAlarmsForMetricRequest.Builder statistic​(String statistic)

        The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.

        Parameters:
        statistic - The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Statistic, Statistic
      • statistic

        DescribeAlarmsForMetricRequest.Builder statistic​(Statistic statistic)

        The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.

        Parameters:
        statistic - The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Statistic, Statistic
      • extendedStatistic

        DescribeAlarmsForMetricRequest.Builder extendedStatistic​(String extendedStatistic)

        The percentile statistic for the metric. Specify a value between p0.0 and p100.

        Parameters:
        extendedStatistic - The percentile statistic for the metric. Specify a value between p0.0 and p100.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensions

        DescribeAlarmsForMetricRequest.Builder dimensions​(Collection<Dimension> dimensions)

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

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

        DescribeAlarmsForMetricRequest.Builder dimensions​(Dimension... dimensions)

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

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

        DescribeAlarmsForMetricRequest.Builder dimensions​(Consumer<Dimension.Builder>... dimensions)

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

        This is a convenience method that creates an instance of the Dimension.Builder avoiding the need to create one manually via Dimension.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #dimensions(List).

        Parameters:
        dimensions - a consumer that will call methods on Dimension.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #dimensions(java.util.Collection)
      • period

        DescribeAlarmsForMetricRequest.Builder period​(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.