Class CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codebuild.CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty>
- Enclosing interface:
CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricType(String metricType) targetValue(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricType
@Stability(Stable) public CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty.Builder metricType(String metricType) - Parameters:
metricType- The metric type to determine auto-scaling.- Returns:
this
-
targetValue
@Stability(Stable) public CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty.Builder targetValue(Number targetValue) - Parameters:
targetValue- The value ofmetricTypewhen to start scaling.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.TargetTrackingScalingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-