public static class ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
description
The description of the backend server.
|
Integer |
port
The port used by the server group.
|
String |
serverId
The ID of the backend server.
|
String |
serverIp
The IP address in inclusive ENI mode.
|
String |
serverType
The type of the backend server that you want to remove from the server group.
|
Integer |
weight
The weight of the backend server that you want to add to the server group.
|
| 构造器和说明 |
|---|
ReplaceServersInServerGroupRequestAddedServers() |
@NameInMap(value="Description") public String description
The description of the backend server. The description must be 2 to 256 characters in length, and can contain letters, digits, periods (.), underscores (_), hyphens (-), commas (,), semicolons (;), forward slashes (/), and at signs (@). You can specify at most 40 servers in each call.
@NameInMap(value="Port") public Integer port
The port used by the server group. Valid values: **1** to **65535**. You can specify at most 40 servers in each call.
@NameInMap(value="ServerId") public String serverId
The ID of the backend server. You can specify up to 40 server IDs in each call.
* If the server group type is **Instance**, set the ServerId parameter to the ID of an ECS instance, an ENI, or an elastic container instance. These backend servers are specified by **Ecs**, **Eni**, or **Eci**.
* If the server group type is **Ip**, set the ServerId parameter to an IP address specified in the server group.
> You cannot perform this operation on a server group of the Function type. You can call the [ListServerGroups](https://help.aliyun.com/document_detail/213627.html) operation to query information about the server group type so that you can set ServerId to a proper value.
This parameter is required.
@NameInMap(value="ServerIp") public String serverIp
The IP address in inclusive ENI mode. You can specify at most 40 servers in each call.
@NameInMap(value="ServerType") public String serverType
The type of the backend server that you want to remove from the server group. You can specify up to 40 backend servers in each call. Valid values:
* **Ecs**
* **Eni**
* **Eci**
@NameInMap(value="Weight") public Integer weight
The weight of the backend server that you want to add to the server group. You can specify up to 40 backend servers in each call.
Valid values: **0** to **100**. Default value: **100**. If the weight of a backend server is set to **0**, no requests are forwarded to the backend server.
public ReplaceServersInServerGroupRequestAddedServers()
public static ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers build(Map<String,?> map) throws Exception
Exceptionpublic ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers setDescription(String description)
public String getDescription()
public ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers setPort(Integer port)
public Integer getPort()
public ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers setServerId(String serverId)
public String getServerId()
public ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers setServerIp(String serverIp)
public String getServerIp()
public ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers setServerType(String serverType)
public String getServerType()
public ReplaceServersInServerGroupRequest.ReplaceServersInServerGroupRequestAddedServers setWeight(Integer weight)
public Integer getWeight()
Copyright © 2024. All rights reserved.