Class CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscalingplans.CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty>
- Enclosing interface:
CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty
@Stability(Stable)
public static final class CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customizedScalingMetricSpecification(CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty customizedScalingMetricSpecification) customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification) disableScaleIn(Boolean disableScaleIn) disableScaleIn(IResolvable disableScaleIn) estimatedInstanceWarmup(Number estimatedInstanceWarmup) predefinedScalingMetricSpecification(CfnScalingPlanPropsMixin.PredefinedScalingMetricSpecificationProperty predefinedScalingMetricSpecification) predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification) scaleInCooldown(Number scaleInCooldown) scaleOutCooldown(Number scaleOutCooldown) targetValue(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customizedScalingMetricSpecification
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification) Sets the value ofCfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.getCustomizedScalingMetricSpecification()- Parameters:
customizedScalingMetricSpecification- A customized metric. You can specify either a predefined metric or a customized metric.- Returns:
this
-
customizedScalingMetricSpecification
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder customizedScalingMetricSpecification(CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty customizedScalingMetricSpecification) Sets the value ofCfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.getCustomizedScalingMetricSpecification()- Parameters:
customizedScalingMetricSpecification- A customized metric. You can specify either a predefined metric or a customized metric.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder disableScaleIn(Boolean disableScaleIn) - Parameters:
disableScaleIn- Indicates whether scale in by the target tracking scaling policy is disabled. If the value istrue, scale in is disabled and the target tracking scaling policy doesn't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking scaling policy can remove capacity from the scalable resource.The default value is
false.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder disableScaleIn(IResolvable disableScaleIn) - Parameters:
disableScaleIn- Indicates whether scale in by the target tracking scaling policy is disabled. If the value istrue, scale in is disabled and the target tracking scaling policy doesn't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking scaling policy can remove capacity from the scalable resource.The default value is
false.- Returns:
this
-
estimatedInstanceWarmup
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder estimatedInstanceWarmup(Number estimatedInstanceWarmup) Sets the value ofCfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.getEstimatedInstanceWarmup()- Parameters:
estimatedInstanceWarmup- The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. This value is used only if the resource is an Auto Scaling group.- Returns:
this
-
predefinedScalingMetricSpecification
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification) Sets the value ofCfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.getPredefinedScalingMetricSpecification()- Parameters:
predefinedScalingMetricSpecification- A predefined metric. You can specify either a predefined metric or a customized metric.- Returns:
this
-
predefinedScalingMetricSpecification
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder predefinedScalingMetricSpecification(CfnScalingPlanPropsMixin.PredefinedScalingMetricSpecificationProperty predefinedScalingMetricSpecification) Sets the value ofCfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.getPredefinedScalingMetricSpecification()- Parameters:
predefinedScalingMetricSpecification- A predefined metric. You can specify either a predefined metric or a customized metric.- Returns:
this
-
scaleInCooldown
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder scaleInCooldown(Number scaleInCooldown) - Parameters:
scaleInCooldown- The amount of time, in seconds, after a scale-in activity completes before another scale in activity can start. This value is not used if the scalable resource is an Auto Scaling group.- Returns:
this
-
scaleOutCooldown
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder scaleOutCooldown(Number scaleOutCooldown) Sets the value ofCfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.getScaleOutCooldown()- Parameters:
scaleOutCooldown- The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start. This value is not used if the scalable resource is an Auto Scaling group.- Returns:
this
-
targetValue
@Stability(Stable) public CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty.Builder targetValue(Number targetValue) - Parameters:
targetValue- The target value for the metric. Although this property accepts numbers of type Double, it won't accept values that are either too small or too large. Values must be in the range of -2^360 to 2^360.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty>- Returns:
- a new instance of
CfnScalingPlanPropsMixin.TargetTrackingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-