public class CreateServerGroupRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CreateServerGroupRequest.CreateServerGroupRequestConnectionDrainConfig |
static class |
CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig |
static class |
CreateServerGroupRequest.CreateServerGroupRequestSlowStartConfig |
static class |
CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig |
static class |
CreateServerGroupRequest.CreateServerGroupRequestTag |
static class |
CreateServerGroupRequest.CreateServerGroupRequestUchConfig |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
CreateServerGroupRequest.CreateServerGroupRequestConnectionDrainConfig |
connectionDrainConfig |
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig |
healthCheckConfig
The configuration of health checks.
|
String |
protocol
The backend protocol.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
scheduler
The scheduling algorithm.
|
String |
serverGroupName
The name of the server group.
|
String |
serverGroupType
The type of server group.
|
String |
serviceName
This parameter is available only if the ALB Ingress controller is used.
|
CreateServerGroupRequest.CreateServerGroupRequestSlowStartConfig |
slowStartConfig |
CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig |
stickySessionConfig
The configuration of session persistence.
|
List<CreateServerGroupRequest.CreateServerGroupRequestTag> |
tag
The tag.
|
CreateServerGroupRequest.CreateServerGroupRequestUchConfig |
uchConfig
The configuration of consistent hashing based on URLs.
|
Boolean |
upstreamKeepaliveEnabled
Specifies whether to enable persistent TCP connections.
|
String |
vpcId
The ID of the virtual private cloud (VPC).
|
| 构造器和说明 |
|---|
CreateServerGroupRequest() |
@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="ConnectionDrainConfig") public CreateServerGroupRequest.CreateServerGroupRequestConnectionDrainConfig connectionDrainConfig
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only 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 code 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 configuration of health checks.
This parameter is required.
@NameInMap(value="Protocol") public String protocol
The backend protocol. Valid values:
* **HTTP** (default): The server group can be associated with HTTPS, HTTP, and QUIC listeners.
* **HTTPS**: The server group can be associated with HTTPS listeners.
* **gRPC**: The server group can be associated with HTTPS and QUIC listeners.
> If the **ServerGroupType** parameter is set to **Fc**, you can set Protocol only to **HTTP**.
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
@NameInMap(value="Scheduler") public String scheduler
The scheduling algorithm. Valid values:
* **Wrr** (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
* **Wlc**: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
* **Sch**: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
> This parameter takes effect when the **ServerGroupType** parameter is set to **Instance** or **Ip**.
@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.
This parameter is required.
@NameInMap(value="ServerGroupType") public String serverGroupType
The type of server group. Valid values:
* **Instance** (default): allows you to add servers by specifying **Ecs**, **Eni**, or **Eci**.
* **Ip**: allows you to add servers by specifying IP addresses.
* **Fc**: allows you to add servers by specifying functions of Function Compute.
@NameInMap(value="ServiceName") public String serviceName
This parameter is available only if the ALB Ingress controller is used. In this case, set this parameter to the name of the `Kubernetes Service` that is associated with the server group.
@NameInMap(value="SlowStartConfig") public CreateServerGroupRequest.CreateServerGroupRequestSlowStartConfig slowStartConfig
@NameInMap(value="StickySessionConfig") public CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig stickySessionConfig
The configuration of session persistence.
> This parameter takes effect when the **ServerGroupType** parameter is set to **Instance** or **Ip**.
@NameInMap(value="Tag") public List<CreateServerGroupRequest.CreateServerGroupRequestTag> tag
The tag.
@NameInMap(value="UchConfig") public CreateServerGroupRequest.CreateServerGroupRequestUchConfig uchConfig
The configuration of consistent hashing based on URLs.
@NameInMap(value="UpstreamKeepaliveEnabled") public Boolean upstreamKeepaliveEnabled
Specifies whether to enable persistent TCP connections.
@NameInMap(value="VpcId") public String vpcId
The ID of the virtual private cloud (VPC). You can add only backend servers that are deployed in the specified VPC to the server group.
> This parameter takes effect when the **ServerGroupType** parameter is set to **Instance** or **Ip**.
public static CreateServerGroupRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateServerGroupRequest setClientToken(String clientToken)
public String getClientToken()
public CreateServerGroupRequest setConnectionDrainConfig(CreateServerGroupRequest.CreateServerGroupRequestConnectionDrainConfig connectionDrainConfig)
public CreateServerGroupRequest.CreateServerGroupRequestConnectionDrainConfig getConnectionDrainConfig()
public CreateServerGroupRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public CreateServerGroupRequest setHealthCheckConfig(CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig healthCheckConfig)
public CreateServerGroupRequest.CreateServerGroupRequestHealthCheckConfig getHealthCheckConfig()
public CreateServerGroupRequest setProtocol(String protocol)
public String getProtocol()
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 setServiceName(String serviceName)
public String getServiceName()
public CreateServerGroupRequest setSlowStartConfig(CreateServerGroupRequest.CreateServerGroupRequestSlowStartConfig slowStartConfig)
public CreateServerGroupRequest.CreateServerGroupRequestSlowStartConfig getSlowStartConfig()
public CreateServerGroupRequest setStickySessionConfig(CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig stickySessionConfig)
public CreateServerGroupRequest.CreateServerGroupRequestStickySessionConfig getStickySessionConfig()
public CreateServerGroupRequest setTag(List<CreateServerGroupRequest.CreateServerGroupRequestTag> tag)
public List<CreateServerGroupRequest.CreateServerGroupRequestTag> getTag()
public CreateServerGroupRequest setUchConfig(CreateServerGroupRequest.CreateServerGroupRequestUchConfig uchConfig)
public CreateServerGroupRequest.CreateServerGroupRequestUchConfig getUchConfig()
public CreateServerGroupRequest setUpstreamKeepaliveEnabled(Boolean upstreamKeepaliveEnabled)
public Boolean getUpstreamKeepaliveEnabled()
public CreateServerGroupRequest setVpcId(String vpcId)
public String getVpcId()
Copyright © 2024. All rights reserved.