Interface CloudWatchAlarmConfiguration.Builder

    • Method Detail

      • evaluationPeriods

        CloudWatchAlarmConfiguration.Builder evaluationPeriods​(Integer evaluationPeriods)

        For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.

        Parameters:
        evaluationPeriods - For the metric that the CloudWatch alarm is associated with, the number of periods that the metric is compared to the threshold.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • threshold

        CloudWatchAlarmConfiguration.Builder threshold​(Double threshold)

        For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.

        Parameters:
        threshold - For the metric that the CloudWatch alarm is associated with, the value the metric is compared with.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • comparisonOperator

        CloudWatchAlarmConfiguration.Builder comparisonOperator​(String comparisonOperator)

        For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.

        Parameters:
        comparisonOperator - For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ComparisonOperator, ComparisonOperator
      • comparisonOperator

        CloudWatchAlarmConfiguration.Builder comparisonOperator​(ComparisonOperator comparisonOperator)

        For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.

        Parameters:
        comparisonOperator - For the metric that the CloudWatch alarm is associated with, the arithmetic operation that is used for the comparison.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ComparisonOperator, ComparisonOperator
      • period

        CloudWatchAlarmConfiguration.Builder period​(Integer period)

        For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.

        Parameters:
        period - For the metric that the CloudWatch alarm is associated with, the duration of one evaluation period in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricName

        CloudWatchAlarmConfiguration.Builder metricName​(String metricName)

        The name of the CloudWatch metric that the alarm is associated with.

        Parameters:
        metricName - The name of the CloudWatch metric that the alarm is associated with.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statistic

        CloudWatchAlarmConfiguration.Builder statistic​(String statistic)

        For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.

        Parameters:
        statistic - For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Statistic, Statistic
      • statistic

        CloudWatchAlarmConfiguration.Builder statistic​(Statistic statistic)

        For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.

        Parameters:
        statistic - For the metric that the CloudWatch alarm is associated with, the statistic that is applied to the metric.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Statistic, Statistic