Class V1alpha1ServerStorageVersion

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha1ServerStorageVersion extends Object
An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.
  • Field Details

  • Constructor Details

    • V1alpha1ServerStorageVersion

      public V1alpha1ServerStorageVersion()
  • Method Details

    • apiServerID

      public V1alpha1ServerStorageVersion apiServerID(@Nonnull String apiServerID)
    • getApiServerID

      @Nonnull public String getApiServerID()
      apiServerID is the ID of the reporting API server.
      Returns:
      apiServerID
    • setApiServerID

      public void setApiServerID(@Nonnull String apiServerID)
    • decodableVersions

      public V1alpha1ServerStorageVersion decodableVersions(@Nonnull List<String> decodableVersions)
    • addDecodableVersionsItem

      public V1alpha1ServerStorageVersion addDecodableVersionsItem(String decodableVersionsItem)
    • getDecodableVersions

      @Nonnull public List<String> getDecodableVersions()
      decodableVersions are the encoding versions the API server can handle to decode. The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
      Returns:
      decodableVersions
    • setDecodableVersions

      public void setDecodableVersions(@Nonnull List<String> decodableVersions)
    • encodingVersion

      public V1alpha1ServerStorageVersion encodingVersion(@Nonnull String encodingVersion)
    • getEncodingVersion

      @Nonnull public String getEncodingVersion()
      encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd).
      Returns:
      encodingVersion
    • setEncodingVersion

      public void setEncodingVersion(@Nonnull String encodingVersion)
    • servedVersions

      public V1alpha1ServerStorageVersion servedVersions(@Nullable List<String> servedVersions)
    • addServedVersionsItem

      public V1alpha1ServerStorageVersion addServedVersionsItem(String servedVersionsItem)
    • getServedVersions

      @Nullable public List<String> getServedVersions()
      servedVersions lists all versions the API server can serve. DecodableVersions must include all ServedVersions.
      Returns:
      servedVersions
    • setServedVersions

      public void setServedVersions(@Nullable List<String> servedVersions)
    • 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 V1alpha1ServerStorageVersion
    • fromJson

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

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