public class NetworkCustomPolicy extends AbstractModel
Constructor and Description |
---|
NetworkCustomPolicy() |
NetworkCustomPolicy(NetworkCustomPolicy 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 |
getDirection()
Get Network policy direction.
|
NetworkPeer[] |
getPeer()
Get Network policy object
`PublishedNoConfirm`: Enabled and to be confirmed.
|
NetworkPorts[] |
getPorts()
Get Network policy port
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setDirection(String Direction)
Set Network policy direction.
|
void |
setPeer(NetworkPeer[] Peer)
Set Network policy object
`PublishedNoConfirm`: Enabled and to be confirmed.
|
void |
setPorts(NetworkPorts[] Ports)
Set Network policy port
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 NetworkCustomPolicy()
public NetworkCustomPolicy(NetworkCustomPolicy source)
public String getDirection()
public void setDirection(String Direction)
Direction
- Network policy direction. Valid values: `FROM`, `TO`.public NetworkPorts[] getPorts()
public void setPorts(NetworkPorts[] Ports)
Ports
- Network policy port
Note: This field may return null, indicating that no valid values can be obtained.public NetworkPeer[] getPeer()
public void setPeer(NetworkPeer[] Peer)
Peer
- Network policy object
`PublishedNoConfirm`: Enabled and to be confirmed.
`PublishedConfirmed`: Enabled and confirmed.
`unPublishing`: Disabled.
`Publishing`: Enabled.
`unPublishEdit`: To be enabled.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.