public static final class RequestCountScalingProps.Builder
extends java.lang.Object
RequestCountScalingProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RequestCountScalingProps |
build()
Builds the configured instance.
|
RequestCountScalingProps.Builder |
cooldown(Duration cooldown)
Sets the value of
BaseTargetTrackingProps.getCooldown() |
RequestCountScalingProps.Builder |
disableScaleIn(java.lang.Boolean disableScaleIn)
Sets the value of
BaseTargetTrackingProps.getDisableScaleIn() |
RequestCountScalingProps.Builder |
estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
Sets the value of
BaseTargetTrackingProps.getEstimatedInstanceWarmup() |
RequestCountScalingProps.Builder |
targetRequestsPerMinute(java.lang.Number targetRequestsPerMinute)
Sets the value of
RequestCountScalingProps.getTargetRequestsPerMinute() |
RequestCountScalingProps.Builder |
targetRequestsPerSecond(java.lang.Number targetRequestsPerSecond)
Deprecated.
Use 'targetRequestsPerMinute' instead
|
public RequestCountScalingProps.Builder targetRequestsPerMinute(java.lang.Number targetRequestsPerMinute)
RequestCountScalingProps.getTargetRequestsPerMinute()
targetRequestsPerMinute
- Target average requests/minute on each instance.this
@Deprecated public RequestCountScalingProps.Builder targetRequestsPerSecond(java.lang.Number targetRequestsPerSecond)
RequestCountScalingProps.getTargetRequestsPerSecond()
targetRequestsPerSecond
- Target average requests/seconds on each instance.this
public RequestCountScalingProps.Builder cooldown(Duration cooldown)
BaseTargetTrackingProps.getCooldown()
cooldown
- Period after a scaling completes before another scaling activity can start.this
public RequestCountScalingProps.Builder disableScaleIn(java.lang.Boolean disableScaleIn)
BaseTargetTrackingProps.getDisableScaleIn()
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.this
public RequestCountScalingProps.Builder estimatedInstanceWarmup(Duration estimatedInstanceWarmup)
BaseTargetTrackingProps.getEstimatedInstanceWarmup()
estimatedInstanceWarmup
- Estimated time until a newly launched instance can send metrics to CloudWatch.this
public RequestCountScalingProps build()
RequestCountScalingProps
java.lang.NullPointerException
- if any required attribute was not provided