Class CfnTaskSet.ScaleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskSet.ScaleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskSet.ScaleProperty>
- Enclosing interface:
CfnTaskSet.ScaleProperty
@Stability(Stable)
public static final class CfnTaskSet.ScaleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskSet.ScaleProperty>
A builder for
CfnTaskSet.ScaleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTaskSet.ScaleProperty.getUnit()Sets the value ofCfnTaskSet.ScaleProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnTaskSet.ScaleProperty.getUnit()- Parameters:
unit- The unit of measure for the scale value.- Returns:
this
-
value
Sets the value ofCfnTaskSet.ScaleProperty.getValue()- Parameters:
value- The value, specified as a percent total of a service'sdesiredCount, to scale the task set. Accepted values are numbers between 0 and 100.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskSet.ScaleProperty>- Returns:
- a new instance of
CfnTaskSet.ScaleProperty - Throws:
NullPointerException- if any required attribute was not provided
-