@Generated(value="org.jsonschema2pojo") public class ServicePort extends Object implements KubernetesResource
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() |
Integer |
getNodePort() |
Integer |
getPort() |
String |
getProtocol() |
IntOrString |
getTargetPort() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setName(String name) |
void |
setNodePort(Integer nodePort) |
void |
setPort(Integer port) |
void |
setProtocol(String protocol) |
void |
setTargetPort(IntOrString targetPort) |
public ServicePort()
public ServicePort(String name, Integer nodePort, Integer port, String protocol, IntOrString targetPort)
protocol
- port
- name
- nodePort
- targetPort
- 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–2018 Red Hat. All rights reserved.