public static final class ConfigL7RsPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ConfigL7RsPolicyRequest |
build() |
ConfigL7RsPolicyRequest.Builder |
domain(String domain)
The domain name of the website.
|
ConfigL7RsPolicyRequest.Builder |
policy(String policy)
The back-to-origin policy.
|
ConfigL7RsPolicyRequest.Builder |
regionId(String regionId)
RegionId.
|
ConfigL7RsPolicyRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
|
ConfigL7RsPolicyRequest.Builder |
upstreamRetry(Integer upstreamRetry)
The retry switch.
|
public ConfigL7RsPolicyRequest.Builder regionId(String regionId)
public ConfigL7RsPolicyRequest.Builder domain(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:public ConfigL7RsPolicyRequest.Builder policy(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}}]}
public ConfigL7RsPolicyRequest.Builder resourceGroupId(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****
public ConfigL7RsPolicyRequest.Builder upstreamRetry(Integer upstreamRetry)
The retry switch. Valid values:
1
public ConfigL7RsPolicyRequest build()
Copyright © 2026. All rights reserved.