Class ScalingInterval.Builder

java.lang.Object
software.amazon.awscdk.services.autoscaling.ScalingInterval.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ScalingInterval>
Enclosing interface:
ScalingInterval

@Stability(Stable) public static final class ScalingInterval.Builder extends Object implements software.amazon.jsii.Builder<ScalingInterval>
A builder for ScalingInterval
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • change

      @Stability(Stable) public ScalingInterval.Builder change(Number change)
      Sets the value of ScalingInterval.getChange()
      Parameters:
      change - The capacity adjustment to apply in this interval. This parameter is required. The number is interpreted differently based on AdjustmentType:

      • ChangeInCapacity: add the adjustment to the current capacity. The number can be positive or negative.
      • PercentChangeInCapacity: add or remove the given percentage of the current capacity to itself. The number can be in the range [-100..100].
      • ExactCapacity: set the capacity to this number. The number must be positive.
      Returns:
      this
    • lower

      @Stability(Stable) public ScalingInterval.Builder lower(Number lower)
      Sets the value of ScalingInterval.getLower()
      Parameters:
      lower - The lower bound of the interval. The scaling adjustment will be applied if the metric is higher than this value.
      Returns:
      this
    • upper

      @Stability(Stable) public ScalingInterval.Builder upper(Number upper)
      Sets the value of ScalingInterval.getUpper()
      Parameters:
      upper - The upper bound of the interval. The scaling adjustment will be applied if the metric is lower than this value.
      Returns:
      this
    • build

      @Stability(Stable) public ScalingInterval build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ScalingInterval>
      Returns:
      a new instance of ScalingInterval
      Throws:
      NullPointerException - if any required attribute was not provided