ManagedClusterPoolUpgradeProfile Class

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

Implements

public final class ManagedClusterPoolUpgradeProfile
implements JsonSerializable<ManagedClusterPoolUpgradeProfile>

The list of available upgrade versions.

Constructor Summary

Constructor Description
ManagedClusterPoolUpgradeProfile()

Creates an instance of ManagedClusterPoolUpgradeProfile class.

Method Summary

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

Reads an instance of ManagedClusterPoolUpgradeProfile from the JsonReader.

String kubernetesVersion()

Get the kubernetesVersion property: The Kubernetes version (major.minor.patch).

String name()

Get the name property: The Agent Pool name.

OSType osType()

Get the osType property: OsType to be used to specify os type.

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

Get the upgrades property: List of orchestrator types and versions available for upgrade.

void validate()

Validates the instance.

ManagedClusterPoolUpgradeProfile withKubernetesVersion(String kubernetesVersion)

Set the kubernetesVersion property: The Kubernetes version (major.minor.patch).

ManagedClusterPoolUpgradeProfile withName(String name)

Set the name property: The Agent Pool name.

ManagedClusterPoolUpgradeProfile withOsType(OSType osType)

Set the osType property: OsType to be used to specify os type.

ManagedClusterPoolUpgradeProfile withUpgrades(List<ManagedClusterPoolUpgradeProfileUpgradesItem> upgrades)

Set the upgrades property: List of orchestrator types and versions available for upgrade.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterPoolUpgradeProfile

public ManagedClusterPoolUpgradeProfile()

Creates an instance of ManagedClusterPoolUpgradeProfile class.

Method Details

fromJson

public static ManagedClusterPoolUpgradeProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterPoolUpgradeProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterPoolUpgradeProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

kubernetesVersion

public String kubernetesVersion()

Get the kubernetesVersion property: The Kubernetes version (major.minor.patch).

Returns:

the kubernetesVersion value.

name

public String name()

Get the name property: The Agent Pool name.

Returns:

the name value.

osType

public OSType osType()

Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.

Returns:

the osType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

upgrades

public List upgrades()

Get the upgrades property: List of orchestrator types and versions available for upgrade.

Returns:

the upgrades value.

validate

public void validate()

Validates the instance.

withKubernetesVersion

public ManagedClusterPoolUpgradeProfile withKubernetesVersion(String kubernetesVersion)

Set the kubernetesVersion property: The Kubernetes version (major.minor.patch).

Parameters:

kubernetesVersion - the kubernetesVersion value to set.

Returns:

the ManagedClusterPoolUpgradeProfile object itself.

withName

public ManagedClusterPoolUpgradeProfile withName(String name)

Set the name property: The Agent Pool name.

Parameters:

name - the name value to set.

Returns:

the ManagedClusterPoolUpgradeProfile object itself.

withOsType

public ManagedClusterPoolUpgradeProfile withOsType(OSType osType)

Set the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.

Parameters:

osType - the osType value to set.

Returns:

the ManagedClusterPoolUpgradeProfile object itself.

withUpgrades

public ManagedClusterPoolUpgradeProfile withUpgrades(List upgrades)

Set the upgrades property: List of orchestrator types and versions available for upgrade.

Parameters:

upgrades - the upgrades value to set.

Returns:

the ManagedClusterPoolUpgradeProfile object itself.

Applies to