public static final class DetachInstancesRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DetachInstancesRequest |
build() |
DetachInstancesRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
DetachInstancesRequest.Builder |
decreaseDesiredCapacity(Boolean decreaseDesiredCapacity)
Specifies whether to adjust the expected number of instances in the scaling group.
|
DetachInstancesRequest.Builder |
detachOption(String detachOption)
Specifies whether to detach the ECS instances or elastic container instances that are marked for removal from the associated load balancers, and whether to remove the private IP addresses of these instances from the IP address whitelists of the associated ApsaraDB RDS instances.
|
DetachInstancesRequest.Builder |
ignoreInvalidInstance(Boolean ignoreInvalidInstance)
Specifies whether to ignore invalid instances when you remove a batch of instances from the scaling group.
|
DetachInstancesRequest.Builder |
instanceIds(List<String> instanceIds)
The IDs of the ECS instances, elastic container instances, or Aliababa Cloud-managed third-party instances that you want to remove from a scaling group.
|
DetachInstancesRequest.Builder |
lifecycleHook(Boolean lifecycleHook)
Specifies whether to trigger a lifecycle hook for scale-in purposes when ECS instances or elastic container instances are removed from the scaling group.
|
DetachInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DetachInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DetachInstancesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DetachInstancesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DetachInstancesRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
public DetachInstancesRequest.Builder clientToken(String clientToken)
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see [Ensure idempotence](~~25965~~).
public DetachInstancesRequest.Builder decreaseDesiredCapacity(Boolean decreaseDesiredCapacity)
* true: After a specific number of instances are removed from the scaling group, the expected number of instances in the scaling group decreases. * false: After a specific number of instances are removed from the scaling group, the expected number of instances in the scaling group remains unchanged. Default value: true.
public DetachInstancesRequest.Builder detachOption(String detachOption)
Both: detaches the ECS instances or elastic container instances that are marked for removal from the associated load balancers and removes the private IP addresses of these instances from the IP address whitelists of the associated ApsaraDB RDS instances. > This parameter is not supported if you want to remove Alibaba Cloud-hosted third-party instances from a scaling group.
public DetachInstancesRequest.Builder ignoreInvalidInstance(Boolean ignoreInvalidInstance)
* true: ignores invalid instances. If invalid instances exist and valid instances are removed from the scaling group, 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 DetachInstancesRequest.Builder instanceIds(List<String> instanceIds)
public DetachInstancesRequest.Builder lifecycleHook(Boolean lifecycleHook)
* true * false > This parameter is not supported if you want to remove Alibaba Cloud-hosted third-party instances from a scaling group. Default value: false.
public DetachInstancesRequest.Builder ownerAccount(String ownerAccount)
public DetachInstancesRequest.Builder ownerId(Long ownerId)
public DetachInstancesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DetachInstancesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DetachInstancesRequest.Builder scalingGroupId(String scalingGroupId)
public DetachInstancesRequest build()
Copyright © 2024. All rights reserved.