KubernetesPatchVersion Class

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

Implements

public final class KubernetesPatchVersion
implements JsonSerializable<KubernetesPatchVersion>

Kubernetes patch version profile.

Constructor Summary

Constructor Description
KubernetesPatchVersion()

Creates an instance of KubernetesPatchVersion class.

Method Summary

Modifier and Type Method and Description
static KubernetesPatchVersion fromJson(JsonReader jsonReader)

Reads an instance of KubernetesPatchVersion from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
List<String> upgrades()

Get the upgrades property: Possible upgrade path for given patch version.

void validate()

Validates the instance.

KubernetesPatchVersion withUpgrades(List<String> upgrades)

Set the upgrades property: Possible upgrade path for given patch version.

Methods inherited from java.lang.Object

Constructor Details

KubernetesPatchVersion

public KubernetesPatchVersion()

Creates an instance of KubernetesPatchVersion class.

Method Details

fromJson

public static KubernetesPatchVersion fromJson(JsonReader jsonReader)

Reads an instance of KubernetesPatchVersion from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KubernetesPatchVersion 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 KubernetesPatchVersion.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

upgrades

public List upgrades()

Get the upgrades property: Possible upgrade path for given patch version.

Returns:

the upgrades value.

validate

public void validate()

Validates the instance.

withUpgrades

public KubernetesPatchVersion withUpgrades(List upgrades)

Set the upgrades property: Possible upgrade path for given patch version.

Parameters:

upgrades - the upgrades value to set.

Returns:

the KubernetesPatchVersion object itself.

Applies to