public static final class AttachServerGroupsRequest.ServerGroups.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
AttachServerGroupsRequest.ServerGroups |
build() |
AttachServerGroupsRequest.ServerGroups.Builder |
port(Integer port)
The port used by ECS instances or elastic container instances after being added as backend servers to the server group.
|
AttachServerGroupsRequest.ServerGroups.Builder |
serverGroupId(String serverGroupId)
The ID of the server group.
|
AttachServerGroupsRequest.ServerGroups.Builder |
type(String type)
The type of the server group.
|
AttachServerGroupsRequest.ServerGroups.Builder |
weight(Integer weight)
The weight of an ECS instance or elastic container instance as a backend server of the server group.
|
public AttachServerGroupsRequest.ServerGroups.Builder port(Integer port)
Valid values: 1 to 65535.
public AttachServerGroupsRequest.ServerGroups.Builder serverGroupId(String serverGroupId)
public AttachServerGroupsRequest.ServerGroups.Builder type(String type)
* ALB * NLB
public AttachServerGroupsRequest.ServerGroups.Builder weight(Integer weight)
If you assign a higher weight to an instance, the instance is allocated a larger proportion of access requests. If you assign zero weight to an instance, the instance is allocated no access requests.
public AttachServerGroupsRequest.ServerGroups build()
Copyright © 2024. All rights reserved.