public static final class CreateSchedulerRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateSchedulerRuleRequest |
build() |
CreateSchedulerRuleRequest.Builder |
param(String param)
The details of the CDN interaction rule.
|
CreateSchedulerRuleRequest.Builder |
regionId(String regionId)
RegionId.
|
CreateSchedulerRuleRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
|
CreateSchedulerRuleRequest.Builder |
ruleName(String ruleName)
The name of the rule.
|
CreateSchedulerRuleRequest.Builder |
rules(String rules)
The details of the scheduling rule.
|
CreateSchedulerRuleRequest.Builder |
ruleType(Integer ruleType)
The type of the rule.
|
public CreateSchedulerRuleRequest.Builder regionId(String regionId)
public CreateSchedulerRuleRequest.Builder param(String param)
The details of the CDN interaction rule. This parameter is a JSON string. The following list describes the fields in the value of the parameter:
ParamType: the type of the scheduling rule. This field is required and must be of the string type. Set the value to cdn. This indicates that you want to modify a CDN interaction rule.
ParamData: the values of parameters that you want to modify for the CDN interaction rule. This field is required and must be of the map type. ParamData contains the following parameters:
{"ParamType":"cdn","ParamData":{"Domain":"example.aliyundoc.com","Cname":"demo.aliyundoc.com","AccessQps":100,"UpstreamQps":100}}
public CreateSchedulerRuleRequest.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.
example:default
public CreateSchedulerRuleRequest.Builder ruleName(String ruleName)
The name of the rule.
This parameter is required.
example:testrule
public CreateSchedulerRuleRequest.Builder ruleType(Integer ruleType)
The type of the rule. Valid values:
This parameter is required.
example:2
public CreateSchedulerRuleRequest.Builder rules(String rules)
The details of the scheduling rule. This parameter is a JSON string. The following list describes the fields in the value of the parameter:
Type: the address type of the interaction resource that you want to use in the scheduling rule. This field is required and must be of the string type. Valid values:
Value: the address of the interaction resource that you want to use in the scheduling rule. This field is required and must be of the string type.
Priority: the priority of the scheduling rule. This field is required and must be of the integer type. Valid values: 0 to 100. A larger value indicates a higher priority.
ValueType: the type of the interaction resource that you want to use in the scheduling rule. This field is required and must be of the integer type. Valid values:
RegionId: the region where the interaction resource is deployed. This parameter must be specified when ValueType is set to 2. The value must be of the string type.
This parameter is required.
example:[{"Type":"A", "Value":"1.1.XX.XX", "Priority":80,"ValueType":2, "RegionId":"cn-hangzhou" },{"Type":"A", "Value":"203.199.XX.XX", "Priority":80,"ValueType":1}]
public CreateSchedulerRuleRequest build()
Copyright © 2026. All rights reserved.