Interface CloudWatchAlarmDefinition.Builder

    • Method Detail

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

        CloudWatchAlarmDefinition.Builder namespace​(String 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

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

        CloudWatchAlarmDefinition.Builder statistic​(String 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, Statistic
      • statistic

        CloudWatchAlarmDefinition.Builder statistic​(Statistic 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, Statistic
      • threshold

        CloudWatchAlarmDefinition.Builder threshold​(Double 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

        CloudWatchAlarmDefinition.Builder unit​(String 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, Unit
      • unit

        CloudWatchAlarmDefinition.Builder unit​(Unit 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, Unit
      • dimensions

        CloudWatchAlarmDefinition.Builder dimensions​(MetricDimension... 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.