public static final class DescribeRulesResponseBody.Rule.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeRulesResponseBody.Rule |
build() |
DescribeRulesResponseBody.Rule.Builder |
cookie(String cookie)
The cookie that is configured on the backend server.
|
DescribeRulesResponseBody.Rule.Builder |
cookieTimeout(Integer cookieTimeout)
The timeout period of a cookie.
|
DescribeRulesResponseBody.Rule.Builder |
domain(String domain)
The requested domain name specified in the forwarding rule.
|
DescribeRulesResponseBody.Rule.Builder |
healthCheck(String healthCheck)
Indicates whether health checks are enabled.
|
DescribeRulesResponseBody.Rule.Builder |
healthCheckConnectPort(Integer healthCheckConnectPort)
The backend port that is used for health checks.
|
DescribeRulesResponseBody.Rule.Builder |
healthCheckDomain(String healthCheckDomain)
The domain name that is used for health checks.
|
DescribeRulesResponseBody.Rule.Builder |
healthCheckHttpCode(String healthCheckHttpCode)
The HTTP status code that indicates a successful health check.
|
DescribeRulesResponseBody.Rule.Builder |
healthCheckInterval(Integer healthCheckInterval)
The time interval between two consecutive health checks.
|
DescribeRulesResponseBody.Rule.Builder |
healthCheckTimeout(Integer healthCheckTimeout)
The timeout period of a health check response.
|
DescribeRulesResponseBody.Rule.Builder |
healthCheckURI(String healthCheckURI)
The URI that is used for health checks.
|
DescribeRulesResponseBody.Rule.Builder |
healthyThreshold(Integer healthyThreshold)
Specifies the number of successful health checks that must be consecutively performed before a backend server can be declared healthy (from fail to success).
|
DescribeRulesResponseBody.Rule.Builder |
listenerSync(String listenerSync)
Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.
|
DescribeRulesResponseBody.Rule.Builder |
ruleId(String ruleId)
The ID of the forwarding rule.
|
DescribeRulesResponseBody.Rule.Builder |
ruleName(String ruleName)
The name of the forwarding rule.
|
DescribeRulesResponseBody.Rule.Builder |
scheduler(String scheduler)
The scheduling algorithm.
|
DescribeRulesResponseBody.Rule.Builder |
stickySession(String stickySession)
Specifies whether to enable session persistence.
|
DescribeRulesResponseBody.Rule.Builder |
stickySessionType(String stickySessionType)
The method that is used to handle a cookie.
|
DescribeRulesResponseBody.Rule.Builder |
unhealthyThreshold(Integer unhealthyThreshold)
Specifies the number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
|
DescribeRulesResponseBody.Rule.Builder |
url(String url)
The requested path specified in the forwarding rule.
|
DescribeRulesResponseBody.Rule.Builder |
vServerGroupId(String vServerGroupId)
The ID of the destination vServer group specified in the forwarding rule.
|
public DescribeRulesResponseBody.Rule.Builder cookie(String cookie)
The cookie that is configured on the backend server.
The value must be 1 to 200 characters in length, and can contain only ASCII letters and digits. It cannot contain commas (,), semicolons (;), or spaces. It cannot start with a dollar sign ($).
example:If you set the StickySession parameter to on and the StickySessionType parameter to server, this parameter is required.
23
public DescribeRulesResponseBody.Rule.Builder cookieTimeout(Integer cookieTimeout)
The timeout period of a cookie. Valid values: 1 to 86400. Unit: seconds.
example:If you set the StickySession parameter to on and the StickySessionType parameter to insert, this parameter is required.
56
public DescribeRulesResponseBody.Rule.Builder domain(String domain)
The requested domain name specified in the forwarding rule.
example:test.com
public DescribeRulesResponseBody.Rule.Builder healthCheck(String healthCheck)
Indicates whether health checks are enabled.
Valid values: on and off.
example:If you set the ListenerSync parameter to off, this parameter is required. If you set the parameter to on, the configuration of the listener is used.
off
public DescribeRulesResponseBody.Rule.Builder healthCheckConnectPort(Integer healthCheckConnectPort)
The backend port that is used for health checks.
Valid values: 1 to 65535.
example:If you set the HealthCheck parameter to on, this parameter is required. If this parameter is empty but HealthCheck is set to on, the listener port is used for health checks.
45
public DescribeRulesResponseBody.Rule.Builder healthCheckDomain(String healthCheckDomain)
The domain name that is used for health checks. Valid values:
$_ip: The private IP address of the 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 as the domain name for health checks.
domain: The domain name must be 1 to 80 characters in length. The domain name can contain only letters, digits, periods (.),and hyphens (-).
example:If you set the HealthCheck parameter to on, this parameter is required.
public DescribeRulesResponseBody.Rule.Builder healthCheckHttpCode(String healthCheckHttpCode)
The HTTP status code that indicates a successful health check. Multiple HTTP status codes are separated by commas (,). Default value: http_2xx.
Valid values: http_2xx, http_3xx, http_4xx, and http_5xx.
example:If you set the HealthCheck parameter to on, this parameter is required.
http_3xx
public DescribeRulesResponseBody.Rule.Builder healthCheckInterval(Integer healthCheckInterval)
The time interval between two consecutive health checks.
Valid values: 1 to 50. Unit: seconds.
example:If you set the HealthCheck parameter to on, this parameter is required.
5
public DescribeRulesResponseBody.Rule.Builder healthCheckTimeout(Integer healthCheckTimeout)
The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds
Valid values: 1 to 300.
example:When you set the HealthCheck parameter to on, this parameter takes effect.
34
public DescribeRulesResponseBody.Rule.Builder healthCheckURI(String healthCheckURI)
The URI that is used for health checks.
example:If you set the HealthCheck parameter to on, this parameter is required.
/example
public DescribeRulesResponseBody.Rule.Builder healthyThreshold(Integer healthyThreshold)
Specifies the number of successful health checks that must be consecutively performed before a backend server can be declared healthy (from fail to success).
Valid values: 2 to 10.
example:If you set the HealthCheck parameter to on, this parameter is required.
5
public DescribeRulesResponseBody.Rule.Builder listenerSync(String listenerSync)
Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.
Valid values: on and off.
off
public DescribeRulesResponseBody.Rule.Builder ruleId(String ruleId)
The ID of the forwarding rule.
example:rule-tybqi6****
public DescribeRulesResponseBody.Rule.Builder ruleName(String ruleName)
The name of the forwarding rule. The name must be 1 to 80 characters in length, and can contain only letters, digits, hyphens (-), forward slashes (/), periods (.),and underscores (_).
example:The name of each forwarding rule must be unique within a listener.
Rule2
public DescribeRulesResponseBody.Rule.Builder scheduler(String scheduler)
The scheduling algorithm. Valid values:
example:If you set the ListenerSync parameter to off, this parameter is required. If you set the parameter to on, the configuration of the listener is used.
wrr
public DescribeRulesResponseBody.Rule.Builder stickySession(String stickySession)
Specifies whether to enable session persistence.
Valid values: on and off.
example:If you set the ListenerSync parameter to off, this parameter is required. If you set the parameter to on, the configuration of the listener is used.
off
public DescribeRulesResponseBody.Rule.Builder stickySessionType(String stickySessionType)
The method that is used to handle a cookie. Valid values:
example:If you set the StickySession parameter to on, this parameter is required.
insert
public DescribeRulesResponseBody.Rule.Builder unhealthyThreshold(Integer unhealthyThreshold)
Specifies the number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy (from success to fail).
Valid values: 2 to 10
example:If you set the HealthCheck parameter to on, this parameter is required.
2
public DescribeRulesResponseBody.Rule.Builder url(String url)
The requested path specified in the forwarding rule.
example:/cache
public DescribeRulesResponseBody.Rule.Builder vServerGroupId(String vServerGroupId)
The ID of the destination vServer group specified in the forwarding rule.
example:rsp-6cejjzl****
public DescribeRulesResponseBody.Rule build()
Copyright © 2026. All rights reserved.