public static class UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
description
The description of the backend server.
|
Integer |
port
The port that is used by the backend server.
|
String |
serverId
The backend server ID.
|
String |
serverIp
The IP address of the backend server.
|
String |
serverType
The type of the backend server.
|
Integer |
weight
The weight of the backend server.
|
| 构造器和说明 |
|---|
UpdateServerGroupServersAttributeRequestServers() |
@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, commas (,), periods (.), semicolons (;), forward slashes (/), at signs (@), underscores (\_), and hyphens (-).
@NameInMap(value="Port") public Integer port
The port that is used by the backend server. Valid values: **1** to **65535**. You can specify at most 40 backend servers in each call.
> This is parameter cannot be modified.
@NameInMap(value="ServerId") public String serverId
The backend server ID. You can specify at most 40 backend servers in each call.
* If the server group type is **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 the server group type is **Ip**, set this parameter to an IP address.
@NameInMap(value="ServerIp") public String serverIp
The IP address of the backend server. If the server group type is **Ip**, you must specify an IP address.
> You can specify at most 40 backend servers in each call.
@NameInMap(value="ServerType") public String serverType
The type of the backend server. Valid values:
* **Ecs**: ECS instance
* **Eni**: ENI
* **Eci**: an elastic container instance
* **Ip**: an IP address
> You can specify at most 40 backend servers in each call.
@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 at most 40 backend servers in each call.
public UpdateServerGroupServersAttributeRequestServers()
public static UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers build(Map<String,?> map) throws Exception
Exceptionpublic UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers setDescription(String description)
public String getDescription()
public UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers setPort(Integer port)
public Integer getPort()
public UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers setServerId(String serverId)
public String getServerId()
public UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers setServerIp(String serverIp)
public String getServerIp()
public UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers setServerType(String serverType)
public String getServerType()
public UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers setWeight(Integer weight)
public Integer getWeight()
Copyright © 2023. All rights reserved.