Class KubernetesVersion
java.lang.Object
com.azure.resourcemanager.containerservice.models.KubernetesVersion
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KubernetesVersion>
public final class KubernetesVersion
extends Object
implements com.azure.json.JsonSerializable<KubernetesVersion>
Kubernetes version profile for given major.minor release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the capabilities property: Capabilities on this Kubernetes version.static KubernetesVersionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KubernetesVersion from the JsonReader.Get the isDefault property: Whether this version is default.Get the isPreview property: Whether this version is in preview mode.Get the patchVersions property: Patch versions of Kubernetes release.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: major.minor version of Kubernetes release.withCapabilities(KubernetesVersionCapabilities capabilities) Set the capabilities property: Capabilities on this Kubernetes version.withIsDefault(Boolean isDefault) Set the isDefault property: Whether this version is default.withIsPreview(Boolean isPreview) Set the isPreview property: Whether this version is in preview mode.withPatchVersions(Map<String, KubernetesPatchVersion> patchVersions) Set the patchVersions property: Patch versions of Kubernetes release.withVersion(String version) Set the version property: major.minor version of Kubernetes release.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KubernetesVersion
public KubernetesVersion()Creates an instance of KubernetesVersion class.
-
-
Method Details
-
version
Get the version property: major.minor version of Kubernetes release.- Returns:
- the version value.
-
withVersion
Set the version property: major.minor version of Kubernetes release.- Parameters:
version- the version value to set.- Returns:
- the KubernetesVersion object itself.
-
capabilities
Get the capabilities property: Capabilities on this Kubernetes version.- Returns:
- the capabilities value.
-
withCapabilities
Set the capabilities property: Capabilities on this Kubernetes version.- Parameters:
capabilities- the capabilities value to set.- Returns:
- the KubernetesVersion object itself.
-
isDefault
Get the isDefault property: Whether this version is default.- Returns:
- the isDefault value.
-
withIsDefault
Set the isDefault property: Whether this version is default.- Parameters:
isDefault- the isDefault value to set.- Returns:
- the KubernetesVersion object itself.
-
isPreview
Get the isPreview property: Whether this version is in preview mode.- Returns:
- the isPreview value.
-
withIsPreview
Set the isPreview property: Whether this version is in preview mode.- Parameters:
isPreview- the isPreview value to set.- Returns:
- the KubernetesVersion object itself.
-
patchVersions
Get the patchVersions property: Patch versions of Kubernetes release.- Returns:
- the patchVersions value.
-
withPatchVersions
Set the patchVersions property: Patch versions of Kubernetes release.- Parameters:
patchVersions- the patchVersions value to set.- Returns:
- the KubernetesVersion object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KubernetesVersion>- Throws:
IOException
-
fromJson
Reads an instance of KubernetesVersion from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KubernetesVersion if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the KubernetesVersion.
-