public static final class CreateMasterSlaveServerGroupRequest.Builder extends Object
public CreateMasterSlaveServerGroupRequest.Builder loadBalancerId(String loadBalancerId)
public CreateMasterSlaveServerGroupRequest.Builder masterSlaveBackendServers(String masterSlaveBackendServers)
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 the backend server. The value must be of the STRING type. * **Port**: Required. Specify the port that is used by the backend server. The value must be of the INTEGER type. Valid values: **1** to **65535**. * **Weight**: Required. Specify the weight of the backend server. The value must be of the INTEGER type. Valid values: **0** to **100**. * \*\*Description \*\*: Optional. The description of the backend server. The value 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 (\_). * **ServerType**: the type of the backend server. The value must be of the STRING type. Valid values: * **Master** * **Slave** * **Type**: the service type of backend server. The value must be of the STRING type. Valid values: * **ecs** * **eni** * **ServerIp** A primary/secondary server group can contain up to two backend servers. If you do not specify this parameter, an empty primary/secondary server group is created. Examples: * ECS instances: `[{ "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" }]` * ENIs: `[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "Port":"80","ServerType":"Master","Description":"test-112" }, { "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","ServerType":"Slave","Description":"test-112" }]` * IP addresses of ENIs: `[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni","ServerIp": "192.168.**.**", "Port":"80","ServerType":"Master","Description":"test-112" }, { "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni","ServerIp": "192.168.**.**", "Port":"80","ServerType":"Slave","Description":"test-112" }]`
public CreateMasterSlaveServerGroupRequest.Builder masterSlaveServerGroupName(String masterSlaveServerGroupName)
public CreateMasterSlaveServerGroupRequest.Builder ownerAccount(String ownerAccount)
public CreateMasterSlaveServerGroupRequest.Builder ownerId(Long ownerId)
public CreateMasterSlaveServerGroupRequest.Builder regionId(String regionId)
public CreateMasterSlaveServerGroupRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateMasterSlaveServerGroupRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateMasterSlaveServerGroupRequest.Builder tag(List<CreateMasterSlaveServerGroupRequest.Tag> tag)
public CreateMasterSlaveServerGroupRequest build()
Copyright © 2024. All rights reserved.