public static final class AttachAlbServerGroupsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AttachAlbServerGroupsRequest.Builder |
albServerGroups(List<AttachAlbServerGroupsRequest.AlbServerGroups> albServerGroups)
The information about the ALB server groups.
|
AttachAlbServerGroupsRequest |
build() |
AttachAlbServerGroupsRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
AttachAlbServerGroupsRequest.Builder |
forceAttach(Boolean forceAttach)
Specifies whether to add the existing Elastic Compute Service (ECS) instances or elastic container instances in the scaling group to the ALB server group.
|
AttachAlbServerGroupsRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
AttachAlbServerGroupsRequest.Builder |
regionId(String regionId)
The region ID of the scaling group.
|
AttachAlbServerGroupsRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
AttachAlbServerGroupsRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
public AttachAlbServerGroupsRequest.Builder albServerGroups(List<AttachAlbServerGroupsRequest.AlbServerGroups> albServerGroups)
public AttachAlbServerGroupsRequest.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 AttachAlbServerGroupsRequest.Builder forceAttach(Boolean forceAttach)
* true: adds the existing ECS instances or elastic container instances in the scaling group to the ALB server group. In this case, the system returns the value of `ScalingActivityId`. * false: does not add the existing ECS instances or elastic container instances in the scaling group to the ALB server group. Default value: false.
public AttachAlbServerGroupsRequest.Builder ownerId(Long ownerId)
public AttachAlbServerGroupsRequest.Builder regionId(String regionId)
Examples: `cn-hangzhou` and `cn-shanghai`. For more information about regions and zones, see [Regions and zones](~~40654~~).
public AttachAlbServerGroupsRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public AttachAlbServerGroupsRequest.Builder scalingGroupId(String scalingGroupId)
public AttachAlbServerGroupsRequest build()
Copyright © 2024. All rights reserved.