Class V1Endpoint

java.lang.Object
io.kubernetes.client.openapi.models.V1Endpoint

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1Endpoint extends Object
Endpoint represents a single logical \"backend\" implementing a service.
  • Field Details

  • Constructor Details

    • V1Endpoint

      public V1Endpoint()
  • Method Details

    • addresses

      public V1Endpoint addresses(List<String> addresses)
    • addAddressesItem

      public V1Endpoint addAddressesItem(String addressesItem)
    • 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:
      addresses
    • setAddresses

      public void setAddresses(List<String> addresses)
    • conditions

      public V1Endpoint conditions(V1EndpointConditions conditions)
    • getConditions

      @Nullable public V1EndpointConditions getConditions()
      Get conditions
      Returns:
      conditions
    • setConditions

      public void setConditions(V1EndpointConditions conditions)
    • deprecatedTopology

      public V1Endpoint deprecatedTopology(Map<String,String> deprecatedTopology)
    • putDeprecatedTopologyItem

      public V1Endpoint putDeprecatedTopologyItem(String key, String deprecatedTopologyItem)
    • getDeprecatedTopology

      @Nullable 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:
      deprecatedTopology
    • setDeprecatedTopology

      public void setDeprecatedTopology(Map<String,String> deprecatedTopology)
    • hints

      public V1Endpoint hints(V1EndpointHints hints)
    • getHints

      @Nullable public V1EndpointHints getHints()
      Get hints
      Returns:
      hints
    • setHints

      public void setHints(V1EndpointHints hints)
    • hostname

      public V1Endpoint hostname(String hostname)
    • getHostname

      @Nullable 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:
      hostname
    • setHostname

      public void setHostname(String hostname)
    • nodeName

      public V1Endpoint nodeName(String nodeName)
    • getNodeName

      @Nullable 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:
      nodeName
    • setNodeName

      public void setNodeName(String nodeName)
    • targetRef

      public V1Endpoint targetRef(V1ObjectReference targetRef)
    • getTargetRef

      @Nullable public V1ObjectReference getTargetRef()
      Get targetRef
      Returns:
      targetRef
    • setTargetRef

      public void setTargetRef(V1ObjectReference targetRef)
    • zone

      public V1Endpoint zone(String zone)
    • getZone

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

      public void setZone(String zone)
    • 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