@Generated(value="org.jsonschema2pojo") public class ContainerPort extends Object
Constructor and Description |
---|
ContainerPort()
No args constructor for use in serialization
|
ContainerPort(Integer containerPort,
String hostIP,
Integer hostPort,
String name,
String protocol) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
Integer |
getContainerPort()
number of port to expose on the pod's IP address
|
String |
getHostIP()
host IP to bind the port to
|
Integer |
getHostPort()
number of port to expose on the host; most containers do not need this
|
String |
getName()
name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod
|
String |
getProtocol()
protocol for port; must be UDP or TCP; TCP if unspecified
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setContainerPort(Integer containerPort)
number of port to expose on the pod's IP address
|
void |
setHostIP(String hostIP)
host IP to bind the port to
|
void |
setHostPort(Integer hostPort)
number of port to expose on the host; most containers do not need this
|
void |
setName(String name)
name for the port that can be referred to by services; must be an IANA_SVC_NAME and unique within the pod
|
void |
setProtocol(String protocol)
protocol for port; must be UDP or TCP; TCP if unspecified
|
public ContainerPort()
public Integer getContainerPort()
public void setContainerPort(Integer containerPort)
containerPort
- The containerPortpublic String getHostIP()
public void setHostIP(String hostIP)
hostIP
- The hostIPpublic Integer getHostPort()
public void setHostPort(Integer hostPort)
hostPort
- The hostPortpublic String getName()
public void setName(String name)
name
- The namepublic String getProtocol()
public void setProtocol(String protocol)
protocol
- The protocolCopyright © 2011–2015 Red Hat. All rights reserved.