Class PortMapping
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.tem.v20201221.models.PortMapping
-
public class PortMapping extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description PortMapping()PortMapping(PortMapping 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 LonggetPort()Get 端口StringgetProtocol()Get 协议栈 TCP/UDPLonggetTargetPort()Get 映射端口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
-
PortMapping
public PortMapping()
-
PortMapping
public PortMapping(PortMapping 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
-
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- 映射端口
-
getProtocol
public String getProtocol()
Get 协议栈 TCP/UDP- Returns:
- Protocol 协议栈 TCP/UDP
-
setProtocol
public void setProtocol(String Protocol)
Set 协议栈 TCP/UDP- Parameters:
Protocol- 协议栈 TCP/UDP
-
-