Class V1Endpoint
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1Endpoint
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1Endpoint
extends Object
Endpoint represents a single logical \"backend\" implementing a service.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddaddressesItem
(String addressesItem) Add an item to the addresses property in a chainable fashion.Set addresses in a chainable fashion.conditions
(V1EndpointConditions conditions) Set conditions in a chainable fashion.deprecatedTopology
(Map<String, @NotNull String> deprecatedTopology) Set deprecatedTopology in a chainable fashion.boolean
addresses of this endpoint.deprecatedTopology contains topology information part of the v1beta1 API.getHints()
hostname of this endpoint.nodeName represents the name of the Node hosting this endpoint.getZone()
zone is the name of the Zone this endpoint exists in.int
hashCode()
hints
(V1EndpointHints hints) Set hints in a chainable fashion.Set hostname in a chainable fashion.Set nodeName in a chainable fashion.putdeprecatedTopologyItem
(String key, String deprecatedTopologyItem) Set the value for the key for the deprecatedTopology map property in a chainable fashion.void
setAddresses
(List<@NotNull String> addresses) Set the addresses property valuevoid
setConditions
(V1EndpointConditions conditions) Set the conditions property valuevoid
setDeprecatedTopology
(Map<String, @NotNull String> deprecatedTopology) Set the deprecatedTopology property valuevoid
setHints
(V1EndpointHints hints) Set the hints property valuevoid
setHostname
(String hostname) Set the hostname property valuevoid
setNodeName
(String nodeName) Set the nodeName property valuevoid
setTargetRef
(V1ObjectReference targetRef) Set the targetRef property valuevoid
Set the zone property valuetargetRef
(V1ObjectReference targetRef) Set targetRef in a chainable fashion.toString()
Set zone in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_ADDRESSES
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_DEPRECATED_TOPOLOGY
- See Also:
-
JSON_PROPERTY_HINTS
- See Also:
-
JSON_PROPERTY_HOSTNAME
- See Also:
-
JSON_PROPERTY_NODE_NAME
- See Also:
-
JSON_PROPERTY_TARGET_REF
- See Also:
-
JSON_PROPERTY_ZONE
- See Also:
-
-
Constructor Details
-
V1Endpoint
-
-
Method Details
-
getAddresses
addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267- Returns:
- the addresses property value
-
setAddresses
Set the addresses property value- Parameters:
addresses
- property value to set
-
addresses
Set addresses in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
addaddressesItem
Add an item to the addresses property in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
getConditions
- Returns:
- the conditions property value
-
setConditions
Set the conditions property value- Parameters:
conditions
- property value to set
-
conditions
Set conditions in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
getDeprecatedTopology
deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.- Returns:
- the deprecatedTopology property value
-
setDeprecatedTopology
Set the deprecatedTopology property value- Parameters:
deprecatedTopology
- property value to set
-
deprecatedTopology
Set deprecatedTopology in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
putdeprecatedTopologyItem
Set the value for the key for the deprecatedTopology map property in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
getHints
- Returns:
- the hints property value
-
setHints
Set the hints property value- Parameters:
hints
- property value to set
-
hints
Set hints in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
getHostname
hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.- Returns:
- the hostname property value
-
setHostname
Set the hostname property value- Parameters:
hostname
- property value to set
-
hostname
Set hostname in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
getNodeName
nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.- Returns:
- the nodeName property value
-
setNodeName
Set the nodeName property value- Parameters:
nodeName
- property value to set
-
nodeName
Set nodeName in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
getTargetRef
- Returns:
- the targetRef property value
-
setTargetRef
Set the targetRef property value- Parameters:
targetRef
- property value to set
-
targetRef
Set targetRef in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
getZone
zone is the name of the Zone this endpoint exists in.- Returns:
- the zone property value
-
setZone
Set the zone property value- Parameters:
zone
- property value to set
-
zone
Set zone in a chainable fashion.- Returns:
- The same instance of V1Endpoint for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-