public class CreateDDoSPolicyRequest extends AbstractModel
Constructor and Description |
---|
CreateDDoSPolicyRequest() |
CreateDDoSPolicyRequest(CreateDDoSPolicyRequest 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 |
---|---|
String |
getBusiness()
Get Anti-DDoS service type.
|
DDoSPolicyDropOption[] |
getDropOptions()
Get Protocol disablement, which must be entered, and the array length must be 1
|
IpBlackWhite[] |
getIpAllowDenys()
Get Request source IP blocklist/allowlist, which should be an empty array if there are no blocked or allowed IPs.
|
String |
getName()
Get Policy name
|
DDoSPolicyPacketFilter[] |
getPacketFilters()
Get Packet filter.
|
DDoSPolicyPortLimit[] |
getPortLimits()
Get Ports to be closed.
|
WaterPrintPolicy[] |
getWaterPrint()
Get Watermarking policy parameters.
|
void |
setBusiness(String Business)
Set Anti-DDoS service type.
|
void |
setDropOptions(DDoSPolicyDropOption[] DropOptions)
Set Protocol disablement, which must be entered, and the array length must be 1
|
void |
setIpAllowDenys(IpBlackWhite[] IpAllowDenys)
Set Request source IP blocklist/allowlist, which should be an empty array if there are no blocked or allowed IPs.
|
void |
setName(String Name)
Set Policy name
|
void |
setPacketFilters(DDoSPolicyPacketFilter[] PacketFilters)
Set Packet filter.
|
void |
setPortLimits(DDoSPolicyPortLimit[] PortLimits)
Set Ports to be closed.
|
void |
setWaterPrint(WaterPrintPolicy[] WaterPrint)
Set Watermarking policy parameters.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateDDoSPolicyRequest()
public CreateDDoSPolicyRequest(CreateDDoSPolicyRequest source)
public String getBusiness()
public void setBusiness(String Business)
Business
- Anti-DDoS service type. `bgpip`: Anti-DDoS Advanced; `bgp`: Anti-DDoS Pro (single IP); `bgp-multip`: Anti-DDoS Pro (multi-IP), `net`: Anti-DDoS Ultimatepublic DDoSPolicyDropOption[] getDropOptions()
public void setDropOptions(DDoSPolicyDropOption[] DropOptions)
DropOptions
- Protocol disablement, which must be entered, and the array length must be 1public String getName()
public void setName(String Name)
Name
- Policy namepublic DDoSPolicyPortLimit[] getPortLimits()
public void setPortLimits(DDoSPolicyPortLimit[] PortLimits)
PortLimits
- Ports to be closed. If no ports are to be closed, enter an empty arraypublic IpBlackWhite[] getIpAllowDenys()
public void setIpAllowDenys(IpBlackWhite[] IpAllowDenys)
IpAllowDenys
- Request source IP blocklist/allowlist, which should be an empty array if there are no blocked or allowed IPs.public DDoSPolicyPacketFilter[] getPacketFilters()
public void setPacketFilters(DDoSPolicyPacketFilter[] PacketFilters)
PacketFilters
- Packet filter. Enter an empty array if there are no packets to filterpublic WaterPrintPolicy[] getWaterPrint()
public void setWaterPrint(WaterPrintPolicy[] WaterPrint)
WaterPrint
- Watermarking policy parameters. Enter an empty array if the watermarking feature is not enabled. Only one watermarking policy can be passed in (that is, the size of the array cannot exceed 1)Copyright © 2023. All rights reserved.