Class AdjustmentTier.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • adjustment

      @Stability(Stable) public AdjustmentTier.Builder adjustment(Number adjustment)
      Parameters:
      adjustment - What number to adjust the capacity with. This parameter is required. The number is interpeted as an added capacity, a new fixed capacity or an added percentage depending on the AdjustmentType value of the StepScalingPolicy.

      Can be positive or negative.

      Returns:
      this
    • lowerBound

      @Stability(Stable) public AdjustmentTier.Builder lowerBound(Number lowerBound)
      Parameters:
      lowerBound - Lower bound where this scaling tier applies. The scaling tier applies if the difference between the metric value and its alarm threshold is higher than this value.
      Returns:
      this
    • upperBound

      @Stability(Stable) public AdjustmentTier.Builder upperBound(Number upperBound)
      Parameters:
      upperBound - Upper bound where this scaling tier applies. The scaling tier applies if the difference between the metric value and its alarm threshold is lower than this value.
      Returns:
      this
    • build

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