public class SecurityPolicyRuleIn extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
SecurityPolicyRuleIn()  | 
SecurityPolicyRuleIn(SecurityPolicyRuleIn 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 | 
getAction()
Get Policy: Allow (ACCEPT) or reject (DROP). 
 | 
String | 
getAliasName()
Get Rule alias 
 | 
String | 
getDestPortRange()
Get Target port. 
 | 
String | 
getProtocol()
Get Protocol: TCP or UDP. 
 | 
String | 
getSourceCidr()
Get Source IP or IP range of the request. 
 | 
void | 
setAction(String Action)
Set Policy: Allow (ACCEPT) or reject (DROP). 
 | 
void | 
setAliasName(String AliasName)
Set Rule alias 
 | 
void | 
setDestPortRange(String DestPortRange)
Set Target port. 
 | 
void | 
setProtocol(String Protocol)
Set Protocol: TCP or UDP. 
 | 
void | 
setSourceCidr(String SourceCidr)
Set Source IP or IP range of the request. 
 | 
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 SecurityPolicyRuleIn()
public SecurityPolicyRuleIn(SecurityPolicyRuleIn source)
public String getSourceCidr()
public void setSourceCidr(String SourceCidr)
SourceCidr - Source IP or IP range of the request.public String getAction()
public void setAction(String Action)
Action - Policy: Allow (ACCEPT) or reject (DROP).public String getAliasName()
public void setAliasName(String AliasName)
AliasName - Rule aliaspublic String getProtocol()
public void setProtocol(String Protocol)
Protocol - Protocol: TCP or UDP. ALL indicates all protocols.public String getDestPortRange()
public void setDestPortRange(String DestPortRange)
DestPortRange - Target port. Formatting examples:
Single port: 80
Multiple ports: 80, 443
Consecutive ports: 3306-20000
All ports: ALLCopyright © 2025. All rights reserved.