KubernetesVersion Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. KubernetesVersion
- com.
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 Kubernetes |
Method Summary
Modifier and Type | Method and Description |
---|---|
Kubernetes |
capabilities()
Get the capabilities property: Capabilities on this Kubernetes version. |
static
Kubernetes |
fromJson(JsonReader jsonReader)
Reads an instance of Kubernetes |
Boolean |
isDefault()
Get the is |
Boolean |
isPreview()
Get the is |
Map<String,Kubernetes |
patchVersions()
Get the patch |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
version()
Get the version property: major. |
Kubernetes |
withCapabilities(KubernetesVersionCapabilities capabilities)
Set the capabilities property: Capabilities on this Kubernetes version. |
Kubernetes |
withIsDefault(Boolean isDefault)
Set the is |
Kubernetes |
withIsPreview(Boolean isPreview)
Set the is |
Kubernetes |
withPatchVersions(Map<String,KubernetesPatchVersion> patchVersions)
Set the patch |
Kubernetes |
withVersion(String version)
Set the version property: major. |
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:
fromJson
public static KubernetesVersion fromJson(JsonReader jsonReader)
Reads an instance of KubernetesVersion from the JsonReader.
Parameters:
Returns:
Throws:
isDefault
public Boolean isDefault()
Get the isDefault property: Whether this version is default.
Returns:
isPreview
public Boolean isPreview()
Get the isPreview property: Whether this version is in preview mode.
Returns:
patchVersions
public Map
Get the patchVersions property: Patch versions of Kubernetes release.
Returns:
toJson
validate
public void validate()
Validates the instance.
version
public String version()
Get the version property: major.minor version of Kubernetes release.
Returns:
withCapabilities
public KubernetesVersion withCapabilities(KubernetesVersionCapabilities capabilities)
Set the capabilities property: Capabilities on this Kubernetes version.
Parameters:
Returns:
withIsDefault
public KubernetesVersion withIsDefault(Boolean isDefault)
Set the isDefault property: Whether this version is default.
Parameters:
Returns:
withIsPreview
public KubernetesVersion withIsPreview(Boolean isPreview)
Set the isPreview property: Whether this version is in preview mode.
Parameters:
Returns:
withPatchVersions
public KubernetesVersion withPatchVersions(Map
Set the patchVersions property: Patch versions of Kubernetes release.
Parameters:
Returns:
withVersion
public KubernetesVersion withVersion(String version)
Set the version property: major.minor version of Kubernetes release.
Parameters:
Returns:
Applies to
Azure SDK for Java