KubernetesVersion Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.KubernetesVersion

Implements

public final class KubernetesVersion
implements JsonSerializable<KubernetesVersion>

Kubernetes version profile for given major.minor release.

Constructor Summary

Constructor Description
KubernetesVersion()

Creates an instance of KubernetesVersion class.

Method Summary

Modifier and Type Method and Description
KubernetesVersionCapabilities capabilities()

Get the capabilities property: Capabilities on this Kubernetes version.

static KubernetesVersion fromJson(JsonReader jsonReader)

Reads an instance of KubernetesVersion from the JsonReader.

Boolean isDefault()

Get the isDefault property: Whether this version is default.

Boolean isPreview()

Get the isPreview property: Whether this version is in preview mode.

Map<String,KubernetesPatchVersion> patchVersions()

Get the patchVersions property: Patch versions of Kubernetes release.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: major.minor version of Kubernetes release.

KubernetesVersion withCapabilities(KubernetesVersionCapabilities capabilities)

Set the capabilities property: Capabilities on this Kubernetes version.

KubernetesVersion withIsDefault(Boolean isDefault)

Set the isDefault property: Whether this version is default.

KubernetesVersion withIsPreview(Boolean isPreview)

Set the isPreview property: Whether this version is in preview mode.

KubernetesVersion withPatchVersions(Map<String,KubernetesPatchVersion> patchVersions)

Set the patchVersions property: Patch versions of Kubernetes release.

KubernetesVersion withVersion(String version)

Set the version property: major.minor version of Kubernetes release.

Methods inherited from java.lang.Object

Constructor Details

KubernetesVersion

public KubernetesVersion()

Creates an instance of KubernetesVersion class.

Method Details

capabilities

public KubernetesVersionCapabilities capabilities()

Get the capabilities property: Capabilities on this Kubernetes version.

Returns:

the capabilities value.

fromJson

public static KubernetesVersion fromJson(JsonReader jsonReader)

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.

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 patchVersions()

Get the patchVersions property: Patch versions of Kubernetes release.

Returns:

the patchVersions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: major.minor version of Kubernetes release.

Returns:

the version value.

withCapabilities

public KubernetesVersion withCapabilities(KubernetesVersionCapabilities capabilities)

Set the capabilities property: Capabilities on this Kubernetes version.

Parameters:

capabilities - the capabilities value to set.

Returns:

the KubernetesVersion object itself.

withIsDefault

public KubernetesVersion withIsDefault(Boolean isDefault)

Set the isDefault property: Whether this version is default.

Parameters:

isDefault - the isDefault value to set.

Returns:

the KubernetesVersion object itself.

withIsPreview

public KubernetesVersion withIsPreview(Boolean isPreview)

Set the isPreview property: Whether this version is in preview mode.

Parameters:

isPreview - the isPreview value to set.

Returns:

the KubernetesVersion object itself.

withPatchVersions

public KubernetesVersion withPatchVersions(Map patchVersions)

Set the patchVersions property: Patch versions of Kubernetes release.

Parameters:

patchVersions - the patchVersions value to set.

Returns:

the KubernetesVersion object itself.

withVersion

public KubernetesVersion withVersion(String version)

Set the version property: major.minor version of Kubernetes release.

Parameters:

version - the version value to set.

Returns:

the KubernetesVersion object itself.

Applies to