public class AddNetworkFirewallPolicyDetailRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
AddNetworkFirewallPolicyDetailRequest()  | 
AddNetworkFirewallPolicyDetailRequest(AddNetworkFirewallPolicyDetailRequest 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 | 
getClusterId()
Get Cluster ID 
 | 
NetworkCustomPolicy[] | 
getCustomPolicy()
Get Custom rule 
 | 
String | 
getDescription()
Get Policy description 
 | 
Long | 
getFromPolicyRule()
Get Inbound rule
`1`: Allow all. 
 | 
String | 
getNamespace()
Get Namespace 
 | 
String | 
getPodSelector()
Get Pod selector 
 | 
String | 
getPolicyName()
Get Policy name 
 | 
Long | 
getToPolicyRule()
Get Outbound rule
`1`: Allow all. 
 | 
void | 
setClusterId(String ClusterId)
Set Cluster ID 
 | 
void | 
setCustomPolicy(NetworkCustomPolicy[] CustomPolicy)
Set Custom rule 
 | 
void | 
setDescription(String Description)
Set Policy description 
 | 
void | 
setFromPolicyRule(Long FromPolicyRule)
Set Inbound rule
`1`: Allow all. 
 | 
void | 
setNamespace(String Namespace)
Set Namespace 
 | 
void | 
setPodSelector(String PodSelector)
Set Pod selector 
 | 
void | 
setPolicyName(String PolicyName)
Set Policy name 
 | 
void | 
setToPolicyRule(Long ToPolicyRule)
Set Outbound rule
`1`: Allow all. 
 | 
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 AddNetworkFirewallPolicyDetailRequest()
public AddNetworkFirewallPolicyDetailRequest(AddNetworkFirewallPolicyDetailRequest source)
public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId - Cluster IDpublic String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName - Policy namepublic Long getFromPolicyRule()
public void setFromPolicyRule(Long FromPolicyRule)
FromPolicyRule - Inbound rule
`1`: Allow all.
`2`: Reject all.
`3`: Custom.public Long getToPolicyRule()
public void setToPolicyRule(Long ToPolicyRule)
ToPolicyRule - Outbound rule
`1`: Allow all.
`2`: Reject all.
`3`: Custom.public String getPodSelector()
public void setPodSelector(String PodSelector)
PodSelector - Pod selectorpublic String getNamespace()
public void setNamespace(String Namespace)
Namespace - Namespacepublic String getDescription()
public void setDescription(String Description)
Description - Policy descriptionpublic NetworkCustomPolicy[] getCustomPolicy()
public void setCustomPolicy(NetworkCustomPolicy[] CustomPolicy)
CustomPolicy - Custom ruleCopyright © 2025. All rights reserved.