Class V1alpha1ServerStorageVersion
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
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) boolean
static V1alpha1ServerStorageVersion
Create an instance of V1alpha1ServerStorageVersion given an JSON stringThe ID of the reporting API server.The API server can decode objects encoded in these versions.The API server encodes the object to this version when persisting it in the backend (e.g., etcd).The API server can serve these versions.int
hashCode()
servedVersions
(List<String> servedVersions) void
setApiServerID
(String apiServerID) void
setDecodableVersions
(List<String> decodableVersions) void
setEncodingVersion
(String encodingVersion) void
setServedVersions
(List<String> servedVersions) toJson()
Convert an instance of V1alpha1ServerStorageVersion to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
The ID of the reporting API server.- Returns:
- apiServerID
-
setApiServerID
-
decodableVersions
-
addDecodableVersionsItem
-
getDecodableVersions
The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.- Returns:
- decodableVersions
-
setDecodableVersions
-
encodingVersion
-
getEncodingVersion
The API server encodes the object to this version when persisting it in the backend (e.g., etcd).- Returns:
- encodingVersion
-
setEncodingVersion
-
servedVersions
-
addServedVersionsItem
-
getServedVersions
The API server can serve these versions. DecodableVersions must include all ServedVersions.- Returns:
- servedVersions
-
setServedVersions
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object 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
-