public class UpdateServerGroupAttributeRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig |
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig |
healthCheckConfig
The configurations of the health check feature.
|
Boolean |
preserveClientIpEnabled
Specifies whether to enable client IP preservation.
|
String |
regionId
The region ID of the NLB instance.
|
String |
scheduler
The routing algorithm.
|
String |
serverGroupId
The server group ID.
|
String |
serverGroupName
The new name of the server group.
|
| 构造器和说明 |
|---|
UpdateServerGroupAttributeRequest() |
@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**
@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 UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig 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**
@NameInMap(value="RegionId") public String regionId
The region ID of the NLB instance.
You can call the [DescribeRegions](~~443657~~) operation to obtain the region ID.
@NameInMap(value="Scheduler") public String scheduler
The routing algorithm. Valid values:
* **Wrr**: Backend servers with higher weights receive more requests than backend servers with lower weights.
* **rr**: 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="ServerGroupId") public String serverGroupId
The server group ID.
@NameInMap(value="ServerGroupName") public String serverGroupName
The new 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.
public static UpdateServerGroupAttributeRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateServerGroupAttributeRequest setClientToken(String clientToken)
public String getClientToken()
public UpdateServerGroupAttributeRequest setConnectionDrainEnabled(Boolean connectionDrainEnabled)
public Boolean getConnectionDrainEnabled()
public UpdateServerGroupAttributeRequest setConnectionDrainTimeout(Integer connectionDrainTimeout)
public Integer getConnectionDrainTimeout()
public UpdateServerGroupAttributeRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public UpdateServerGroupAttributeRequest setHealthCheckConfig(UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig healthCheckConfig)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig getHealthCheckConfig()
public UpdateServerGroupAttributeRequest setPreserveClientIpEnabled(Boolean preserveClientIpEnabled)
public Boolean getPreserveClientIpEnabled()
public UpdateServerGroupAttributeRequest setRegionId(String regionId)
public String getRegionId()
public UpdateServerGroupAttributeRequest setScheduler(String scheduler)
public String getScheduler()
public UpdateServerGroupAttributeRequest setServerGroupId(String serverGroupId)
public String getServerGroupId()
public UpdateServerGroupAttributeRequest setServerGroupName(String serverGroupName)
public String getServerGroupName()
Copyright © 2023. All rights reserved.