public class ModifySchedulerRuleRequest
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 that you want to modify.
|
String |
rules
The details of the scheduling rule.
|
Integer |
ruleType
The type of the scheduling rule.
|
| 构造器和说明 |
|---|
ModifySchedulerRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ModifySchedulerRuleRequest |
build(Map<String,?> map) |
String |
getParam() |
String |
getResourceGroupId() |
String |
getRuleName() |
String |
getRules() |
Integer |
getRuleType() |
ModifySchedulerRuleRequest |
setParam(String param) |
ModifySchedulerRuleRequest |
setResourceGroupId(String resourceGroupId) |
ModifySchedulerRuleRequest |
setRuleName(String ruleName) |
ModifySchedulerRuleRequest |
setRules(String rules) |
ModifySchedulerRuleRequest |
setRuleType(Integer ruleType) |
@NameInMap(value="Param") public String param
The details of the CDN interaction rule. This parameter is a JSON string. The string contains the following fields:
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. The ParamData parameter 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 that you want to modify.
This parameter is required.
example:testrule
@NameInMap(value="RuleType") public Integer ruleType
The type of the scheduling 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 ModifySchedulerRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic ModifySchedulerRuleRequest setParam(String param)
public String getParam()
public ModifySchedulerRuleRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public ModifySchedulerRuleRequest setRuleName(String ruleName)
public String getRuleName()
public ModifySchedulerRuleRequest setRuleType(Integer ruleType)
public Integer getRuleType()
public ModifySchedulerRuleRequest setRules(String rules)
public String getRules()
Copyright © 2026. All rights reserved.