public class CreateServerGroupRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig |
static class |
CreateServerGroupRequest.CreateServerGroupRequestTag |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
addressIPVersion
The protocol version.
|
Boolean |
anyPortEnabled
Specifies whether to enable all-port forwarding.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
connectionDrainEnabled
Specifies whether to enable connection draining.
|
Integer |
connectionDrainTimeout
The timeout period of connection draining.
|
Boolean |
dryRun
Specifies whether to perform a dry run, without performing the actual request.
|
CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig |
healthCheckConfig
The configurations of the health check feature.
|
Boolean |
preserveClientIpEnabled
Specifies whether to enable client IP preservation.
|
String |
protocol
The protocol used to forward requests to the backend servers.
|
String |
regionId
The region ID of the NLB instance.
|
String |
resourceGroupId
The ID of the resource group to which the server group belongs.
|
String |
scheduler
The scheduling algorithm.
|
String |
serverGroupName
The name of the server group.
|
String |
serverGroupType
The type of server group.
|
List<CreateServerGroupRequest.CreateServerGroupRequestTag> |
tag
The tags.
|
String |
vpcId
The ID of the virtual private cloud (VPC) to which the server group belongs.
|
| 构造器和说明 |
|---|
CreateServerGroupRequest() |
@NameInMap(value="AddressIPVersion") public String addressIPVersion
The protocol version. Valid values:
* **ipv4** (default): IPv4
* **DualStack**: dual stack
@NameInMap(value="AnyPortEnabled") public Boolean anyPortEnabled
Specifies whether to enable all-port forwarding. Valid values:
* **true**
* **false** (default)
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters.
> If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
@NameInMap(value="ConnectionDrainEnabled") public Boolean connectionDrainEnabled
Specifies whether to enable connection draining. Valid values:
* **true**
* **false** (default)
@NameInMap(value="ConnectionDrainTimeout") public Integer connectionDrainTimeout
The timeout period of connection draining. Unit: seconds. Valid values: **10** to **900**.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform a dry run, without performing the actual request. Valid values:
* **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
* **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
@NameInMap(value="HealthCheckConfig") public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig healthCheckConfig
The configurations of the health check feature.
@NameInMap(value="PreserveClientIpEnabled") public Boolean preserveClientIpEnabled
Specifies whether to enable client IP preservation. Valid values:
* **true**
* **false** (default)
@NameInMap(value="Protocol") public String protocol
The protocol used to forward requests to the backend servers. Valid values:
* **TCP** (default)
* **UDP**
* **TCPSSL**
@NameInMap(value="RegionId") public String regionId
The region ID of the NLB instance.
You can call the [DescribeRegions](~~443657~~) operation to query the most recent region list.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the server group belongs.
@NameInMap(value="Scheduler") public String scheduler
The scheduling algorithm. Valid values:
* **Wrr:** The weighted round-robin algorithm is used. Backend servers with higher weights receive more requests than backend servers with lower weights. This is the default value.
* **rr:** The round-robin algorithm is used. Requests are forwarded to backend servers in sequence.
* **sch:** Source IP hashing is used. Requests from the same source IP address are forwarded to the same backend server.
* **tch:** Four-element hashing is used. It specifies consistent hashing that is based on four factors: source IP address, destination IP address, source port, and destination port. Requests that contain the same information based on the four factors are forwarded to the same backend server.
* **qch**: QUIC ID hashing. Requests that contain the same QUIC ID are forwarded to the same backend server.
@NameInMap(value="ServerGroupName") public String serverGroupName
The name of the server group.
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\_), and hyphens (-). The name must start with a letter.
@NameInMap(value="ServerGroupType") public String serverGroupType
The type of server group. Valid values:
* **Instance**: allows you to add servers of the **Ecs**, **Ens**, or **Eci** type. This is the default value.
* **Ip**: allows you to add servers by specifying IP addresses.
@NameInMap(value="Tag") public List<CreateServerGroupRequest.CreateServerGroupRequestTag> tag
The tags.
@NameInMap(value="VpcId") public String vpcId
The ID of the virtual private cloud (VPC) to which the server group belongs.
> If **ServerGroupType** is set to **Instance**, only servers in the specified VPC can be added to the server group.
public static CreateServerGroupRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateServerGroupRequest setAddressIPVersion(String addressIPVersion)
public String getAddressIPVersion()
public CreateServerGroupRequest setAnyPortEnabled(Boolean anyPortEnabled)
public Boolean getAnyPortEnabled()
public CreateServerGroupRequest setClientToken(String clientToken)
public String getClientToken()
public CreateServerGroupRequest setConnectionDrainEnabled(Boolean connectionDrainEnabled)
public Boolean getConnectionDrainEnabled()
public CreateServerGroupRequest setConnectionDrainTimeout(Integer connectionDrainTimeout)
public Integer getConnectionDrainTimeout()
public CreateServerGroupRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateServerGroupRequest setHealthCheckConfig(CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig healthCheckConfig)
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig getHealthCheckConfig()
public CreateServerGroupRequest setPreserveClientIpEnabled(Boolean preserveClientIpEnabled)
public Boolean getPreserveClientIpEnabled()
public CreateServerGroupRequest setProtocol(String protocol)
public String getProtocol()
public CreateServerGroupRequest setRegionId(String regionId)
public String getRegionId()
public CreateServerGroupRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateServerGroupRequest setScheduler(String scheduler)
public String getScheduler()
public CreateServerGroupRequest setServerGroupName(String serverGroupName)
public String getServerGroupName()
public CreateServerGroupRequest setServerGroupType(String serverGroupType)
public String getServerGroupType()
public CreateServerGroupRequest setTag(List<CreateServerGroupRequest.CreateServerGroupRequestTag> tag)
public List<CreateServerGroupRequest.CreateServerGroupRequestTag> getTag()
public CreateServerGroupRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2023. All rights reserved.