Class V1ServerAddressByClientCIDR

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1ServerAddressByClientCIDR extends Object
ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
  • Field Details

  • Constructor Details

    • V1ServerAddressByClientCIDR

      public V1ServerAddressByClientCIDR()
  • Method Details

    • clientCIDR

      public V1ServerAddressByClientCIDR clientCIDR(String clientCIDR)
    • getClientCIDR

      @Nonnull public String getClientCIDR()
      The CIDR with which clients can match their IP to figure out the server address that they should use.
      Returns:
      clientCIDR
    • setClientCIDR

      public void setClientCIDR(String clientCIDR)
    • serverAddress

      public V1ServerAddressByClientCIDR serverAddress(String serverAddress)
    • getServerAddress

      @Nonnull public String getServerAddress()
      Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.
      Returns:
      serverAddress
    • setServerAddress

      public void setServerAddress(String serverAddress)
    • 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 V1ServerAddressByClientCIDR
    • fromJson

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

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