Interface ScalingRule.Builder

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

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

    • name

      The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.

      Parameters:
      name - The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ScalingRule.Builder description(String description)

      A friendly, more verbose description of the automatic scaling rule.

      Parameters:
      description - A friendly, more verbose description of the automatic scaling rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      The conditions that trigger an automatic scaling activity.

      Parameters:
      action - The conditions that trigger an automatic scaling activity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      The conditions that trigger an automatic scaling activity.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to action(ScalingAction).

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

      The CloudWatch alarm definition that determines when automatic scaling activity is triggered.

      Parameters:
      trigger - The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trigger

      The CloudWatch alarm definition that determines when automatic scaling activity is triggered.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trigger(ScalingTrigger).

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