Class V1alpha1ServerStorageVersion

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha1ServerStorageVersion

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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(String apiServerID, List<@NotNull String> decodableVersions, String encodingVersion)
  • Method Details

    • getApiServerID

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

      public void setApiServerID(String apiServerID)
      Set the apiServerID property value
      Parameters:
      apiServerID - property value to set
    • apiServerID

      public V1alpha1ServerStorageVersion apiServerID(String apiServerID)
      Set apiServerID in a chainable fashion.
      Returns:
      The same instance of V1alpha1ServerStorageVersion for chaining.
    • getDecodableVersions

      public List<@NotNull 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:
      the decodableVersions property value
    • setDecodableVersions

      public void setDecodableVersions(List<@NotNull String> decodableVersions)
      Set the decodableVersions property value
      Parameters:
      decodableVersions - property value to set
    • decodableVersions

      public V1alpha1ServerStorageVersion decodableVersions(List<@NotNull String> decodableVersions)
      Set decodableVersions in a chainable fashion.
      Returns:
      The same instance of V1alpha1ServerStorageVersion for chaining.
    • addDecodableVersionsItem

      public V1alpha1ServerStorageVersion addDecodableVersionsItem(String decodableVersionsItem)
      Add an item to the decodableVersions property in a chainable fashion.
      Returns:
      The same instance of V1alpha1ServerStorageVersion for chaining.
    • getEncodingVersion

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

      public void setEncodingVersion(String encodingVersion)
      Set the encodingVersion property value
      Parameters:
      encodingVersion - property value to set
    • encodingVersion

      public V1alpha1ServerStorageVersion encodingVersion(String encodingVersion)
      Set encodingVersion in a chainable fashion.
      Returns:
      The same instance of V1alpha1ServerStorageVersion for chaining.
    • getServedVersions

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

      public void setServedVersions(List<@NotNull String> servedVersions)
      Set the servedVersions property value
      Parameters:
      servedVersions - property value to set
    • servedVersions

      public V1alpha1ServerStorageVersion servedVersions(List<@NotNull String> servedVersions)
      Set servedVersions in a chainable fashion.
      Returns:
      The same instance of V1alpha1ServerStorageVersion for chaining.
    • addServedVersionsItem

      public V1alpha1ServerStorageVersion addServedVersionsItem(String servedVersionsItem)
      Add an item to the servedVersions property in a chainable fashion.
      Returns:
      The same instance of V1alpha1ServerStorageVersion for chaining.
    • 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