public static final class CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
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 ECS instance or ENI that is added.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
serverType(String serverType)
The type of the backend server.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
type(String type)
The service type of the backend server.
|
CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder |
weight(Integer weight)
The weight of the backend server.
|
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder description(String description)
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder port(Integer port)
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder serverId(String serverId)
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder serverType(String serverType)
Valid values: **Master** and **Slave**.
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder type(String type)
* **ecs** * **eni**
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer.Builder weight(Integer weight)
public CreateMasterSlaveServerGroupResponseBody.MasterSlaveBackendServer build()
Copyright © 2024. All rights reserved.