public static final class SetRuleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
SetRuleRequest |
build() |
SetRuleRequest.Builder |
cookie(String cookie)
The cookie that is configured on the server.
|
SetRuleRequest.Builder |
cookieTimeout(Integer cookieTimeout)
The timeout period of a cookie.
|
SetRuleRequest.Builder |
healthCheck(String healthCheck)
Specifies whether to enable the health check feature.
|
SetRuleRequest.Builder |
healthCheckConnectPort(Integer healthCheckConnectPort)
The port that is used for health checks.
|
SetRuleRequest.Builder |
healthCheckDomain(String healthCheckDomain)
The domain name that is used for health checks.
|
SetRuleRequest.Builder |
healthCheckHttpCode(String healthCheckHttpCode)
The HTTP status code for a successful health check.
|
SetRuleRequest.Builder |
healthCheckInterval(Integer healthCheckInterval)
The interval between two consecutive health checks.
|
SetRuleRequest.Builder |
healthCheckTimeout(Integer healthCheckTimeout)
The timeout period of a health check response.
|
SetRuleRequest.Builder |
healthCheckURI(String healthCheckURI)
The URI that is used for health checks.
|
SetRuleRequest.Builder |
healthyThreshold(Integer healthyThreshold)
The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy.
|
SetRuleRequest.Builder |
listenerSync(String listenerSync)
Specifies whether to use the scheduling algorithm, session persistence, and health check configurations of the listener.
|
SetRuleRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
SetRuleRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
SetRuleRequest.Builder |
regionId(String regionId)
The ID of the region where the Classic Load Balancer (CLB) instance is deployed.
|
SetRuleRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
SetRuleRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
SetRuleRequest.Builder |
ruleId(String ruleId)
The ID of the forwarding rule.
|
SetRuleRequest.Builder |
ruleName(String ruleName)
The name of the forwarding rule.
|
SetRuleRequest.Builder |
scheduler(String scheduler)
The scheduling algorithm.
|
SetRuleRequest.Builder |
stickySession(String stickySession)
Specifies whether to enable session persistence.
|
SetRuleRequest.Builder |
stickySessionType(String stickySessionType)
The method that is used to handle a cookie.
|
SetRuleRequest.Builder |
unhealthyThreshold(Integer unhealthyThreshold)
The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy.
|
SetRuleRequest.Builder |
vServerGroupId(String vServerGroupId)
The ID of the vServer group that is associated with the forwarding rule.
|
public SetRuleRequest.Builder cookie(String cookie)
The cookie must be 1 to 200 characters in length and can contain only ASCII characters and digits. It cannot contain commas (,), semicolons (;), or space characters. It cannot start with a dollar sign ($). > This parameter is required and takes effect if **StickySession** is set to **on** and **StickySessionType** is set to **server**.
public SetRuleRequest.Builder cookieTimeout(Integer cookieTimeout)
> This parameter is required and takes effect if **StickySession** is set to **on** and **StickySessionType** is set to **insert**.
public SetRuleRequest.Builder healthCheck(String healthCheck)
* **on**: yes * **off**: no > This parameter is required and takes effect if the **ListenerSync** parameter is set to **off**.
public SetRuleRequest.Builder healthCheckConnectPort(Integer healthCheckConnectPort)
> This parameter takes effect when the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder healthCheckDomain(String healthCheckDomain)
* **$\_ip**: the private IP address of a backend server. If you do not set this parameter or set the parameter to $\_ip, the SLB instance uses the private IP address of each backend server for health checks. * **domain**: The domain name must be 1 to 80 characters in length, and can contain letters, digits, periods (.), and hyphens (-). > This parameter takes effect if the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder healthCheckHttpCode(String healthCheckHttpCode)
Valid values: **http\_2xx**, **http\_3xx**, **http\_4xx**, and **http\_5xx**. > This parameter is required and takes effect if the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder healthCheckInterval(Integer healthCheckInterval)
> This parameter is required and takes effect if the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder healthCheckTimeout(Integer healthCheckTimeout)
> This parameter is required and takes effect if the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder healthCheckURI(String healthCheckURI)
> This parameter is required and takes effect if the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder healthyThreshold(Integer healthyThreshold)
Valid values: **2** to **10**. > This parameter is required and takes effect if the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder listenerSync(String listenerSync)
* **on**: uses the configurations of the listener. * **off**: does not use the configurations of the listener. You can customize the health check and session persistence configurations for the forwarding rule.
public SetRuleRequest.Builder ownerAccount(String ownerAccount)
public SetRuleRequest.Builder ownerId(Long ownerId)
public SetRuleRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~27584~~) operation to query the most recent region list.
public SetRuleRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public SetRuleRequest.Builder resourceOwnerId(Long resourceOwnerId)
public SetRuleRequest.Builder ruleId(String ruleId)
public SetRuleRequest.Builder ruleName(String ruleName)
> Forwarding rule names must be unique within the same listener.
public SetRuleRequest.Builder scheduler(String scheduler)
* **wrr**: Backend servers with higher weights receive more requests than those with lower weights. * **rr**: Requests are distributed to backend servers in sequence. > This parameter is required and takes effect if the **ListenerSync** parameter is set to **off**.
public SetRuleRequest.Builder stickySession(String stickySession)
* **on**: yes * **off**: no This parameter is required and takes effect if the **ListenerSync** parameter is set to **off**.
public SetRuleRequest.Builder stickySessionType(String stickySessionType)
* **insert**: inserts a cookie. CLB inserts the backend server ID as a cookie into the first HTTP or HTTPS response that is sent to a client. The next request from the client will contain this cookie, and the listener will distribute this request to the recorded backend server. * **server**: rewrites a cookie. When CLB detects a user-defined cookie, it overwrites the original cookie with the user-defined cookie. The next request from the client will contain the user-defined cookie, and the listener will distribute this request to the recorded backend server. > This parameter is required and takes effect if the **StickySession** parameter is set to **on**.
public SetRuleRequest.Builder unhealthyThreshold(Integer unhealthyThreshold)
Valid values: **2** to **10**. > This parameter is required and takes effect if the **HealthCheck** parameter is set to **on**.
public SetRuleRequest.Builder vServerGroupId(String vServerGroupId)
public SetRuleRequest build()
Copyright © 2024. All rights reserved.