Class V1IngressClassParametersReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-04T19:05:53.712211Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1IngressClassParametersReference extends Object
IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.
  • Field Details

  • Constructor Details

    • V1IngressClassParametersReference

      public V1IngressClassParametersReference()
  • Method Details

    • apiGroup

      public V1IngressClassParametersReference apiGroup(String apiGroup)
    • getApiGroup

      @Nullable public String getApiGroup()
      apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
      Returns:
      apiGroup
    • setApiGroup

      public void setApiGroup(String apiGroup)
    • kind

    • getKind

      @Nonnull public String getKind()
      kind is the type of resource being referenced.
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • name

    • getName

      @Nonnull public String getName()
      name is the name of resource being referenced.
      Returns:
      name
    • setName

      public void setName(String name)
    • namespace

      public V1IngressClassParametersReference namespace(String namespace)
    • getNamespace

      @Nullable public String getNamespace()
      namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".
      Returns:
      namespace
    • setNamespace

      public void setNamespace(String namespace)
    • scope

    • getScope

      @Nullable public String getScope()
      scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • 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 V1IngressClassParametersReference
    • fromJson

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

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