public static final class ScaleWithAdjustmentRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ScaleWithAdjustmentRequest.Builder |
activityMetadata(String activityMetadata)
The metadata of the scaling activity.
|
ScaleWithAdjustmentRequest.Builder |
adjustmentType(String adjustmentType)
The type of the scaling policy.
|
ScaleWithAdjustmentRequest.Builder |
adjustmentValue(Integer adjustmentValue)
The number of instances in each adjustment.
|
ScaleWithAdjustmentRequest |
build() |
ScaleWithAdjustmentRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
ScaleWithAdjustmentRequest.Builder |
lifecycleHookContext(ScaleWithAdjustmentRequest.LifecycleHookContext lifecycleHookContext)
The context of the lifecycle hook.
|
ScaleWithAdjustmentRequest.Builder |
minAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances allowed in each adjustment.
|
ScaleWithAdjustmentRequest.Builder |
overrides(ScaleWithAdjustmentRequest.Overrides overrides)
The overrides that allow you to adjust the scaling group of the Elastic Container Instance type during a scale-out event.
|
ScaleWithAdjustmentRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ScaleWithAdjustmentRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ScaleWithAdjustmentRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
ScaleWithAdjustmentRequest.Builder |
syncActivity(Boolean syncActivity)
Specifies whether to trigger the scaling activity in a synchronous manner.
|
public ScaleWithAdjustmentRequest.Builder activityMetadata(String activityMetadata)
public ScaleWithAdjustmentRequest.Builder adjustmentType(String adjustmentType)
* QuantityChangeInCapacity: adds the specified number of ECS instances to or removes the specified number of ECS instances from the scaling group. * PercentChangeInCapacity: adds the specified percentage of ECS instances to or removes the specified percentage of ECS instances from the scaling group. * TotalCapacity: adjusts the number of ECS instances in the scaling group to a specified number.
public ScaleWithAdjustmentRequest.Builder adjustmentValue(Integer adjustmentValue)
* Valid values if you set the AdjustmentType parameter to QuantityChangeInCapacity: -1000 to 1000. * Valid values if you set the AdjustmentType parameter to PercentChangeInCapacity: -100 to 10000. * Valid values if you set the AdjustmentType parameter to TotalCapacity: 0 to 2000.
public ScaleWithAdjustmentRequest.Builder clientToken(String clientToken)
public ScaleWithAdjustmentRequest.Builder lifecycleHookContext(ScaleWithAdjustmentRequest.LifecycleHookContext lifecycleHookContext)
public ScaleWithAdjustmentRequest.Builder minAdjustmentMagnitude(Integer minAdjustmentMagnitude)
public ScaleWithAdjustmentRequest.Builder overrides(ScaleWithAdjustmentRequest.Overrides overrides)
public ScaleWithAdjustmentRequest.Builder ownerId(Long ownerId)
public ScaleWithAdjustmentRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ScaleWithAdjustmentRequest.Builder scalingGroupId(String scalingGroupId)
public ScaleWithAdjustmentRequest.Builder syncActivity(Boolean syncActivity)
* true: triggers the scaling activity in a synchronous manner. The scaling activity is triggered at the time when the scaling rule is executed. * false: does not trigger the scaling activity in a synchronous manner. After you change the expected number of instances for the scaling group, Auto Scaling checks whether the total number of instances in the scaling group matches the new expected number of instances and determines whether to trigger the scaling activity based on the check result. > For more information about the Expected Number of Instances feature, see [Expected number of instances](~~146231~~). Default value: false.
public ScaleWithAdjustmentRequest build()
Copyright © 2024. All rights reserved.