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 网络策略方向,分为FROM和TO
|
NetworkPeer[] |
getPeer()
Get 网络策略策略对象
开启待确认:PublishedNoConfirm
开启已确认:PublishedConfirmed
关闭中:unPublishing
开启中:Publishing
待开启:unPublishEdit
注意:此字段可能返回 null,表示取不到有效值。
|
NetworkPorts[] |
getPorts()
Get 网络策略策略端口
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDirection(String Direction)
Set 网络策略方向,分为FROM和TO
|
void |
setPeer(NetworkPeer[] Peer)
Set 网络策略策略对象
开启待确认:PublishedNoConfirm
开启已确认:PublishedConfirmed
关闭中:unPublishing
开启中:Publishing
待开启:unPublishEdit
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setPorts(NetworkPorts[] Ports)
Set 网络策略策略端口
注意:此字段可能返回 null,表示取不到有效值。
|
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
- 网络策略方向,分为FROM和TOpublic NetworkPorts[] getPorts()
public void setPorts(NetworkPorts[] Ports)
Ports
- 网络策略策略端口
注意:此字段可能返回 null,表示取不到有效值。public NetworkPeer[] getPeer()
public void setPeer(NetworkPeer[] Peer)
Peer
- 网络策略策略对象
开启待确认:PublishedNoConfirm
开启已确认:PublishedConfirmed
关闭中:unPublishing
开启中:Publishing
待开启:unPublishEdit
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2023. All rights reserved.