@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-05-06T16:45:00.555Z[Etc/UTC]") public class V1ServicePort extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_APP_PROTOCOL |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_NODE_PORT |
static String |
SERIALIZED_NAME_PORT |
static String |
SERIALIZED_NAME_PROTOCOL |
static String |
SERIALIZED_NAME_TARGET_PORT |
Constructor and Description |
---|
V1ServicePort() |
Modifier and Type | Method and Description |
---|---|
V1ServicePort |
appProtocol(String appProtocol) |
boolean |
equals(Object o) |
String |
getAppProtocol()
The application protocol for this port.
|
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 is NodePort or LoadBalancer.
|
Integer |
getPort()
The port that will be exposed by this service.
|
String |
getProtocol()
The IP protocol for this port.
|
IntOrString |
getTargetPort()
IntOrString is a type that can hold an int32 or a string.
|
int |
hashCode() |
V1ServicePort |
name(String name) |
V1ServicePort |
nodePort(Integer nodePort) |
V1ServicePort |
port(Integer port) |
V1ServicePort |
protocol(String protocol) |
void |
setAppProtocol(String appProtocol) |
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 static final String SERIALIZED_NAME_APP_PROTOCOL
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NODE_PORT
public static final String SERIALIZED_NAME_PORT
public static final String SERIALIZED_NAME_PROTOCOL
public static final String SERIALIZED_NAME_TARGET_PORT
public V1ServicePort appProtocol(String appProtocol)
@Nullable public String getAppProtocol()
public void setAppProtocol(String appProtocol)
public V1ServicePort name(String name)
@Nullable public String getName()
public void setName(String name)
public V1ServicePort nodePort(Integer nodePort)
@Nullable 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)
@Nullable public String getProtocol()
public void setProtocol(String protocol)
public V1ServicePort targetPort(IntOrString targetPort)
@Nullable public IntOrString getTargetPort()
public void setTargetPort(IntOrString targetPort)
Copyright © 2022. All rights reserved.