Class V1ServicePort
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ServicePort
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ServicePort
extends Object
ServicePort contains information on service's port.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappProtocol
(String appProtocol) Set appProtocol in a chainable fashion.boolean
The application protocol for this port.getName()
The name of this port within the service.The port on each node on which this service is exposed when type is NodePort or LoadBalancer.getPort()
The port that will be exposed by this service.The IP protocol for this port.IntOrString is a type that can hold an int32 or a string.int
hashCode()
Set name in a chainable fashion.Set nodePort in a chainable fashion.Set port in a chainable fashion.Set protocol in a chainable fashion.void
setAppProtocol
(String appProtocol) Set the appProtocol property valuevoid
Set the name property valuevoid
setNodePort
(Integer nodePort) Set the nodePort property valuevoid
Set the port property valuevoid
setProtocol
(String protocol) Set the protocol property valuevoid
setTargetPort
(String targetPort) Set the targetPort property valuetargetPort
(String targetPort) Set targetPort in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_APP_PROTOCOL
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_NODE_PORT
- See Also:
-
JSON_PROPERTY_PORT
- See Also:
-
JSON_PROPERTY_PROTOCOL
- See Also:
-
JSON_PROPERTY_TARGET_PORT
- See Also:
-
-
Constructor Details
-
V1ServicePort
-
-
Method Details
-
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 https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.- Returns:
- the appProtocol property value
-
setAppProtocol
Set the appProtocol property value -
appProtocol
Set appProtocol in a chainable fashion.- Returns:
- The same instance of V1ServicePort for chaining.
-
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:
- the name property value
-
setName
Set the name property value -
name
Set name in a chainable fashion.- Returns:
- The same instance of V1ServicePort for chaining.
-
getNodePort
The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport- Returns:
- the nodePort property value
-
setNodePort
Set the nodePort property value -
nodePort
Set nodePort in a chainable fashion.- Returns:
- The same instance of V1ServicePort for chaining.
-
getPort
The port that will be exposed by this service.- Returns:
- the port property value
-
setPort
Set the port property value -
port
Set port in a chainable fashion.- Returns:
- The same instance of V1ServicePort for chaining.
-
getProtocol
The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.- Returns:
- the protocol property value
-
setProtocol
Set the protocol property value -
protocol
Set protocol in a chainable fashion.- Returns:
- The same instance of V1ServicePort for chaining.
-
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:
- the targetPort property value
-
setTargetPort
Set the targetPort property value -
targetPort
Set targetPort in a chainable fashion.- Returns:
- The same instance of V1ServicePort for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-