Class ManagedClusterAutoUpgradeProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterAutoUpgradeProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterAutoUpgradeProfile>
public final class ManagedClusterAutoUpgradeProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterAutoUpgradeProfile>
Auto upgrade profile for a managed cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAutoUpgradeProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAutoUpgradeProfile from the JsonReader.Get the nodeOSUpgradeChannel property: Manner in which the OS on your nodes is updated.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradeChannel property: For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).voidvalidate()Validates the instance.withNodeOSUpgradeChannel(NodeOSUpgradeChannel nodeOSUpgradeChannel) Set the nodeOSUpgradeChannel property: Manner in which the OS on your nodes is updated.withUpgradeChannel(UpgradeChannel upgradeChannel) Set the upgradeChannel property: For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterAutoUpgradeProfile
public ManagedClusterAutoUpgradeProfile()Creates an instance of ManagedClusterAutoUpgradeProfile class.
-
-
Method Details
-
upgradeChannel
Get the upgradeChannel property: For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).- Returns:
- the upgradeChannel value.
-
withUpgradeChannel
Set the upgradeChannel property: For more information see [setting the AKS cluster auto-upgrade channel](https://docs.microsoft.com/azure/aks/upgrade-cluster#set-auto-upgrade-channel).- Parameters:
upgradeChannel- the upgradeChannel value to set.- Returns:
- the ManagedClusterAutoUpgradeProfile object itself.
-
nodeOSUpgradeChannel
Get the nodeOSUpgradeChannel property: Manner in which the OS on your nodes is updated. The default is NodeImage.- Returns:
- the nodeOSUpgradeChannel value.
-
withNodeOSUpgradeChannel
public ManagedClusterAutoUpgradeProfile withNodeOSUpgradeChannel(NodeOSUpgradeChannel nodeOSUpgradeChannel) Set the nodeOSUpgradeChannel property: Manner in which the OS on your nodes is updated. The default is NodeImage.- Parameters:
nodeOSUpgradeChannel- the nodeOSUpgradeChannel value to set.- Returns:
- the ManagedClusterAutoUpgradeProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterAutoUpgradeProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterAutoUpgradeProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterAutoUpgradeProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterAutoUpgradeProfile 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 ManagedClusterAutoUpgradeProfile.
-