Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1ServicePort
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1ServicePort
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1ServicePort extends Object
ServicePort contains information on service's port.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_APP_PROTOCOLstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NODE_PORTstatic StringJSON_PROPERTY_PORTstatic StringJSON_PROPERTY_PROTOCOLstatic StringJSON_PROPERTY_TARGET_PORT
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1ServicePort()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IoK8sApiCoreV1ServicePortappProtocol(String appProtocol)booleanequals(Object o)StringgetAppProtocol()The application protocol for this port.StringgetName()The name of this port within the service.IntegergetNodePort()The port on each node on which this service is exposed when type=NodePort or LoadBalancer.IntegergetPort()The port that will be exposed by this service.StringgetProtocol()The IP protocol for this port.StringgetTargetPort()IntOrString is a type that can hold an int32 or a string.inthashCode()IoK8sApiCoreV1ServicePortname(String name)IoK8sApiCoreV1ServicePortnodePort(Integer nodePort)IoK8sApiCoreV1ServicePortport(Integer port)IoK8sApiCoreV1ServicePortprotocol(String protocol)voidsetAppProtocol(String appProtocol)voidsetName(String name)voidsetNodePort(Integer nodePort)voidsetPort(Integer port)voidsetProtocol(String protocol)voidsetTargetPort(String targetPort)IoK8sApiCoreV1ServicePorttargetPort(String targetPort)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_APP_PROTOCOL
public static final String JSON_PROPERTY_APP_PROTOCOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NODE_PORT
public static final String JSON_PROPERTY_NODE_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PORT
public static final String JSON_PROPERTY_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTOCOL
public static final String JSON_PROPERTY_PROTOCOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TARGET_PORT
public static final String JSON_PROPERTY_TARGET_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
appProtocol
public IoK8sApiCoreV1ServicePort appProtocol(String appProtocol)
-
getAppProtocol
@Nullable public String getAppProtocol()
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. Field can be enabled with ServiceAppProtocol feature gate.- Returns:
- appProtocol
-
setAppProtocol
public void setAppProtocol(String appProtocol)
-
name
public IoK8sApiCoreV1ServicePort name(String name)
-
getName
@Nullable public String getName()
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.- Returns:
- name
-
setName
public void setName(String name)
-
nodePort
public IoK8sApiCoreV1ServicePort nodePort(Integer nodePort)
-
getNodePort
@Nullable public 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, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport- Returns:
- nodePort
-
setNodePort
public void setNodePort(Integer nodePort)
-
port
public IoK8sApiCoreV1ServicePort port(Integer port)
-
getPort
public Integer getPort()
The port that will be exposed by this service.- Returns:
- port
-
setPort
public void setPort(Integer port)
-
protocol
public IoK8sApiCoreV1ServicePort protocol(String protocol)
-
getProtocol
@Nullable public String getProtocol()
The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.- Returns:
- protocol
-
setProtocol
public void setProtocol(String protocol)
-
targetPort
public IoK8sApiCoreV1ServicePort targetPort(String targetPort)
-
getTargetPort
@Nullable public String getTargetPort()
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.- Returns:
- targetPort
-
setTargetPort
public void setTargetPort(String targetPort)
-
-