public static final class DescribeL7RsPolicyResponseBody.Attribute.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeL7RsPolicyResponseBody.Attribute |
build() |
DescribeL7RsPolicyResponseBody.Attribute.Builder |
connectTimeout(Integer connectTimeout)
The timeout period for a new connection.
|
DescribeL7RsPolicyResponseBody.Attribute.Builder |
failTimeout(Integer failTimeout)
The expiration time of a connection, in seconds.
|
DescribeL7RsPolicyResponseBody.Attribute.Builder |
maxFails(Integer maxFails)
The maximum number of failures.
|
DescribeL7RsPolicyResponseBody.Attribute.Builder |
mode(String mode)
The primary/secondary flag.
|
DescribeL7RsPolicyResponseBody.Attribute.Builder |
readTimeout(Integer readTimeout)
The timeout period for a read connection.
|
DescribeL7RsPolicyResponseBody.Attribute.Builder |
sendTimeout(Integer sendTimeout)
The timeout period for a write connection.
|
DescribeL7RsPolicyResponseBody.Attribute.Builder |
weight(Integer weight)
The weight of the origin server.
|
public DescribeL7RsPolicyResponseBody.Attribute.Builder connectTimeout(Integer connectTimeout)
The timeout period for a new connection. Valid values: 1 to 10. Unit: seconds. Default value: 5.
example:5
public DescribeL7RsPolicyResponseBody.Attribute.Builder failTimeout(Integer failTimeout)
The expiration time of a connection, in seconds. If the number of failures at the origin server exceeds the MaxFails value, the address of the origin server is set to down and the expiration time is FailTimeout. The final value is the maximum value of ConnectTimeout and FailTimeout. Valid values: 1 to 3600. Unit: seconds. Default value: 10.
example:10
public DescribeL7RsPolicyResponseBody.Attribute.Builder maxFails(Integer maxFails)
The maximum number of failures. This parameter is related to health check. Valid values: 1 to 10. Unit: seconds. Default value: 3.
example:3
public DescribeL7RsPolicyResponseBody.Attribute.Builder mode(String mode)
The primary/secondary flag. Valid values:
active
public DescribeL7RsPolicyResponseBody.Attribute.Builder readTimeout(Integer readTimeout)
The timeout period for a read connection. Valid values: 10 to 300. Unit: seconds. Default value: 120.
example:120
public DescribeL7RsPolicyResponseBody.Attribute.Builder sendTimeout(Integer sendTimeout)
The timeout period for a write connection. Valid values: 10 to 300. Unit: seconds. Default value: 120.
example:120
public DescribeL7RsPolicyResponseBody.Attribute.Builder weight(Integer weight)
The weight of the origin server. This parameter takes effect only if the value of ProxyMode is rr or ip_hash.****
Valid values: 1 to 100. Default value: 100. A server with a higher weight receives more requests.
example:100
public DescribeL7RsPolicyResponseBody.Attribute build()
Copyright © 2026. All rights reserved.