public class V1ServicePort extends Object
Constructor and Description |
---|
V1ServicePort() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
The name of this port within the service.
|
Integer |
getNodePort()
The port on each node on which this service is exposed when type=NodePort or LoadBalancer.
|
Integer |
getPort()
The port that will be exposed by this service.
|
String |
getProtocol()
The IP protocol for this port.
|
IntOrString |
getTargetPort()
Number or name of the port to access on the pods targeted by the service.
|
int |
hashCode() |
V1ServicePort |
name(String name) |
V1ServicePort |
nodePort(Integer nodePort) |
V1ServicePort |
port(Integer port) |
V1ServicePort |
protocol(String protocol) |
void |
setName(String name) |
void |
setNodePort(Integer nodePort) |
void |
setPort(Integer port) |
void |
setProtocol(String protocol) |
void |
setTargetPort(IntOrString targetPort) |
V1ServicePort |
targetPort(IntOrString targetPort) |
String |
toString() |
public V1ServicePort name(String name)
public String getName()
public void setName(String name)
public V1ServicePort nodePort(Integer nodePort)
public Integer getNodePort()
public void setNodePort(Integer nodePort)
public V1ServicePort port(Integer port)
public Integer getPort()
public void setPort(Integer port)
public V1ServicePort protocol(String protocol)
public String getProtocol()
public void setProtocol(String protocol)
public V1ServicePort targetPort(IntOrString targetPort)
public IntOrString getTargetPort()
public void setTargetPort(IntOrString targetPort)
Copyright © 2018. All rights reserved.