public class UpdateServerGroupAttributeRequest
extends com.aliyun.tea.TeaModel
| 构造器和说明 |
|---|
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="ConnectionDrainConfig") public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestConnectionDrainConfig connectionDrainConfig
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
* **true**: checks the request without performing the operation. 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 UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig healthCheckConfig
The configuration of health checks.
@NameInMap(value="Scheduler") public String scheduler
The scheduling algorithm. Valid values:
* **Wrr**: the weighted round robin algorithm. Backend servers that have higher weights receive more requests than those that have lower weights.
* **Wlc**: the weighted least connections algorithm. 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. Requests from the same source IP address are distributed to the same backend server.
@NameInMap(value="ServerGroupId") public String serverGroupId
The server group ID.
This parameter is required.
@NameInMap(value="ServerGroupName") public String serverGroupName
The server group name.
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="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 UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestSlowStartConfig slowStartConfig
@NameInMap(value="StickySessionConfig") public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig stickySessionConfig
The configuration of session persistence.
@NameInMap(value="UchConfig") public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestUchConfig uchConfig
The setting of consistent hashing based on URLs.
@NameInMap(value="UpstreamKeepaliveEnabled") public Boolean upstreamKeepaliveEnabled
Specifies whether to enable persistent TCP connections.
public static UpdateServerGroupAttributeRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateServerGroupAttributeRequest setClientToken(String clientToken)
public String getClientToken()
public UpdateServerGroupAttributeRequest setConnectionDrainConfig(UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestConnectionDrainConfig connectionDrainConfig)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestConnectionDrainConfig getConnectionDrainConfig()
public UpdateServerGroupAttributeRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public UpdateServerGroupAttributeRequest setHealthCheckConfig(UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig healthCheckConfig)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestHealthCheckConfig getHealthCheckConfig()
public UpdateServerGroupAttributeRequest setScheduler(String scheduler)
public String getScheduler()
public UpdateServerGroupAttributeRequest setServerGroupId(String serverGroupId)
public String getServerGroupId()
public UpdateServerGroupAttributeRequest setServerGroupName(String serverGroupName)
public String getServerGroupName()
public UpdateServerGroupAttributeRequest setServiceName(String serviceName)
public String getServiceName()
public UpdateServerGroupAttributeRequest setSlowStartConfig(UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestSlowStartConfig slowStartConfig)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestSlowStartConfig getSlowStartConfig()
public UpdateServerGroupAttributeRequest setStickySessionConfig(UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig stickySessionConfig)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestStickySessionConfig getStickySessionConfig()
public UpdateServerGroupAttributeRequest setUchConfig(UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestUchConfig uchConfig)
public UpdateServerGroupAttributeRequest.UpdateServerGroupAttributeRequestUchConfig getUchConfig()
public UpdateServerGroupAttributeRequest setUpstreamKeepaliveEnabled(Boolean upstreamKeepaliveEnabled)
public Boolean getUpstreamKeepaliveEnabled()
Copyright © 2024. All rights reserved.