public static final class UtilizationScalingOptions.Builder
extends java.lang.Object
UtilizationScalingOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UtilizationScalingOptions |
build()
Builds the configured instance.
|
UtilizationScalingOptions.Builder |
disableScaleIn(java.lang.Boolean disableScaleIn)
Sets the value of
BaseTargetTrackingProps.getDisableScaleIn() |
UtilizationScalingOptions.Builder |
policyName(java.lang.String policyName)
Sets the value of
BaseTargetTrackingProps.getPolicyName() |
UtilizationScalingOptions.Builder |
scaleInCooldown(Duration scaleInCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleInCooldown() |
UtilizationScalingOptions.Builder |
scaleOutCooldown(Duration scaleOutCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleOutCooldown() |
UtilizationScalingOptions.Builder |
utilizationTarget(java.lang.Number utilizationTarget)
Sets the value of
UtilizationScalingOptions.getUtilizationTarget() |
public UtilizationScalingOptions.Builder utilizationTarget(java.lang.Number utilizationTarget)
UtilizationScalingOptions.getUtilizationTarget()
utilizationTarget
- Utilization target for the attribute. This parameter is required.
For example, .5 indicates that 50 percent of allocated provisioned concurrency is in use.this
public UtilizationScalingOptions.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 scalable resource. Otherwise, scale in is
enabled and the target tracking policy can remove capacity from the
scalable resource.this
public UtilizationScalingOptions.Builder policyName(java.lang.String policyName)
BaseTargetTrackingProps.getPolicyName()
policyName
- A name for the scaling policy.this
public UtilizationScalingOptions.Builder scaleInCooldown(Duration scaleInCooldown)
BaseTargetTrackingProps.getScaleInCooldown()
scaleInCooldown
- Period after a scale in activity completes before another scale in activity can start.this
public UtilizationScalingOptions.Builder scaleOutCooldown(Duration scaleOutCooldown)
BaseTargetTrackingProps.getScaleOutCooldown()
scaleOutCooldown
- Period after a scale out activity completes before another scale out activity can start.this
public UtilizationScalingOptions build()
UtilizationScalingOptions
java.lang.NullPointerException
- if any required attribute was not provided