public static class UpdateServerGroupServersAttributeRequest.UpdateServerGroupServersAttributeRequestServers
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
description
The description of the backend server.
|
Integer |
port
The port used by the backend server.
|
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.
|
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, 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 backend server. Valid values: **1** to **65535**. You can specify at most 40 servers in each call.
> You do not need to set this parameter if **ServerType** is set to **Fc**.
@NameInMap(value="ServerId") public String serverId
The ID of the backend server. You can specify up to 40 server IDs in each call.
* If **ServerType** is set to **Ecs**, **Eni**, or **Eci**, set the ServerId parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance.
* If **ServerType** is set to **Ip**, set the ServerId parameter to an IP address.
* If **ServerType** is set to **Fc**, set the ServerId 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 at most 40 servers in each call.
@NameInMap(value="ServerType") public String serverType
The type of the backend server. You can specify at most 40 servers 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 at most 40 servers in each call.
> You do not need to set this parameter if **ServerType** is set to **Fc**.
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 © 2024. All rights reserved.