public static final class AttachInstancesRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AttachInstancesRequest |
build() |
AttachInstancesRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
AttachInstancesRequest.Builder |
entrusted(Boolean entrusted)
Specifies whether to use the scaling group to manage the lifecycles of manually added instances.
|
AttachInstancesRequest.Builder |
instanceIds(List<String> instanceIds)
The IDs of the ECS instances, elastic container instances, non-Alibaba Cloud instances, or instances in Economical Mode.
|
AttachInstancesRequest.Builder |
lifecycleHook(Boolean lifecycleHook)
Specifies whether to trigger the lifecycle hook for scale-outs when you call this operation.
|
AttachInstancesRequest.Builder |
loadBalancerWeights(List<Integer> loadBalancerWeights)
The weight of an ECS instance or elastic container instance as a backend server.
|
AttachInstancesRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
AttachInstancesRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
AttachInstancesRequest.Builder |
regionId(String regionId)
The region ID of the scaling group.
|
AttachInstancesRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
AttachInstancesRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
AttachInstancesRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
public AttachInstancesRequest.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 AttachInstancesRequest.Builder entrusted(Boolean entrusted)
* true: The scaling group manages the lifecycles of manually added instances and automatically created instances in the same manner. In this case, Auto Scaling releases the instances when they are removed from the scaling group. This rule does not apply to instances that are removed by calling the DetachInstances operation. * false: The scaling group does not manage the lifecycles of manually added instances. In this case, Auto Scaling does not release the instances when they are removed from the scaling group. > You cannot specify this parameter for subscription instances, non-Alibaba Cloud instances, and instances in Economical Mode. Default value: false.
public AttachInstancesRequest.Builder instanceIds(List<String> instanceIds)
public AttachInstancesRequest.Builder lifecycleHook(Boolean lifecycleHook)
* true * false > You cannot specify this parameter for subscription instances and instances in Economical Mode. Default value: false.
public AttachInstancesRequest.Builder loadBalancerWeights(List<Integer> loadBalancerWeights)
public AttachInstancesRequest.Builder ownerAccount(String ownerAccount)
public AttachInstancesRequest.Builder ownerId(Long ownerId)
public AttachInstancesRequest.Builder regionId(String regionId)
public AttachInstancesRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AttachInstancesRequest.Builder resourceOwnerId(Long resourceOwnerId)
public AttachInstancesRequest.Builder scalingGroupId(String scalingGroupId)
public AttachInstancesRequest build()
Copyright © 2024. All rights reserved.