public class PortMapping extends AbstractModel
header, skipSign| Constructor and 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Long | getPort()Get 端口 | 
| String | getProtocol()Get 协议栈 TCP/UDP | 
| String | getServiceName()Get k8s service名称 | 
| Long | getTargetPort()Get 映射端口 | 
| void | setPort(Long Port)Set 端口 | 
| void | setProtocol(String Protocol)Set 协议栈 TCP/UDP | 
| void | setServiceName(String ServiceName)Set k8s service名称 | 
| void | setTargetPort(Long TargetPort)Set 映射端口 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic PortMapping()
public PortMapping(PortMapping source)
public Long getPort()
public void setPort(Long Port)
Port - 端口public Long getTargetPort()
public void setTargetPort(Long TargetPort)
TargetPort - 映射端口public String getProtocol()
public void setProtocol(String Protocol)
Protocol - 协议栈 TCP/UDPpublic String getServiceName()
public void setServiceName(String ServiceName)
ServiceName - k8s service名称Copyright © 2025. All rights reserved.