Class V1GroupVersionKind

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1GroupVersionKind extends Object
GroupVersionKind unambiguously identifies a kind.
  • Field Details

  • Constructor Details

    • V1GroupVersionKind

      public V1GroupVersionKind()
  • Method Details

    • group

      public V1GroupVersionKind group(@Nonnull String group)
    • getGroup

      @Nonnull public String getGroup()
      group is the group part of the GroupVersionKind.
      Returns:
      group
    • setGroup

      public void setGroup(@Nonnull String group)
    • kind

      public V1GroupVersionKind kind(@Nonnull String kind)
    • getKind

      @Nonnull public String getKind()
      kind is the kind part of the GroupVersionKind.
      Returns:
      kind
    • setKind

      public void setKind(@Nonnull String kind)
    • version

      public V1GroupVersionKind version(@Nonnull String version)
    • getVersion

      @Nonnull public String getVersion()
      version is the version part of the GroupVersionKind.
      Returns:
      version
    • setVersion

      public void setVersion(@Nonnull String version)
    • 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 V1GroupVersionKind
    • fromJson

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

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