Class CfnCapacityProvider.TargetTrackingScalingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnCapacityProvider.TargetTrackingScalingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProvider.TargetTrackingScalingPolicyProperty>
- Enclosing interface:
CfnCapacityProvider.TargetTrackingScalingPolicyProperty
@Stability(Stable)
public static final class CfnCapacityProvider.TargetTrackingScalingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProvider.TargetTrackingScalingPolicyProperty>
A builder for
CfnCapacityProvider.TargetTrackingScalingPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.predefinedMetricType(String predefinedMetricType) targetValue(Number targetValue) Sets the value ofCfnCapacityProvider.TargetTrackingScalingPolicyProperty.getTargetValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
predefinedMetricType
@Stability(Stable) public CfnCapacityProvider.TargetTrackingScalingPolicyProperty.Builder predefinedMetricType(String predefinedMetricType) - Parameters:
predefinedMetricType- The predefined metric for target tracking. This parameter is required.- Returns:
this
-
targetValue
@Stability(Stable) public CfnCapacityProvider.TargetTrackingScalingPolicyProperty.Builder targetValue(Number targetValue) Sets the value ofCfnCapacityProvider.TargetTrackingScalingPolicyProperty.getTargetValue()- Parameters:
targetValue- The target value for the metric as a percentage (for example, 70.0 for 70%). This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProvider.TargetTrackingScalingPolicyProperty>- Returns:
- a new instance of
CfnCapacityProvider.TargetTrackingScalingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-