public class ConfigL7RsPolicyRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
domain
The domain name of the website.
|
String |
policy
The back-to-origin policy.
|
String |
resourceGroupId
The ID of the resource group to which the instance belongs in Resource Management.
|
Integer |
upstreamRetry
The retry switch.
|
| 构造器和说明 |
|---|
ConfigL7RsPolicyRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ConfigL7RsPolicyRequest |
build(Map<String,?> map) |
String |
getDomain() |
String |
getPolicy() |
String |
getResourceGroupId() |
Integer |
getUpstreamRetry() |
ConfigL7RsPolicyRequest |
setDomain(String domain) |
ConfigL7RsPolicyRequest |
setPolicy(String policy) |
ConfigL7RsPolicyRequest |
setResourceGroupId(String resourceGroupId) |
ConfigL7RsPolicyRequest |
setUpstreamRetry(Integer upstreamRetry) |
@NameInMap(value="Domain") public String domain
The domain name of the website.
A forwarding rule must be configured for the domain name. You can call the DescribeDomains operation to query the domain names for which forwarding rules are configured.
This parameter is required.
example:@NameInMap(value="Policy") public String policy
The back-to-origin policy. The value is a string that consists of a JSON struct. The JSON struct contains the following fields:
ProxyMode: The load balancing algorithm for back-to-origin traffic. This field is required and must be a string. Valid values:
Attributes: the parameters for back-to-origin processing. This field is optional and must be a JSON array. Each element in the array contains the following fields:
RealServer: the address of the origin server. This field is optional and must be a string.
Attribute: the parameter for back-to-origin processing. This field is optional and must be a JSON object. Valid values:
This parameter is required.
example:{"ProxyMode":"rr","Attributes":[{"RealServer":"1...1","Attribute":{"Weight":100}},{"RealServer":"2...2","Attribute":{"Weight":100}}]}
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.
For more information about resource groups, see Create a resource group.
example:rg-acfm2pz25js****
@NameInMap(value="UpstreamRetry") public Integer upstreamRetry
The retry switch. Valid values:
1
public static ConfigL7RsPolicyRequest build(Map<String,?> map) throws Exception
Exceptionpublic ConfigL7RsPolicyRequest setDomain(String domain)
public String getDomain()
public ConfigL7RsPolicyRequest setPolicy(String policy)
public String getPolicy()
public ConfigL7RsPolicyRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public ConfigL7RsPolicyRequest setUpstreamRetry(Integer upstreamRetry)
public Integer getUpstreamRetry()
Copyright © 2026. All rights reserved.