public class SwitchSchedulerRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
ruleName
The name of the scheduling rule to manage.
|
Integer |
ruleType
The type of the scheduling rule.
|
String |
switchData
The configuration that is used to switch service traffic.
|
| 构造器和说明 |
|---|
SwitchSchedulerRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SwitchSchedulerRuleRequest |
build(Map<String,?> map) |
String |
getRuleName() |
Integer |
getRuleType() |
String |
getSwitchData() |
SwitchSchedulerRuleRequest |
setRuleName(String ruleName) |
SwitchSchedulerRuleRequest |
setRuleType(Integer ruleType) |
SwitchSchedulerRuleRequest |
setSwitchData(String switchData) |
@NameInMap(value="RuleName") public String ruleName
The name of the scheduling rule to manage.
You can call the DescribeSchedulerRules operation to query the names of all scheduling rules.
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:6
@NameInMap(value="SwitchData") public String switchData
The configuration that is used to switch service traffic. This parameter is a string that consists of JSON arrays. Each element in a JSON array is a JSON struct that includes the following parameters:
Value: required. The IP address of the associated resource. Data type: string.
State: required. The operation type. Data type: integer. Valid values:
Interval: optional. The waiting time that is required before the service traffic is switched back. Unit: minutes. Data type: integer. Usage notes:
This parameter is required.
example:[{"Value":"39.104.XX.XX","State":0,"Interval":-1}]
public static SwitchSchedulerRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic SwitchSchedulerRuleRequest setRuleName(String ruleName)
public String getRuleName()
public SwitchSchedulerRuleRequest setRuleType(Integer ruleType)
public Integer getRuleType()
public SwitchSchedulerRuleRequest setSwitchData(String switchData)
public String getSwitchData()
Copyright © 2026. All rights reserved.