Class V1Endpoint

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") 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(@Nonnull List<String> addresses)
    • addAddressesItem

      public V1Endpoint addAddressesItem(String addressesItem)
    • getAddresses

      @Nonnull public List<String> getAddresses()
      addresses of this endpoint. For EndpointSlices of addressType \"IPv4\" or \"IPv6\", the values are IP addresses in canonical form. The syntax and semantics of other addressType values are not defined. This must contain at least one address but no more than 100. EndpointSlices generated by the EndpointSlice controller will always have exactly 1 address. No semantics are defined for additional addresses beyond the first, and kube-proxy does not look at them.
      Returns:
      addresses
    • setAddresses

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

      public V1Endpoint conditions(@Nullable V1EndpointConditions conditions)
    • getConditions

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

      public void setConditions(@Nullable V1EndpointConditions conditions)
    • deprecatedTopology

      public V1Endpoint deprecatedTopology(@Nullable 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(@Nullable Map<String,String> deprecatedTopology)
    • hints

      public V1Endpoint hints(@Nullable V1EndpointHints hints)
    • getHints

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

      public void setHints(@Nullable V1EndpointHints hints)
    • hostname

      public V1Endpoint hostname(@Nullable 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(@Nullable String hostname)
    • nodeName

      public V1Endpoint nodeName(@Nullable 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(@Nullable String nodeName)
    • targetRef

      public V1Endpoint targetRef(@Nullable V1ObjectReference targetRef)
    • getTargetRef

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

      public void setTargetRef(@Nullable V1ObjectReference targetRef)
    • zone

      public V1Endpoint zone(@Nullable String zone)
    • getZone

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

      public void setZone(@Nullable 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1Endpoint
    • fromJson

      public static V1Endpoint fromJson(String jsonString) throws IOException
      Create an instance of V1Endpoint given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1Endpoint
      Throws:
      IOException - if the JSON string is invalid with respect to V1Endpoint
    • toJson

      public String toJson()
      Convert an instance of V1Endpoint to an JSON string
      Returns:
      JSON string