Class RequestCountScalingProps.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.RequestCountScalingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RequestCountScalingProps>
- Enclosing interface:
RequestCountScalingProps
@Stability(Stable)
public static final class RequestCountScalingProps.Builder
extends Object
implements software.amazon.jsii.Builder<RequestCountScalingProps>
A builder for
RequestCountScalingProps
-
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()
targetRequestsPerMinute
(Number targetRequestsPerMinute) Sets the value ofRequestCountScalingProps.getTargetRequestsPerMinute()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetRequestsPerMinute
@Stability(Stable) public RequestCountScalingProps.Builder targetRequestsPerMinute(Number targetRequestsPerMinute) Sets the value ofRequestCountScalingProps.getTargetRequestsPerMinute()
- Parameters:
targetRequestsPerMinute
- Target average requests/minute on each instance.- Returns:
this
-
cooldown
Sets the value ofBaseTargetTrackingProps.getCooldown()
- Parameters:
cooldown
- Period after a scaling completes before another scaling activity can start.- Returns:
this
-
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 RequestCountScalingProps.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<RequestCountScalingProps>
- Returns:
- a new instance of
RequestCountScalingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-