ManagedClusterPoolUpgradeProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterPoolUpgradeProfile
- com.
Implements
public final class ManagedClusterPoolUpgradeProfile
implements JsonSerializable<ManagedClusterPoolUpgradeProfile>
The list of available upgrade versions.
Constructor Summary
Constructor | Description |
---|---|
ManagedClusterPoolUpgradeProfile() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
kubernetesVersion()
Get the kubernetes |
String |
name()
Get the name property: The Agent Pool name. |
OSType |
osType()
Get the os |
Json |
toJson(JsonWriter jsonWriter) |
List<Managed |
upgrades()
Get the upgrades property: List of orchestrator types and versions available for upgrade. |
void |
validate()
Validates the instance. |
Managed |
withKubernetesVersion(String kubernetesVersion)
Set the kubernetes |
Managed |
withName(String name)
Set the name property: The Agent Pool name. |
Managed |
withOsType(OSType osType)
Set the os |
Managed |
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:
Returns:
Throws:
kubernetesVersion
public String kubernetesVersion()
Get the kubernetesVersion property: The Kubernetes version (major.minor.patch).
Returns:
name
public String name()
Get the name property: The Agent Pool name.
Returns:
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:
toJson
upgrades
public List
Get the upgrades property: List of orchestrator types and versions available for upgrade.
Returns:
validate
public void validate()
Validates the instance.
withKubernetesVersion
public ManagedClusterPoolUpgradeProfile withKubernetesVersion(String kubernetesVersion)
Set the kubernetesVersion property: The Kubernetes version (major.minor.patch).
Parameters:
Returns:
withName
public ManagedClusterPoolUpgradeProfile withName(String name)
Set the name property: The Agent Pool name.
Parameters:
Returns:
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:
Returns:
withUpgrades
public ManagedClusterPoolUpgradeProfile withUpgrades(List
Set the upgrades property: List of orchestrator types and versions available for upgrade.
Parameters:
Returns:
Applies to
Azure SDK for Java