Class V1NodeAddress

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1NodeAddress extends Object
NodeAddress contains information for the node's address.
  • Field Details

  • Constructor Details

    • V1NodeAddress

      public V1NodeAddress()
  • Method Details

    • address

      public V1NodeAddress address(String address)
    • getAddress

      @Nonnull public String getAddress()
      The node address.
      Returns:
      address
    • setAddress

      public void setAddress(String address)
    • type

      public V1NodeAddress type(String type)
    • getType

      @Nonnull public String getType()
      Node address type, one of Hostname, ExternalIP or InternalIP.
      Returns:
      type
    • setType

      public void setType(String type)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1NodeAddress
    • fromJson

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

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