public class DDoSProtection extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DDoSProtection() | 
| DDoSProtection(DDoSProtection source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| DomainDDoSProtection[] | getDomainDDoSProtections()Get 域名的独立 DDoS 防护配置。在入参场景中:
 当 ProtectionOption 保持为 protect_specified_domains 时:未填写的域名维持原有独立 DDoS 防护配置不变,显式指定的域名按传入参数更新;
 当 ProtectionOption 由 protect_all_domains 切换为 protect_specified_domains 时:若 DomainDDoSProtections 传空,停用站点下全部域名的独立 DDoS 防护;若 DomainDDoSProtections 不为空,参数中指定的域名停用或保持独立 DDoS 防护,其余未列出的域名统一停用独立 DDoS 防护。 | 
| String | getProtectionOption()Get 指定独立 DDoS 的防护范围。取值为:
 protect_all_domains:独立 DDoS 防护对站点内全部域名生效,新接入域名自动开启独立 DDoS 防护,入参为 protect_all_domains 时,入参 DomainDDoSProtections 不作处理;
 protect_specified_domains:仅对指定域名生效,具体范围可通过 DomainDDoSProtection 参数指定。 | 
| DomainDDoSProtection[] | getSharedCNAMEDDoSProtections()Get 共享 CNAME 的独立 DDoS 防护配置。仅作为出参使用。 | 
| void | setDomainDDoSProtections(DomainDDoSProtection[] DomainDDoSProtections)Set 域名的独立 DDoS 防护配置。在入参场景中:
 当 ProtectionOption 保持为 protect_specified_domains 时:未填写的域名维持原有独立 DDoS 防护配置不变,显式指定的域名按传入参数更新;
 当 ProtectionOption 由 protect_all_domains 切换为 protect_specified_domains 时:若 DomainDDoSProtections 传空,停用站点下全部域名的独立 DDoS 防护;若 DomainDDoSProtections 不为空,参数中指定的域名停用或保持独立 DDoS 防护,其余未列出的域名统一停用独立 DDoS 防护。 | 
| void | setProtectionOption(String ProtectionOption)Set 指定独立 DDoS 的防护范围。取值为:
 protect_all_domains:独立 DDoS 防护对站点内全部域名生效,新接入域名自动开启独立 DDoS 防护,入参为 protect_all_domains 时,入参 DomainDDoSProtections 不作处理;
 protect_specified_domains:仅对指定域名生效,具体范围可通过 DomainDDoSProtection 参数指定。 | 
| void | setSharedCNAMEDDoSProtections(DomainDDoSProtection[] SharedCNAMEDDoSProtections)Set 共享 CNAME 的独立 DDoS 防护配置。仅作为出参使用。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic DDoSProtection()
public DDoSProtection(DDoSProtection source)
public String getProtectionOption()
public void setProtectionOption(String ProtectionOption)
ProtectionOption - 指定独立 DDoS 的防护范围。取值为:
public DomainDDoSProtection[] getDomainDDoSProtections()
public void setDomainDDoSProtections(DomainDDoSProtection[] DomainDDoSProtections)
DomainDDoSProtections - 域名的独立 DDoS 防护配置。在入参场景中:
public DomainDDoSProtection[] getSharedCNAMEDDoSProtections()
public void setSharedCNAMEDDoSProtections(DomainDDoSProtection[] SharedCNAMEDDoSProtections)
SharedCNAMEDDoSProtections - 共享 CNAME 的独立 DDoS 防护配置。仅作为出参使用。Copyright © 2025. All rights reserved.