@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-06-19T10:47:33.387Z[Etc/UTC]") public class V1ContainerPort extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_CONTAINER_PORT |
static String |
SERIALIZED_NAME_HOST_I_P |
static String |
SERIALIZED_NAME_HOST_PORT |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_PROTOCOL |
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 static final String SERIALIZED_NAME_CONTAINER_PORT
public static final String SERIALIZED_NAME_HOST_I_P
public static final String SERIALIZED_NAME_HOST_PORT
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_PROTOCOL
public V1ContainerPort containerPort(Integer containerPort)
public Integer getContainerPort()
public void setContainerPort(Integer containerPort)
public V1ContainerPort hostIP(String hostIP)
@Nullable public String getHostIP()
public void setHostIP(String hostIP)
public V1ContainerPort hostPort(Integer hostPort)
@Nullable public Integer getHostPort()
public void setHostPort(Integer hostPort)
public V1ContainerPort name(String name)
@Nullable public String getName()
public void setName(String name)
public V1ContainerPort protocol(String protocol)
@Nullable public String getProtocol()
public void setProtocol(String protocol)
Copyright © 2020. All rights reserved.