Class CfnFleetPropsMixin.ScalingConfigurationInputProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnFleetPropsMixin.ScalingConfigurationInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.ScalingConfigurationInputProperty>
- Enclosing interface:
CfnFleetPropsMixin.ScalingConfigurationInputProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.ScalingConfigurationInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.ScalingConfigurationInputProperty>
A builder for
CfnFleetPropsMixin.ScalingConfigurationInputProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxCapacity(Number maxCapacity) Sets the value ofCfnFleetPropsMixin.ScalingConfigurationInputProperty.getMaxCapacity()scalingType(String scalingType) Sets the value ofCfnFleetPropsMixin.ScalingConfigurationInputProperty.getScalingType()targetTrackingScalingConfigs(List<? extends Object> targetTrackingScalingConfigs) targetTrackingScalingConfigs(IResolvable targetTrackingScalingConfigs)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
@Stability(Stable) public CfnFleetPropsMixin.ScalingConfigurationInputProperty.Builder maxCapacity(Number maxCapacity) Sets the value ofCfnFleetPropsMixin.ScalingConfigurationInputProperty.getMaxCapacity()- Parameters:
maxCapacity- The maximum number of instances in the fleet when auto-scaling.- Returns:
this
-
scalingType
@Stability(Stable) public CfnFleetPropsMixin.ScalingConfigurationInputProperty.Builder scalingType(String scalingType) Sets the value ofCfnFleetPropsMixin.ScalingConfigurationInputProperty.getScalingType()- Parameters:
scalingType- The scaling type for a compute fleet.- Returns:
this
-
targetTrackingScalingConfigs
@Stability(Stable) public CfnFleetPropsMixin.ScalingConfigurationInputProperty.Builder targetTrackingScalingConfigs(IResolvable targetTrackingScalingConfigs) Sets the value ofCfnFleetPropsMixin.ScalingConfigurationInputProperty.getTargetTrackingScalingConfigs()- Parameters:
targetTrackingScalingConfigs- A list ofTargetTrackingScalingConfigurationobjects.- Returns:
this
-
targetTrackingScalingConfigs
@Stability(Stable) public CfnFleetPropsMixin.ScalingConfigurationInputProperty.Builder targetTrackingScalingConfigs(List<? extends Object> targetTrackingScalingConfigs) Sets the value ofCfnFleetPropsMixin.ScalingConfigurationInputProperty.getTargetTrackingScalingConfigs()- Parameters:
targetTrackingScalingConfigs- A list ofTargetTrackingScalingConfigurationobjects.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.ScalingConfigurationInputProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.ScalingConfigurationInputProperty - Throws:
NullPointerException- if any required attribute was not provided
-