Class V1GroupResource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-01-21T21:30:13.305152Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1GroupResource extends Object
GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types
  • Field Details

  • Constructor Details

    • V1GroupResource

      public V1GroupResource()
  • Method Details

    • group

      public V1GroupResource group(@Nonnull String group)
    • getGroup

      @Nonnull public String getGroup()
      Get group
      Returns:
      group
    • setGroup

      public void setGroup(@Nonnull String group)
    • resource

      public V1GroupResource resource(@Nonnull String resource)
    • getResource

      @Nonnull public String getResource()
      Get resource
      Returns:
      resource
    • setResource

      public void setResource(@Nonnull String resource)
    • 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 V1GroupResource
    • fromJson

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

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