Class V2beta1APIVersionDiscovery

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V2beta1APIVersionDiscovery extends Object
APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
  • Field Details

  • Constructor Details

    • V2beta1APIVersionDiscovery

      public V2beta1APIVersionDiscovery()
  • Method Details

    • version

      public V2beta1APIVersionDiscovery version(@Nonnull String version)
    • getVersion

      @Nonnull public String getVersion()
      version is the name of the version within a group version.
      Returns:
      version
    • setVersion

      public void setVersion(@Nonnull String version)
    • resources

      public V2beta1APIVersionDiscovery resources(@Nullable List<V2beta1APIResourceDiscovery> resources)
    • addResourcesItem

      public V2beta1APIVersionDiscovery addResourcesItem(V2beta1APIResourceDiscovery resourcesItem)
    • getResources

      @Nullable public List<V2beta1APIResourceDiscovery> getResources()
      Get resources
      Returns:
      resources
    • setResources

      public void setResources(@Nullable List<V2beta1APIResourceDiscovery> resources)
    • freshness

      public V2beta1APIVersionDiscovery freshness(@Nullable String freshness)
    • getFreshness

      @Nullable public String getFreshness()
      freshness marks whether a group version's discovery document is up to date.
      Returns:
      freshness
    • setFreshness

      public void setFreshness(@Nullable String freshness)
    • 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 V2beta1APIVersionDiscovery
    • fromJson

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

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