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 Details

  • Constructor Details

    • V1Endpoint

      public V1Endpoint(List<String> addresses)
  • Method Details

    • getAddresses

      public List<String> 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

      public void setAddresses(List<String> addresses)
      Set the addresses property value
    • addresses

      public V1Endpoint addresses(List<String> addresses)
      Set addresses in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • addaddressesItem

      public V1Endpoint addaddressesItem(String addressesItem)
      Add an item to the addresses property in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • getConditions

      public V1EndpointConditions getConditions()
      Returns:
      the conditions property value
    • setConditions

      public void setConditions(V1EndpointConditions conditions)
      Set the conditions property value
    • conditions

      public V1Endpoint conditions(V1EndpointConditions conditions)
      Set conditions in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • getDeprecatedTopology

      public Map<String,String> 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

      public void setDeprecatedTopology(Map<String,String> deprecatedTopology)
      Set the deprecatedTopology property value
    • deprecatedTopology

      public V1Endpoint deprecatedTopology(Map<String,String> deprecatedTopology)
      Set deprecatedTopology in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • putdeprecatedTopologyItem

      public V1Endpoint putdeprecatedTopologyItem(String key, String deprecatedTopologyItem)
      Set the value for the key for the deprecatedTopology map property in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • getHints

      public V1EndpointHints getHints()
      Returns:
      the hints property value
    • setHints

      public void setHints(V1EndpointHints hints)
      Set the hints property value
    • hints

      public V1Endpoint hints(V1EndpointHints hints)
      Set hints in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • getHostname

      public String 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

      public void setHostname(String hostname)
      Set the hostname property value
    • hostname

      public V1Endpoint hostname(String hostname)
      Set hostname in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • getNodeName

      public String 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

      public void setNodeName(String nodeName)
      Set the nodeName property value
    • nodeName

      public V1Endpoint nodeName(String nodeName)
      Set nodeName in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • getTargetRef

      public V1ObjectReference getTargetRef()
      Returns:
      the targetRef property value
    • setTargetRef

      public void setTargetRef(V1ObjectReference targetRef)
      Set the targetRef property value
    • targetRef

      public V1Endpoint targetRef(V1ObjectReference targetRef)
      Set targetRef in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • getZone

      public String getZone()
      zone is the name of the Zone this endpoint exists in.
      Returns:
      the zone property value
    • setZone

      public void setZone(String zone)
      Set the zone property value
    • zone

      public V1Endpoint zone(String zone)
      Set zone in a chainable fashion.
      Returns:
      The same instance of V1Endpoint for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object