Class ProtocolPort
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tsf.v20180326.models.ProtocolPort
-
public class ProtocolPort extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ProtocolPort()ProtocolPort(ProtocolPort 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 LonggetNodePort()Get 主机端口 注意:此字段可能返回 null,表示取不到有效值。LonggetPort()Get 服务端口StringgetProtocol()Get TCP UDPLonggetTargetPort()Get 容器端口voidsetNodePort(Long NodePort)Set 主机端口 注意:此字段可能返回 null,表示取不到有效值。voidsetPort(Long Port)Set 服务端口voidsetProtocol(String Protocol)Set TCP UDPvoidsetTargetPort(Long TargetPort)Set 容器端口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
-
ProtocolPort
public ProtocolPort()
-
ProtocolPort
public ProtocolPort(ProtocolPort 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
-
getProtocol
public String getProtocol()
Get TCP UDP- Returns:
- Protocol TCP UDP
-
setProtocol
public void setProtocol(String Protocol)
Set TCP UDP- Parameters:
Protocol- TCP UDP
-
getPort
public Long getPort()
Get 服务端口- Returns:
- Port 服务端口
-
setPort
public void setPort(Long Port)
Set 服务端口- Parameters:
Port- 服务端口
-
getTargetPort
public Long getTargetPort()
Get 容器端口- Returns:
- TargetPort 容器端口
-
setTargetPort
public void setTargetPort(Long TargetPort)
Set 容器端口- Parameters:
TargetPort- 容器端口
-
getNodePort
public Long getNodePort()
Get 主机端口 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- NodePort 主机端口 注意:此字段可能返回 null,表示取不到有效值。
-
setNodePort
public void setNodePort(Long NodePort)
Set 主机端口 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
NodePort- 主机端口 注意:此字段可能返回 null,表示取不到有效值。
-
-