Class V1EndpointAddress

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1EndpointAddress extends Object
EndpointAddress is a tuple that describes single IP address.
  • Field Details

  • Constructor Details

    • V1EndpointAddress

      public V1EndpointAddress()
  • Method Details

    • hostname

      public V1EndpointAddress hostname(String hostname)
    • getHostname

      @Nullable public String getHostname()
      The Hostname of this endpoint
      Returns:
      hostname
    • setHostname

      public void setHostname(String hostname)
    • ip

      public V1EndpointAddress ip(String ip)
    • getIp

      @Nonnull public String getIp()
      The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).
      Returns:
      ip
    • setIp

      public void setIp(String ip)
    • nodeName

      public V1EndpointAddress nodeName(String nodeName)
    • getNodeName

      @Nullable public String getNodeName()
      Optional: 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 V1EndpointAddress targetRef(V1ObjectReference targetRef)
    • getTargetRef

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

      public void setTargetRef(V1ObjectReference targetRef)
    • 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 V1EndpointAddress
    • fromJson

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

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