public static final class SetVServerGroupAttributeRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SetVServerGroupAttributeRequest.Builder |
backendServers(String backendServers)
The backend servers.
|
SetVServerGroupAttributeRequest |
build() |
SetVServerGroupAttributeRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
SetVServerGroupAttributeRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
SetVServerGroupAttributeRequest.Builder |
regionId(String regionId)
The region ID of the Server Load Balancer (SLB) instance, which cannot be modified.
|
SetVServerGroupAttributeRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
SetVServerGroupAttributeRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
SetVServerGroupAttributeRequest.Builder |
vServerGroupId(String vServerGroupId)
The vServer group ID, which cannot be modified.
|
SetVServerGroupAttributeRequest.Builder |
vServerGroupName(String vServerGroupName)
The vServer group name.
|
public SetVServerGroupAttributeRequest.Builder backendServers(String backendServers)
The backend servers. This operation only can be used to modify the weights of backend servers and names of vServer groups. Configure the following parameters:
ServerId: Required. The ID of the backend server. Specify the value in a string. You can specify the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. If you set ServerId to the ID of an ENI or an elastic container instance, you must configure the Type parameter.
Weight: the weight of the backend server. Valid values: 0 to 100. Default value: 100. If you set the weight of a backend server to 0, no requests are forwarded to the backend server.
Description: Optional. The description of the backend server. Specify the value in a string. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
Type: the type of the backend server. Valid values:
You can specify ENIs and elastic container instances as backend servers only for high-performance CLB instances.
Examples:
Add ECS instances:
[{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port":"80","Description":"test-112" }]
Add ENIs:
[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168..", "Port":"80","Description":"test-112" }]
Add ENIs with multiple IP addresses:
[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168..", "Port":"80","Description":"test-113" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166..", "Port":"80","Description":"test-113" }]
Add elastic container instances:
[{ "ServerId": "eci-xxxxxxxxx", "Weight": "100", "Type": "eci", "ServerIp": "192.168..", "Port":"80","Description":"test-114" }]
example:You can add only running backend servers to SLB instances. You can specify at most 20 backend servers in each call.
[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.XX.XX.6", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.XX.XX.6", "Port":"80","Description":"test-113" }]
public SetVServerGroupAttributeRequest.Builder ownerAccount(String ownerAccount)
public SetVServerGroupAttributeRequest.Builder ownerId(Long ownerId)
public SetVServerGroupAttributeRequest.Builder regionId(String regionId)
The region ID of the Server Load Balancer (SLB) instance, which cannot be modified.
This parameter is required.
example:cn-hangzhou
public SetVServerGroupAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public SetVServerGroupAttributeRequest.Builder resourceOwnerId(Long resourceOwnerId)
public SetVServerGroupAttributeRequest.Builder vServerGroupId(String vServerGroupId)
The vServer group ID, which cannot be modified.
This parameter is required.
example:rsp-cige6****
public SetVServerGroupAttributeRequest.Builder vServerGroupName(String vServerGroupName)
The vServer group name. You can specify a name.
example:Group1
public SetVServerGroupAttributeRequest build()
Copyright © 2026. All rights reserved.