public static final class CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer |
build() |
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
description(String description)
The description of the primary/secondary server group.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
port(Integer port)
The port that is used by the backend server.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
serverId(String serverId)
The ID of the backend server that you want to add.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
serverType(String serverType)
The type of backend server.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
type(String type)
The type of backend server.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
weight(Integer weight)
The weight of the backend server.
|
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder description(String description)
The description of the primary/secondary server group.
example:test-112
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder port(Integer port)
The port that is used by the backend server.
example:82
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder serverId(String serverId)
The ID of the backend server that you want to add.
example:i-bp1fq61enf4loa5i****
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder serverType(String serverType)
The type of backend server.
Valid values: Master and Slave.
example:Master
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder type(String type)
The type of backend server. Valid values:
ecs
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder weight(Integer weight)
The weight of the backend server.
example:100
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer build()
Copyright © 2026. All rights reserved.