public class DDoSSpeedLimitConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
DDoSSpeedLimitConfig() |
DDoSSpeedLimitConfig(DDoSSpeedLimitConfig 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 |
getDstPortList()
Get Port range list, which contains up to 8 ranges.
|
PortSegment[] |
getDstPortScopes()
Get This field is replaced with a new field DstPortList.
|
String |
getId()
Get
|
Long |
getMode()
Get Rate limit mode.
|
String |
getProtocolList()
Get IP protocol number.
|
SpeedValue[] |
getSpeedValues()
Get Rate limit value.
|
void |
setDstPortList(String DstPortList)
Set Port range list, which contains up to 8 ranges.
|
void |
setDstPortScopes(PortSegment[] DstPortScopes)
Set This field is replaced with a new field DstPortList.
|
void |
setId(String Id)
Set
|
void |
setMode(Long Mode)
Set Rate limit mode.
|
void |
setProtocolList(String ProtocolList)
Set IP protocol number.
|
void |
setSpeedValues(SpeedValue[] SpeedValues)
Set Rate limit value.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DDoSSpeedLimitConfig()
public DDoSSpeedLimitConfig(DDoSSpeedLimitConfig source)
public Long getMode()
public void setMode(Long Mode)
Mode
- Rate limit mode. Valid values:
`1`: rate limit based on the real server IP
`2`: rate limit based on the destination port
]public SpeedValue[] getSpeedValues()
public void setSpeedValues(SpeedValue[] SpeedValues)
SpeedValues
- Rate limit value. This field contains at least one valid rate limit type. Note that only up to one value of each type is supported.public PortSegment[] getDstPortScopes()
public void setDstPortScopes(PortSegment[] DstPortScopes)
DstPortScopes
- This field is replaced with a new field DstPortList.public String getId()
public void setId(String Id)
Id
- public String getProtocolList()
public void setProtocolList(String ProtocolList)
ProtocolList
- IP protocol number. Valid values:
`ALL`: all protocols
`TCP`: TCP protocol
`UDP`: UDP protocol
`SMP`: SMP protocol
`1;2–100`: user-defined protocol with up to 8 ranges
]
Note: For custom protocol ranges, only protocol number is supported. Multiple ranges are separated by ";". If the value is `ALL`, any other protocol or protocol number should be excluded.public String getDstPortList()
public void setDstPortList(String DstPortList)
DstPortList
- Port range list, which contains up to 8 ranges. Use ";" to separate multiple ports and "–" to indicate a range of ports, as described in the following formats: `0–65535`, `80;443;1000–2000`.Copyright © 2024. All rights reserved.