public static final class CreateVServerGroupRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateVServerGroupRequest.Builder |
backendServers(String backendServers)
The list of backend servers to be added.
|
CreateVServerGroupRequest |
build() |
CreateVServerGroupRequest.Builder |
loadBalancerId(String loadBalancerId)
The ID of the Server Load Balancer (SLB) instance.
|
CreateVServerGroupRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateVServerGroupRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateVServerGroupRequest.Builder |
regionId(String regionId)
The ID of the region where the SLB instance is deployed.
|
CreateVServerGroupRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateVServerGroupRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateVServerGroupRequest.Builder |
tag(List<CreateVServerGroupRequest.Tag> tag)
标签列表。
|
CreateVServerGroupRequest.Builder |
vServerGroupName(String vServerGroupName)
The name of the vServer group.
|
public CreateVServerGroupRequest.Builder backendServers(String backendServers)
The value of this parameter must be a STRING list in the JSON format. You can specify up to 20 elements in each request. * **ServerId**: Required. Specify the ID of an Elastic Compute Service (ECS) instance or an Elastic Network Interface (ENI). This parameter must be of the STRING type. * **Port**: Required. Specify the port that is used by the backend server. This parameter must be of the INTEGER type. Valid values: **1** to **65535**. * **Weight**: Required. Specify the weight of the backend server. This parameter must be of the INTEGER type. Valid values: **0** to **100**. * **Description**: Optional. Specify the description of the backend server. This parameter must be of the STRING type. The description must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (\_). * **Type**: Specify the type of the backend server. This parameter must be of the STRING type. Valid values: * **ecs**: an ECS instance. This is the default value. * **eni**: an ENI. * **ServerIp**: The IP address of the ECS instance or ENI. Examples: * ECS instance:` [{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port": "80", "Description": "test-112" }]. ` * ENI:` [{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" }] ` * ENI with multiple IP addresses:` [{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }] `
public CreateVServerGroupRequest.Builder loadBalancerId(String loadBalancerId)
public CreateVServerGroupRequest.Builder ownerAccount(String ownerAccount)
public CreateVServerGroupRequest.Builder ownerId(Long ownerId)
public CreateVServerGroupRequest.Builder regionId(String regionId)
public CreateVServerGroupRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateVServerGroupRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateVServerGroupRequest.Builder tag(List<CreateVServerGroupRequest.Tag> tag)
public CreateVServerGroupRequest.Builder vServerGroupName(String vServerGroupName)
The name must be 1 to 80 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (\_).
public CreateVServerGroupRequest build()
Copyright © 2024. All rights reserved.