public static final class SwitchSchedulerRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SwitchSchedulerRuleRequest |
build() |
SwitchSchedulerRuleRequest.Builder |
ruleName(String ruleName)
The name of the scheduling rule to manage.
|
SwitchSchedulerRuleRequest.Builder |
ruleType(Integer ruleType)
The type of the scheduling rule.
|
SwitchSchedulerRuleRequest.Builder |
switchData(String switchData)
The configuration that is used to switch service traffic.
|
public SwitchSchedulerRuleRequest.Builder ruleName(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
public SwitchSchedulerRuleRequest.Builder ruleType(Integer ruleType)
The type of the scheduling rule. Valid values:
This parameter is required.
example:6
public SwitchSchedulerRuleRequest.Builder switchData(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 SwitchSchedulerRuleRequest build()
Copyright © 2026. All rights reserved.