public static final class DescribeRuleAttributeResponseBody.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeRuleAttributeResponseBody |
build() |
DescribeRuleAttributeResponseBody.Builder |
cookie(String cookie)
The cookie to be configured on the backend server.
|
DescribeRuleAttributeResponseBody.Builder |
cookieTimeout(Integer cookieTimeout)
The timeout period of a cookie.
|
DescribeRuleAttributeResponseBody.Builder |
domain(String domain)
The domain name that is configured in the forwarding rule.
|
DescribeRuleAttributeResponseBody.Builder |
healthCheck(String healthCheck)
Specifies whether to enable health checks.
|
DescribeRuleAttributeResponseBody.Builder |
healthCheckConnectPort(Integer healthCheckConnectPort)
The backend port that is used for health checks.
|
DescribeRuleAttributeResponseBody.Builder |
healthCheckDomain(String healthCheckDomain)
The domain name that is used for health checks.
|
DescribeRuleAttributeResponseBody.Builder |
healthCheckHttpCode(String healthCheckHttpCode)
The HTTP status code that indicates a successful health check.
|
DescribeRuleAttributeResponseBody.Builder |
healthCheckInterval(Integer healthCheckInterval)
The time interval between two consecutive health checks.
|
DescribeRuleAttributeResponseBody.Builder |
healthCheckTimeout(Integer healthCheckTimeout)
The timeout period of a health check response.
|
DescribeRuleAttributeResponseBody.Builder |
healthCheckURI(String healthCheckURI)
The URI that is used for health checks.
|
DescribeRuleAttributeResponseBody.Builder |
healthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy.
|
DescribeRuleAttributeResponseBody.Builder |
listenerPort(String listenerPort)
The listener port that is used by the SLB instance.
|
DescribeRuleAttributeResponseBody.Builder |
listenerSync(String listenerSync)
Indicates whether the forwarding rule uses the scheduling algorithm, session persistence, and health check configurations of the listener.
|
DescribeRuleAttributeResponseBody.Builder |
loadBalancerId(String loadBalancerId)
The ID of the SLB instance.
|
DescribeRuleAttributeResponseBody.Builder |
requestId(String requestId)
The ID of the request.
|
DescribeRuleAttributeResponseBody.Builder |
ruleId(String ruleId)
The ID of the forwarding rule.
|
DescribeRuleAttributeResponseBody.Builder |
ruleName(String ruleName)
The name of the forwarding rule.
|
DescribeRuleAttributeResponseBody.Builder |
scheduler(String scheduler)
The scheduling algorithm.
|
DescribeRuleAttributeResponseBody.Builder |
stickySession(String stickySession)
Indicates whether session persistence is enabled.
|
DescribeRuleAttributeResponseBody.Builder |
stickySessionType(String stickySessionType)
The method that is used to handle a cookie.
|
DescribeRuleAttributeResponseBody.Builder |
unhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy.
|
DescribeRuleAttributeResponseBody.Builder |
url(String url)
The URL that is configured in the forwarding rule.
|
DescribeRuleAttributeResponseBody.Builder |
vServerGroupId(String vServerGroupId)
The ID of the vServer group that is associated with the forwarding rule.
|
public DescribeRuleAttributeResponseBody.Builder cookie(String cookie)
The cookie to be configured on the backend server.
The cookie must be 1 to 200 characters in length and can contain ASCII letters and digits. It cannot contain commas (,), semicolons (;), or whitespace characters. It cannot start with a dollar sign ($).
If you set the StickySession parameter to on and the StickySessionType parameter to server, this parameter is required.
example:wwe
public DescribeRuleAttributeResponseBody.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.
12
public DescribeRuleAttributeResponseBody.Builder domain(String domain)
The domain name that is configured in the forwarding rule.
example:public DescribeRuleAttributeResponseBody.Builder healthCheck(String healthCheck)
Specifies whether to enable health checks.
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 DescribeRuleAttributeResponseBody.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.
23
public DescribeRuleAttributeResponseBody.Builder healthCheckDomain(String healthCheckDomain)
The domain name that is used for health checks. Valid values:
example:If you set the HealthCheck parameter to on, this parameter is required.
public DescribeRuleAttributeResponseBody.Builder healthCheckHttpCode(String healthCheckHttpCode)
The HTTP status code that indicates a successful health check. Separate multiple HTTP status codes with 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 DescribeRuleAttributeResponseBody.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.
34
public DescribeRuleAttributeResponseBody.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.
Valid values: 1 to 300. Unit: seconds.
example:If you set the HealthCheck parameter to on, this parameter is required.
34
public DescribeRuleAttributeResponseBody.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.
/rest
public DescribeRuleAttributeResponseBody.Builder healthyThreshold(Integer healthyThreshold)
The number of consecutive successful health checks that must occur before an unhealthy backend server is declared healthy. In this case, the health check state is changed from fail to success.
Valid values: 2 to 10.
example:If you set the HealthCheck parameter to on, this parameter is required.
2
public DescribeRuleAttributeResponseBody.Builder listenerPort(String listenerPort)
The listener port that is used by the SLB instance.
example:90
public DescribeRuleAttributeResponseBody.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 DescribeRuleAttributeResponseBody.Builder loadBalancerId(String loadBalancerId)
The ID of the SLB instance.
example:lb-bp1ca0zt07t934wxe****
public DescribeRuleAttributeResponseBody.Builder requestId(String requestId)
The ID of the request.
example:9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C
public DescribeRuleAttributeResponseBody.Builder ruleId(String ruleId)
The ID of the forwarding rule.
example:rule-hfgnd*****
public DescribeRuleAttributeResponseBody.Builder ruleName(String ruleName)
The name of the forwarding rule.
example:Rule1
public DescribeRuleAttributeResponseBody.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 DescribeRuleAttributeResponseBody.Builder stickySession(String stickySession)
Indicates whether session persistence is 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 DescribeRuleAttributeResponseBody.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 DescribeRuleAttributeResponseBody.Builder unhealthyThreshold(Integer unhealthyThreshold)
The number of consecutive failed health checks that must occur before a healthy backend server is declared unhealthy. In this case, the health check state is changed from success to fail.
Valid values: 2 to 10.
example:If you set the HealthCheck parameter to on, this parameter is required.
3
public DescribeRuleAttributeResponseBody.Builder url(String url)
The URL that is configured in the forwarding rule.
example:/cache
public DescribeRuleAttributeResponseBody.Builder vServerGroupId(String vServerGroupId)
The ID of the vServer group that is associated with the forwarding rule.
example:rsp-cige6j****
public DescribeRuleAttributeResponseBody build()
Copyright © 2026. All rights reserved.