public class ScdnSevenLayerRules extends AbstractModel
Constructor and Description |
---|
ScdnSevenLayerRules() |
ScdnSevenLayerRules(ScdnSevenLayerRules 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 |
---|---|
Boolean |
getCaseSensitive()
Get Whether values are case sensitive
|
String |
getLogicOperator()
Get Logical operator, which connects the relation between RuleType and RuleValue.
|
String |
getRuleParam()
Get Matched parameter.
|
String |
getRuleType()
Get Rule types:
`protocol`: protocol.
|
String[] |
getRuleValue()
Get Rule value
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setCaseSensitive(Boolean CaseSensitive)
Set Whether values are case sensitive
|
void |
setLogicOperator(String LogicOperator)
Set Logical operator, which connects the relation between RuleType and RuleValue.
|
void |
setRuleParam(String RuleParam)
Set Matched parameter.
|
void |
setRuleType(String RuleType)
Set Rule types:
`protocol`: protocol.
|
void |
setRuleValue(String[] RuleValue)
Set Rule value
Note: this field may return `null`, indicating that no valid values can be obtained.
|
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 ScdnSevenLayerRules()
public ScdnSevenLayerRules(ScdnSevenLayerRules source)
public Boolean getCaseSensitive()
public void setCaseSensitive(Boolean CaseSensitive)
CaseSensitive
- Whether values are case sensitivepublic String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Rule types:
`protocol`: protocol. Valid values: `HTTP` and `HTTPS`.
`method`: request method. Valid values: `HEAD`, `GET`, `POST`, `PUT`, `OPTIONS`, `TRACE`, `DELETE`, `PATCH` and `CONNECT`.
`all`: domain name. The matching content is `*` and cannot be edited.
`ip`: IP in CIDR format.
`directory`: path starting with a slash (/). You can specify a directory or specific path using up to 128 characters.
`index`: default homepage, which is specified by `/;/index.html` and cannot be edited.
`path`: full path of the file, such as `/acb/test.png`. Wildcard is supported, such as `/abc/*.jpg`.
`file`: file extension, such as `jpg`, `png` and `css`.
`param`: request parameter. The value can contain up to 512 characters.
`referer`: Referer. The value can contain up to 512 characters.
`cookie`: Cookie. The value can contain up to 512 characters.
`user-agent`: User-Agent. The value can contain up to 512 characters.
`head`: custom header. The value can contain up to 512 characters. If the matching content is blank or does not exist, enter the matching parameter directly.public String getLogicOperator()
public void setLogicOperator(String LogicOperator)
LogicOperator
- Logical operator, which connects the relation between RuleType and RuleValue. Valid values:
`exclude`: the rule value is not contained.
`include`: the rule value is contained.
`notequal`: the rule value is not equal to the specified rule type.
`equal`: the rule value is equal to the specified rule type.
`matching`: the rule value matches with the prefix of the specified rule type.
`null`: the rule value is empty or does not exist.public String[] getRuleValue()
public void setRuleValue(String[] RuleValue)
RuleValue
- Rule value
Note: this field may return `null`, indicating that no valid values can be obtained.public String getRuleParam()
public void setRuleParam(String RuleParam)
RuleParam
- Matched parameter. Only request parameters, Cookie, and custom request headers have a value.
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.