Class CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty>
- Enclosing interface:
CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty
@Stability(Stable)
public static final class CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.predefinedMetricType(String predefinedMetricType) targetValue(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
predefinedMetricType
@Stability(Stable) public CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty.Builder predefinedMetricType(String predefinedMetricType) Sets the value ofCfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty.getPredefinedMetricType()- Parameters:
predefinedMetricType- The predefined metric type to track for scaling decisions.- Returns:
this
-
targetValue
@Stability(Stable) public CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty.Builder targetValue(Number targetValue) Sets the value ofCfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty.getTargetValue()- Parameters:
targetValue- The target value for the metric that the scaling policy attempts to maintain through scaling actions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty>- Returns:
- a new instance of
CfnCapacityProviderPropsMixin.TargetTrackingScalingPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-