Class CfnTaskSetPropsMixin.ScaleProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecs.mixins.CfnTaskSetPropsMixin.ScaleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskSetPropsMixin.ScaleProperty>
- Enclosing interface:
CfnTaskSetPropsMixin.ScaleProperty
@Stability(Stable)
public static final class CfnTaskSetPropsMixin.ScaleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskSetPropsMixin.ScaleProperty>
A builder for
CfnTaskSetPropsMixin.ScaleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTaskSetPropsMixin.ScaleProperty.getUnit()Sets the value ofCfnTaskSetPropsMixin.ScaleProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnTaskSetPropsMixin.ScaleProperty.getUnit()- Parameters:
unit- The unit of measure for the scale value.- Returns:
this
-
value
Sets the value ofCfnTaskSetPropsMixin.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<CfnTaskSetPropsMixin.ScaleProperty>- Returns:
- a new instance of
CfnTaskSetPropsMixin.ScaleProperty - Throws:
NullPointerException- if any required attribute was not provided
-