public class ProtocolPort extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Long |
getNodePort()
Get 主机端口
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getPort()
Get 服务端口
|
String |
getProtocol()
Get TCP UDP
|
Long |
getTargetPort()
Get 容器端口
|
void |
setNodePort(Long NodePort)
Set 主机端口
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setPort(Long Port)
Set 服务端口
|
void |
setProtocol(String Protocol)
Set TCP UDP
|
void |
setTargetPort(Long TargetPort)
Set 容器端口
|
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 ProtocolPort()
public ProtocolPort(ProtocolPort source)
public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- TCP UDPpublic Long getPort()
public void setPort(Long Port)
Port
- 服务端口public Long getTargetPort()
public void setTargetPort(Long TargetPort)
TargetPort
- 容器端口public Long getNodePort()
public void setNodePort(Long NodePort)
NodePort
- 主机端口
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2021. All rights reserved.