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)
> You can call the [DescribeSchedulerRules](~~157481~~) operation to query the names of all scheduling rules.
public SwitchSchedulerRuleRequest.Builder ruleType(Integer ruleType)
* **2**: tiered protection rule * **3**: network acceleration rule * **5**: Alibaba Cloud CDN (CDN) interaction rule * **6**: cloud service interaction rule
public SwitchSchedulerRuleRequest.Builder switchData(String switchData)
* **Value**: required. The IP address of the associated resource. Data type: string. * **State**: required. The operation type. Data type: integer. Valid values: * **0**: switches service traffic from the associated resource to your Anti-DDoS Pro or Anti-DDoS Premium instance for scrubbing. * **1**: switches service traffic back to the associated cloud resource. * **Interval**: optional. The waiting time that is required before the service traffic is switched back. Unit: minutes. Data type: integer. Usage notes: * If the **State** parameter is set to **0**, you must set this parameter to \*\*-1\*\*. Otherwise, the call fails. * If the **State** parameter is set to **1**, you do not need to set this parameter.
public SwitchSchedulerRuleRequest build()
Copyright © 2023. All rights reserved.