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