Interface CloudWatchAlarmConfiguration.Builder

  • Method Details

    • 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

      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

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

      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.
    • namespace

      The namespace of the metric that the alarm is associated with. For more information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.

      Parameters:
      namespace - The namespace of the metric that the alarm is associated with. For more information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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

      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:
    • dimensions

      For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.

      Parameters:
      dimensions - For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.

      Parameters:
      dimensions - For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      For the metric that the CloudWatch alarm is associated with, a complex type that contains information about the dimensions for the metric. For information, see Amazon CloudWatch Namespaces, Dimensions, and Metrics Reference in the Amazon CloudWatch User Guide.

      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<Dimension>).

      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: