public class V1ContainerPort extends Object
Constructor and Description |
---|
V1ContainerPort() |
Modifier and Type | Method and Description |
---|---|
V1ContainerPort |
containerPort(Integer containerPort) |
boolean |
equals(Object o) |
Integer |
getContainerPort()
Number of port to expose on the pod's IP address.
|
String |
getHostIP()
What host IP to bind the external port to.
|
Integer |
getHostPort()
Number of port to expose on the host.
|
String |
getName()
If specified, this must be an IANA_SVC_NAME and unique within the pod.
|
String |
getProtocol()
Protocol for port.
|
int |
hashCode() |
V1ContainerPort |
hostIP(String hostIP) |
V1ContainerPort |
hostPort(Integer hostPort) |
V1ContainerPort |
name(String name) |
V1ContainerPort |
protocol(String protocol) |
void |
setContainerPort(Integer containerPort) |
void |
setHostIP(String hostIP) |
void |
setHostPort(Integer hostPort) |
void |
setName(String name) |
void |
setProtocol(String protocol) |
String |
toString() |
public V1ContainerPort containerPort(Integer containerPort)
public Integer getContainerPort()
public void setContainerPort(Integer containerPort)
public V1ContainerPort hostIP(String hostIP)
public String getHostIP()
public void setHostIP(String hostIP)
public V1ContainerPort hostPort(Integer hostPort)
public Integer getHostPort()
public void setHostPort(Integer hostPort)
public V1ContainerPort name(String name)
public String getName()
public void setName(String name)
public V1ContainerPort protocol(String protocol)
public String getProtocol()
public void setProtocol(String protocol)
Copyright © 2018. All rights reserved.