public class DockerContainerPublishPort extends AbstractModel
Constructor and Description |
---|
DockerContainerPublishPort() |
DockerContainerPublishPort(DockerContainerPublishPort 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 |
getContainerPort()
Get Container port
|
Long |
getHostPort()
Get Host port
|
String |
getIp()
Get External IP.
|
String |
getProtocol()
Get The protocol defaults to `tcp`.
|
void |
setContainerPort(Long ContainerPort)
Set Container port
|
void |
setHostPort(Long HostPort)
Set Host port
|
void |
setIp(String Ip)
Set External IP.
|
void |
setProtocol(String Protocol)
Set The protocol defaults to `tcp`.
|
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 DockerContainerPublishPort()
public DockerContainerPublishPort(DockerContainerPublishPort source)
public Long getHostPort()
public void setHostPort(Long HostPort)
HostPort
- Host portpublic Long getContainerPort()
public void setContainerPort(Long ContainerPort)
ContainerPort
- Container portpublic String getIp()
public void setIp(String Ip)
Ip
- External IP. It defaults to 0.0.0.0.
Note: This field may return null, indicating that no valid values can be obtained.public String getProtocol()
public void setProtocol(String Protocol)
Protocol
- The protocol defaults to `tcp`. Valid values: `tcp`, `udp` and `sctp`.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.