Class V1IngressClassSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1IngressClassSpec extends Object
IngressClassSpec provides information about the class of an Ingress.
  • Field Details

  • Constructor Details

    • V1IngressClassSpec

      public V1IngressClassSpec()
  • Method Details

    • controller

      public V1IngressClassSpec controller(String controller)
    • getController

      @Nullable public String getController()
      controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.
      Returns:
      controller
    • setController

      public void setController(String controller)
    • parameters

      public V1IngressClassSpec parameters(V1IngressClassParametersReference parameters)
    • getParameters

      @Nullable public V1IngressClassParametersReference getParameters()
      Get parameters
      Returns:
      parameters
    • setParameters

      public void setParameters(V1IngressClassParametersReference parameters)
    • 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 V1IngressClassSpec
    • fromJson

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

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