public class CreateSchedulerRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
param
The details of the CDN interaction rule.
|
String |
resourceGroupId
The ID of the resource group to which the instance belongs in Resource Management.
|
String |
ruleName
The name of the rule.
|
String |
rules
The details of the scheduling rule.
|
Integer |
ruleType
The type of the rule.
|
| 构造器和说明 |
|---|
CreateSchedulerRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateSchedulerRuleRequest |
build(Map<String,?> map) |
String |
getParam() |
String |
getResourceGroupId() |
String |
getRuleName() |
String |
getRules() |
Integer |
getRuleType() |
CreateSchedulerRuleRequest |
setParam(String param) |
CreateSchedulerRuleRequest |
setResourceGroupId(String resourceGroupId) |
CreateSchedulerRuleRequest |
setRuleName(String ruleName) |
CreateSchedulerRuleRequest |
setRules(String rules) |
CreateSchedulerRuleRequest |
setRuleType(Integer ruleType) |
@NameInMap(value="Param") public 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}}
@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.
example:default
@NameInMap(value="RuleName") public String ruleName
The name of the rule.
This parameter is required.
example:testrule
@NameInMap(value="RuleType") public Integer ruleType
The type of the rule. Valid values:
This parameter is required.
example:2
@NameInMap(value="Rules") public 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 static CreateSchedulerRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateSchedulerRuleRequest setParam(String param)
public String getParam()
public CreateSchedulerRuleRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateSchedulerRuleRequest setRuleName(String ruleName)
public String getRuleName()
public CreateSchedulerRuleRequest setRuleType(Integer ruleType)
public Integer getRuleType()
public CreateSchedulerRuleRequest setRules(String rules)
public String getRules()
Copyright © 2026. All rights reserved.