Interface CloudWatchAlarmDefinition.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>, SdkBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>, SdkPojo
Enclosing class:
CloudWatchAlarmDefinition

public static interface CloudWatchAlarmDefinition.Builder extends SdkPojo, CopyableBuilder<CloudWatchAlarmDefinition.Builder,CloudWatchAlarmDefinition>
  • Method Details

    • comparisonOperator

      CloudWatchAlarmDefinition.Builder comparisonOperator(String comparisonOperator)

      Determines how the metric specified by MetricName is compared to the value specified by Threshold.

      Parameters:
      comparisonOperator - Determines how the metric specified by MetricName is compared to the value specified by Threshold.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • comparisonOperator

      CloudWatchAlarmDefinition.Builder comparisonOperator(ComparisonOperator comparisonOperator)

      Determines how the metric specified by MetricName is compared to the value specified by Threshold.

      Parameters:
      comparisonOperator - Determines how the metric specified by MetricName is compared to the value specified by Threshold.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluationPeriods

      CloudWatchAlarmDefinition.Builder evaluationPeriods(Integer evaluationPeriods)

      The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.

      Parameters:
      evaluationPeriods - The number of periods, in five-minute increments, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricName

      CloudWatchAlarmDefinition.Builder metricName(String metricName)

      The name of the CloudWatch metric that is watched to determine an alarm condition.

      Parameters:
      metricName - The name of the CloudWatch metric that is watched to determine an alarm condition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • namespace

      The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.

      Parameters:
      namespace - The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • period

      The period, in seconds, over which the statistic is applied. CloudWatch metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you specify a CloudWatch metric, specify 300.

      Parameters:
      period - The period, in seconds, over which the statistic is applied. CloudWatch metrics for Amazon EMR are emitted every five minutes (300 seconds), so if you specify a CloudWatch metric, specify 300.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statistic

      The statistic to apply to the metric associated with the alarm. The default is AVERAGE.

      Parameters:
      statistic - The statistic to apply to the metric associated with the alarm. The default is AVERAGE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statistic

      The statistic to apply to the metric associated with the alarm. The default is AVERAGE.

      Parameters:
      statistic - The statistic to apply to the metric associated with the alarm. The default is AVERAGE.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • threshold

      The value against which the specified statistic is compared.

      Parameters:
      threshold - The value against which the specified statistic is compared.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unit

      The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.

      Parameters:
      unit - The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unit

      The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.

      Parameters:
      unit - The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dimensions

      A CloudWatch metric dimension.

      Parameters:
      dimensions - A CloudWatch metric dimension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      A CloudWatch metric dimension.

      Parameters:
      dimensions - A CloudWatch metric dimension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dimensions

      A CloudWatch metric dimension.

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

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

      Parameters:
      dimensions - a consumer that will call methods on MetricDimension.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: