Class NetworkCustomPolicy
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tcss.v20201101.models.NetworkCustomPolicy
-
public class NetworkCustomPolicy extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDirection()Get 网络策略方向,分为FROM和TONetworkPeer[]getPeer()Get 网络策略策略对象 开启待确认:PublishedNoConfirm 开启已确认:PublishedConfirmed 关闭中:unPublishing 开启中:Publishing 待开启:unPublishEdit 注意:此字段可能返回 null,表示取不到有效值。NetworkPorts[]getPorts()Get 网络策略策略端口 注意:此字段可能返回 null,表示取不到有效值。voidsetDirection(String Direction)Set 网络策略方向,分为FROM和TOvoidsetPeer(NetworkPeer[] Peer)Set 网络策略策略对象 开启待确认:PublishedNoConfirm 开启已确认:PublishedConfirmed 关闭中:unPublishing 开启中:Publishing 待开启:unPublishEdit 注意:此字段可能返回 null,表示取不到有效值。voidsetPorts(NetworkPorts[] Ports)Set 网络策略策略端口 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
NetworkCustomPolicy
public NetworkCustomPolicy()
-
NetworkCustomPolicy
public 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.
-
-
Method Detail
-
getDirection
public String getDirection()
Get 网络策略方向,分为FROM和TO- Returns:
- Direction 网络策略方向,分为FROM和TO
-
setDirection
public void setDirection(String Direction)
Set 网络策略方向,分为FROM和TO- Parameters:
Direction- 网络策略方向,分为FROM和TO
-
getPorts
public NetworkPorts[] getPorts()
Get 网络策略策略端口 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Ports 网络策略策略端口 注意:此字段可能返回 null,表示取不到有效值。
-
setPorts
public void setPorts(NetworkPorts[] Ports)
Set 网络策略策略端口 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Ports- 网络策略策略端口 注意:此字段可能返回 null,表示取不到有效值。
-
getPeer
public NetworkPeer[] getPeer()
Get 网络策略策略对象 开启待确认:PublishedNoConfirm 开启已确认:PublishedConfirmed 关闭中:unPublishing 开启中:Publishing 待开启:unPublishEdit 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Peer 网络策略策略对象 开启待确认:PublishedNoConfirm 开启已确认:PublishedConfirmed 关闭中:unPublishing 开启中:Publishing 待开启:unPublishEdit 注意:此字段可能返回 null,表示取不到有效值。
-
setPeer
public void setPeer(NetworkPeer[] Peer)
Set 网络策略策略对象 开启待确认:PublishedNoConfirm 开启已确认:PublishedConfirmed 关闭中:unPublishing 开启中:Publishing 待开启:unPublishEdit 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Peer- 网络策略策略对象 开启待确认:PublishedNoConfirm 开启已确认:PublishedConfirmed 关闭中:unPublishing 开启中:Publishing 待开启:unPublishEdit 注意:此字段可能返回 null,表示取不到有效值。
-
-