@Generated(value="org.jsonschema2pojo") public class ServicePort extends Object
Constructor and Description |
---|
ServicePort()
No args constructor for use in serialization
|
ServicePort(String name,
Integer nodePort,
Integer port,
String protocol,
IntOrString targetPort) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
String |
getName()
the name of this port; optional if only one port is defined
|
Integer |
getNodePort()
the port on each node on which this service is exposed when type=NodePort or LoadBalancer; usually assigned by the system; if specified
|
Integer |
getPort()
the port number that is exposed
|
String |
getProtocol()
the protocol used by this port; must be UDP or TCP; TCP if unspecified
|
IntOrString |
getTargetPort() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setName(String name)
the name of this port; optional if only one port is defined
|
void |
setNodePort(Integer nodePort)
the port on each node on which this service is exposed when type=NodePort or LoadBalancer; usually assigned by the system; if specified
|
void |
setPort(Integer port)
the port number that is exposed
|
void |
setProtocol(String protocol)
the protocol used by this port; must be UDP or TCP; TCP if unspecified
|
void |
setTargetPort(IntOrString targetPort) |
public ServicePort()
public ServicePort(String name, Integer nodePort, Integer port, String protocol, IntOrString targetPort)
port
- protocol
- nodePort
- targetPort
- name
- public String getName()
public void setName(String name)
name
- The namepublic Integer getNodePort()
public void setNodePort(Integer nodePort)
nodePort
- The nodePortpublic Integer getPort()
public void setPort(Integer port)
port
- The portpublic String getProtocol()
public void setProtocol(String protocol)
protocol
- The protocolpublic IntOrString getTargetPort()
public void setTargetPort(IntOrString targetPort)
targetPort
- The targetPortCopyright © 2011–2015 Red Hat. All rights reserved.