Class DiscoveryV1EndpointPort
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.DiscoveryV1EndpointPort
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class DiscoveryV1EndpointPort
extends Object
EndpointPort represents a Port used by an EndpointSlice
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappProtocol(String appProtocol) Set appProtocol in a chainable fashion.booleanThe application protocol for this port.getName()name represents the name of this port.getPort()port represents the port number of the endpoint.protocol represents the IP protocol for this port.inthashCode()Set name in a chainable fashion.Set port in a chainable fashion.Set protocol in a chainable fashion.voidsetAppProtocol(String appProtocol) Set the appProtocol property valuevoidSet the name property valuevoidSet the port property valuevoidsetProtocol(String protocol) Set the protocol property valuetoString()
-
Field Details
-
JSON_PROPERTY_APP_PROTOCOL
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PORT
- See Also:
-
JSON_PROPERTY_PROTOCOL
- See Also:
-
-
Constructor Details
-
DiscoveryV1EndpointPort
public DiscoveryV1EndpointPort()
-
-
Method Details
-
getAppProtocol
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.- Returns:
- the appProtocol property value
-
setAppProtocol
Set the appProtocol property value- Parameters:
appProtocol- property value to set
-
appProtocol
Set appProtocol in a chainable fashion.- Returns:
- The same instance of DiscoveryV1EndpointPort for chaining.
-
getName
name represents the name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is derived from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of DiscoveryV1EndpointPort for chaining.
-
getPort
port represents the port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.- Returns:
- the port property value
-
setPort
Set the port property value- Parameters:
port- property value to set
-
port
Set port in a chainable fashion.- Returns:
- The same instance of DiscoveryV1EndpointPort for chaining.
-
getProtocol
protocol represents the IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.- Returns:
- the protocol property value
-
setProtocol
Set the protocol property value- Parameters:
protocol- property value to set
-
protocol
Set protocol in a chainable fashion.- Returns:
- The same instance of DiscoveryV1EndpointPort for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-