Class CfnScalableTarget.ScalableTargetActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.CfnScalableTarget.ScalableTargetActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalableTarget.ScalableTargetActionProperty>
- Enclosing interface:
CfnScalableTarget.ScalableTargetActionProperty
@Stability(Stable)
public static final class CfnScalableTarget.ScalableTargetActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalableTarget.ScalableTargetActionProperty>
A builder for
CfnScalableTarget.ScalableTargetActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxCapacity
(Number maxCapacity) Sets the value ofCfnScalableTarget.ScalableTargetActionProperty.getMaxCapacity()
minCapacity
(Number minCapacity) Sets the value ofCfnScalableTarget.ScalableTargetActionProperty.getMinCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
@Stability(Stable) public CfnScalableTarget.ScalableTargetActionProperty.Builder maxCapacity(Number maxCapacity) Sets the value ofCfnScalableTarget.ScalableTargetActionProperty.getMaxCapacity()
- Parameters:
maxCapacity
- The maximum capacity.- Returns:
this
-
minCapacity
@Stability(Stable) public CfnScalableTarget.ScalableTargetActionProperty.Builder minCapacity(Number minCapacity) Sets the value ofCfnScalableTarget.ScalableTargetActionProperty.getMinCapacity()
- Parameters:
minCapacity
- The minimum capacity.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnScalableTarget.ScalableTargetActionProperty>
- Returns:
- a new instance of
CfnScalableTarget.ScalableTargetActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-