Class NetworkUtilizationScalingProps.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.NetworkUtilizationScalingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkUtilizationScalingProps>
- Enclosing interface:
NetworkUtilizationScalingProps
@Stability(Stable)
public static final class NetworkUtilizationScalingProps.Builder
extends Object
implements software.amazon.jsii.Builder<NetworkUtilizationScalingProps>
A builder for
NetworkUtilizationScalingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofBaseTargetTrackingProps.getCooldown()
disableScaleIn
(Boolean disableScaleIn) Sets the value ofBaseTargetTrackingProps.getDisableScaleIn()
estimatedInstanceWarmup
(Duration estimatedInstanceWarmup) Sets the value ofBaseTargetTrackingProps.getEstimatedInstanceWarmup()
targetBytesPerSecond
(Number targetBytesPerSecond) Sets the value ofNetworkUtilizationScalingProps.getTargetBytesPerSecond()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetBytesPerSecond
@Stability(Stable) public NetworkUtilizationScalingProps.Builder targetBytesPerSecond(Number targetBytesPerSecond) Sets the value ofNetworkUtilizationScalingProps.getTargetBytesPerSecond()
- Parameters:
targetBytesPerSecond
- Target average bytes/seconds on each instance. This parameter is required.- Returns:
this
-
cooldown
Sets the value ofBaseTargetTrackingProps.getCooldown()
- Parameters:
cooldown
- Period after a scaling completes before another scaling activity can start.- Returns:
this
-
disableScaleIn
@Stability(Stable) public NetworkUtilizationScalingProps.Builder disableScaleIn(Boolean disableScaleIn) Sets the value ofBaseTargetTrackingProps.getDisableScaleIn()
- Parameters:
disableScaleIn
- Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the autoscaling group. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the group.- Returns:
this
-
estimatedInstanceWarmup
@Stability(Stable) public NetworkUtilizationScalingProps.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup) Sets the value ofBaseTargetTrackingProps.getEstimatedInstanceWarmup()
- Parameters:
estimatedInstanceWarmup
- Estimated time until a newly launched instance can send metrics to CloudWatch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NetworkUtilizationScalingProps>
- Returns:
- a new instance of
NetworkUtilizationScalingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-