public static final class CreateMasterSlaveServerGroupRequest.Builder extends Object
public CreateMasterSlaveServerGroupRequest.Builder loadBalancerId(String loadBalancerId)
The CLB instance ID.
This parameter is required.
example:lb-bp1hv944r69al4j******
public CreateMasterSlaveServerGroupRequest.Builder masterSlaveBackendServers(String masterSlaveBackendServers)
The backend servers in the primary/secondary server group. Each primary/secondary server group consists of two backend servers.
Configure the following parameters:
ServerId: required. The IDs of the backend servers. Specify the IDs in a string. You can specify the IDs of Elastic Compute Service (ECS) instances, elastic network interfaces (ENIs), and elastic container instances. If you set ServerId to the IDs of ENIs or elastic container instances, 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 servers. Specify the description 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.
ServerIp: the IP address of the ENI or elastic container instance.
Port: the backend port.
ServerType: Specify the primary and secondary backend servers in a string. Valid values:
[{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port":"82","ServerType":"Master","Description":"test-112" }, { "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port":"84","ServerType":"Slave","Description":"test-112" }]
public CreateMasterSlaveServerGroupRequest.Builder masterSlaveServerGroupName(String masterSlaveServerGroupName)
The name of the primary/secondary server group.
example:Group1
public CreateMasterSlaveServerGroupRequest.Builder ownerAccount(String ownerAccount)
public CreateMasterSlaveServerGroupRequest.Builder ownerId(Long ownerId)
public CreateMasterSlaveServerGroupRequest.Builder regionId(String regionId)
The region ID of the Classic Load Balancer (CLB) instance.
This parameter is required.
example:cn-hangzhou
public CreateMasterSlaveServerGroupRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateMasterSlaveServerGroupRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateMasterSlaveServerGroupRequest.Builder tag(List<CreateMasterSlaveServerGroupRequest.Tag> tag)
The tags.
public CreateMasterSlaveServerGroupRequest build()
Copyright © 2026. All rights reserved.