public static final class CreateSchedulerRuleRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateSchedulerRuleRequest |
build() |
CreateSchedulerRuleRequest.Builder |
param(String param)
The details of the CDN interaction rule.
|
CreateSchedulerRuleRequest.Builder |
regionId(String regionId)
RegionId.
|
CreateSchedulerRuleRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the instance belongs in Resource Management.
|
CreateSchedulerRuleRequest.Builder |
ruleName(String ruleName)
The name of the rule.
|
CreateSchedulerRuleRequest.Builder |
rules(String rules)
The details of the scheduling rule.
|
CreateSchedulerRuleRequest.Builder |
ruleType(Integer ruleType)
The type of the custom defense rule.
|
public CreateSchedulerRuleRequest.Builder regionId(String regionId)
public CreateSchedulerRuleRequest.Builder param(String param)
* **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: * **Domain**: the accelerated domain in CDN. This parameter is required and must be of the string type. * **Cname**: the CNAME that is assigned to the accelerated domain. This parameter is required and must be of the string type. * **AccessQps**: the queries per second (QPS) threshold that is used to switch service traffic to Anti-DDoS Pro or Anti-DDoS Premium. This parameter is required and must be of the integer type. * **UpstreamQps**: the QPS threshold that is used to switch service traffic to CDN. This parameter is optional and must be of the integer type.
public CreateSchedulerRuleRequest.Builder resourceGroupId(String resourceGroupId)
public CreateSchedulerRuleRequest.Builder ruleName(String ruleName)
public CreateSchedulerRuleRequest.Builder ruleType(Integer ruleType)
* **2**: tiered protection * **3**: network acceleration * **5**: CDN interaction * **6**: cloud service interaction
public CreateSchedulerRuleRequest.Builder rules(String rules)
* **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: * **A**: IP address * **CNAME**: domain name * **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: * **1**: the IP address of the Anti-DDoS Pro or Anti-DDoS Premium instance * **2**: the IP address of the interaction resource in the tiered protection scenario * **3**: the IP address that is used to accelerate access in the network acceleration scenario * **5**: the domain name that is configured in Alibaba Cloud CDN (CDN) in the CDN interaction scenario * **6** the IP address of the interaction resource in the cloud service interaction scenario * **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.
public CreateSchedulerRuleRequest build()
Copyright © 2023. All rights reserved.