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.
  • Method Details

    • version

      public String version()
      Get the version property: major.minor version of Kubernetes release.
      Returns:
      the version value.
    • capabilities

      public KubernetesVersionCapabilities capabilities()
      Get the capabilities property: Capabilities on this Kubernetes version.
      Returns:
      the capabilities value.
    • isDefault

      public Boolean isDefault()
      Get the isDefault property: Whether this version is default.
      Returns:
      the isDefault value.
    • isPreview

      public Boolean isPreview()
      Get the isPreview property: Whether this version is in preview mode.
      Returns:
      the isPreview value.
    • patchVersions

      public Map<String, KubernetesPatchVersion> patchVersions()
      Get the patchVersions property: Patch versions of Kubernetes release.
      Returns:
      the patchVersions value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KubernetesVersion>
      Throws:
      IOException
    • fromJson

      public static KubernetesVersion fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.