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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDecodableVersionsItem(String decodableVersionsItem) addServedVersionsItem(String servedVersionsItem) apiServerID(String apiServerID) decodableVersions(List<String> decodableVersions) encodingVersion(String encodingVersion) booleanstatic V1alpha1ServerStorageVersionCreate an instance of V1alpha1ServerStorageVersion given an JSON stringapiServerID is the ID of the reporting API server.decodableVersions are the encoding versions the API server can handle to decode.encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd).servedVersions lists all versions the API server can serve.inthashCode()servedVersions(List<String> servedVersions) voidsetApiServerID(String apiServerID) voidsetDecodableVersions(List<String> decodableVersions) voidsetEncodingVersion(String encodingVersion) voidsetServedVersions(List<String> servedVersions) toJson()Convert an instance of V1alpha1ServerStorageVersion to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_SERVER_I_D
- See Also:
-
SERIALIZED_NAME_DECODABLE_VERSIONS
- See Also:
-
SERIALIZED_NAME_ENCODING_VERSION
- See Also:
-
SERIALIZED_NAME_SERVED_VERSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha1ServerStorageVersion
public V1alpha1ServerStorageVersion()
-
-
Method Details
-
apiServerID
-
getApiServerID
apiServerID is the ID of the reporting API server.- Returns:
- apiServerID
-
setApiServerID
-
decodableVersions
-
addDecodableVersionsItem
-
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
-
encodingVersion
-
getEncodingVersion
encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd).- Returns:
- encodingVersion
-
setEncodingVersion
-
servedVersions
-
addServedVersionsItem
-
getServedVersions
servedVersions lists all versions the API server can serve. DecodableVersions must include all ServedVersions.- Returns:
- servedVersions
-
setServedVersions
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of V1alpha1ServerStorageVersion to an JSON string- Returns:
- JSON string
-