public static class DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Integer |
connectTimeout
The timeout period for a new connection.
|
Integer |
failTimeout
The expiration time of a connection, in seconds.
|
Integer |
maxFails
The maximum number of failures.
|
String |
mode
The primary/secondary flag.
|
Integer |
readTimeout
The timeout period for a read connection.
|
Integer |
sendTimeout
The timeout period for a write connection.
|
Integer |
weight
The weight of the origin server.
|
| 构造器和说明 |
|---|
DescribeL7RsPolicyResponseBodyAttributesAttribute() |
@NameInMap(value="ConnectTimeout") public Integer connectTimeout
The timeout period for a new connection. Valid values: 1 to 10. Unit: seconds. Default value: 5.
example:5
@NameInMap(value="FailTimeout") public 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
@NameInMap(value="MaxFails") public 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
@NameInMap(value="Mode") public String mode
The primary/secondary flag. Valid values:
active
@NameInMap(value="ReadTimeout") public Integer readTimeout
The timeout period for a read connection. Valid values: 10 to 300. Unit: seconds. Default value: 120.
example:120
@NameInMap(value="SendTimeout") public Integer sendTimeout
The timeout period for a write connection. Valid values: 10 to 300. Unit: seconds. Default value: 120.
example:120
@NameInMap(value="Weight") public 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 DescribeL7RsPolicyResponseBodyAttributesAttribute()
public static DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute build(Map<String,?> map) throws Exception
Exceptionpublic DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute setConnectTimeout(Integer connectTimeout)
public Integer getConnectTimeout()
public DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute setFailTimeout(Integer failTimeout)
public Integer getFailTimeout()
public DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute setMaxFails(Integer maxFails)
public Integer getMaxFails()
public DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute setMode(String mode)
public String getMode()
public DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute setReadTimeout(Integer readTimeout)
public Integer getReadTimeout()
public DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute setSendTimeout(Integer sendTimeout)
public Integer getSendTimeout()
public DescribeL7RsPolicyResponseBody.DescribeL7RsPolicyResponseBodyAttributesAttribute setWeight(Integer weight)
public Integer getWeight()
Copyright © 2026. All rights reserved.