public static final class RemoveInstancesRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
RemoveInstancesRequest |
build() |
RemoveInstancesRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
RemoveInstancesRequest.Builder |
decreaseDesiredCapacity(Boolean decreaseDesiredCapacity)
Specifies whether to adjust the expected number of ECS instances in the scaling group.
|
RemoveInstancesRequest.Builder |
ignoreInvalidInstance(Boolean ignoreInvalidInstance)
Specifies whether to ignore invalid instances when you remove a batch of instances from the scaling group.
|
RemoveInstancesRequest.Builder |
instanceIds(List<String> instanceIds)
The IDs of the ECS instances that you want to remove from the scaling group.
|
RemoveInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
RemoveInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
RemoveInstancesRequest.Builder |
regionId(String regionId)
The region ID of the scaling group.
|
RemoveInstancesRequest.Builder |
removePolicy(String removePolicy)
The action subsequent to the removal of the Elastic Compute Service (ECS) instances.
|
RemoveInstancesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
RemoveInstancesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
RemoveInstancesRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
public RemoveInstancesRequest.Builder clientToken(String clientToken)
public RemoveInstancesRequest.Builder decreaseDesiredCapacity(Boolean decreaseDesiredCapacity)
* true: After ECS instances are removed from the scaling group, the expected number of ECS instances in the scaling group decreases. * false: After ECS instances are removed from the scaling group, the expected number of ECS instances in the scaling group remains unchanged. Default value: true.
public RemoveInstancesRequest.Builder ignoreInvalidInstance(Boolean ignoreInvalidInstance)
* true: ignores invalid instances. If invalid instances exist and valid instances are deleted, the corresponding scaling activity enters the Warning state. You can check the scaling activity details to view the invalid instances that are ignored. * false: does not ignore invalid instances. If invalid instances exist in the batch of instances that you want to remove from the scaling group, an error is reported. Default value: false.
public RemoveInstancesRequest.Builder instanceIds(List<String> instanceIds)
public RemoveInstancesRequest.Builder ownerAccount(String ownerAccount)
public RemoveInstancesRequest.Builder ownerId(Long ownerId)
public RemoveInstancesRequest.Builder regionId(String regionId)
public RemoveInstancesRequest.Builder removePolicy(String removePolicy)
* recycle: The ECS instances enter the Economical Mode. ** **Note** This setting is applicable only if you set `ScalingPolicy` to `recycle`. * release: The ECS instances are released. ScalingPolicy of the CreateScalingGroup operation specifies the reclaim mode of the scaling group while RemovePolicy of the RemoveInstances operation specifies the subsequent action when an ECS instance is removed from the scaling group. Examples: * If you set ScalingPolicy and RemovePolicy to recycle, the ECS instances enter the Economical Mode when they are removed. * If you set ScalingPolicy to recycle and RemovePolicy to release, the ECS instances are released when they are removed. * If you set ScalingPolicy to release and RemovePolicy to recycle, the ECS instances are released when they are removed. * If you set ScalingPolicy and RemovePolicy to release, the ECS instances are released when they are removed. Default value: release.
public RemoveInstancesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public RemoveInstancesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public RemoveInstancesRequest.Builder scalingGroupId(String scalingGroupId)
public RemoveInstancesRequest build()
Copyright © 2024. All rights reserved.