public static class AddServersToServerGroupRequest.AddServersToServerGroupRequestServers
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
description
The description of the backend server.
|
Integer |
port
The port used by the backend server.
|
Boolean |
remoteIpEnabled
Specifies whether to enable the remote IP address feature.
|
String |
serverId
The backend server ID.
|
String |
serverIp
The IP address in inclusive ENI mode.
|
String |
serverType
The type of the backend server that you want to add to the server group.
|
Integer |
weight
The weight of the backend server.
|
| 构造器和说明 |
|---|
AddServersToServerGroupRequestServers() |
@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 up to 40 servers in each call.
@NameInMap(value="Port") public Integer port
The port used by the backend server. Valid values: **1** to **65535**. You can specify up to 40 server IDs in each call.
> This parameter is required if the **ServerType** parameter is set to **Ecs**, **Eni**, **Eci**, or **Ip**. You do not need to set this parameter if **ServerType** is set to **Fc**.
@NameInMap(value="RemoteIpEnabled") public Boolean remoteIpEnabled
Specifies whether to enable the remote IP address feature. You can specify up to 40 server IDs in each call. Valid values:
* **true**
* **false**
Regions that support the remote IP address feature: China (Hangzhou), China (Shenzhen), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Ulanqab), China (Shanghai), China (Chengdu), China (Guangzhou), China (Hong Kong), US (Virginia), Japan (Tokyo), UK (London), US (Silicon Valley), Germany (Frankfurt), Indonesia (Jakarta), Singapore, Malaysia (Kuala Lumpur), Australia (Sydney), and India (Mumbai).
> If **ServerType** is set to **Ip**, this parameter is available.
@NameInMap(value="ServerId") public String serverId
The backend server ID. You can specify up to 40 server IDs in each call.
* If ServerType is set to **Instance**, set the ServerId parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. These backend servers are specified by **Ecs**, **Eni**, or **Eci**.
* If ServerType is set to **Ip**, set the ServerId parameter to an IP address specified in the server group.
* If the backend server group is of the **Fc** type, set this parameter to the Alibaba Cloud Resource Name (ARN) of a function.
This parameter is required.
@NameInMap(value="ServerIp") public String serverIp
The IP address in inclusive ENI mode. You can specify up to 40 server IDs in each call.
> You do not need to set this parameter if **ServerType** is set to **Fc**.
@NameInMap(value="ServerType") public String serverType
The type of the backend server that you want to add to the server group. You can specify up to 40 server IDs in each call. Valid values:
* **Ecs**
* **Eni**
* **Eci**
* **Ip**
* **fc**
This parameter is required.
@NameInMap(value="Weight") public Integer weight
The weight of the backend server. 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. You can specify up to 40 server IDs in each call.
> You do not need to set this parameter if **ServerType** is set to **Fc**.
public static AddServersToServerGroupRequest.AddServersToServerGroupRequestServers build(Map<String,?> map) throws Exception
Exceptionpublic AddServersToServerGroupRequest.AddServersToServerGroupRequestServers setDescription(String description)
public String getDescription()
public AddServersToServerGroupRequest.AddServersToServerGroupRequestServers setPort(Integer port)
public Integer getPort()
public AddServersToServerGroupRequest.AddServersToServerGroupRequestServers setRemoteIpEnabled(Boolean remoteIpEnabled)
public Boolean getRemoteIpEnabled()
public AddServersToServerGroupRequest.AddServersToServerGroupRequestServers setServerId(String serverId)
public String getServerId()
public AddServersToServerGroupRequest.AddServersToServerGroupRequestServers setServerIp(String serverIp)
public String getServerIp()
public AddServersToServerGroupRequest.AddServersToServerGroupRequestServers setServerType(String serverType)
public String getServerType()
public AddServersToServerGroupRequest.AddServersToServerGroupRequestServers setWeight(Integer weight)
public Integer getWeight()
Copyright © 2024. All rights reserved.