Class ClusterUpgradeSettings
java.lang.Object
com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterUpgradeSettings>
public final class ClusterUpgradeSettings
extends Object
implements com.azure.json.JsonSerializable<ClusterUpgradeSettings>
Settings for upgrading a cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClusterUpgradeSettings class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterUpgradeSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClusterUpgradeSettings from the JsonReader.Get the overrideSettings property: Settings for overrides.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOverrideSettings(UpgradeOverrideSettings overrideSettings) Set the overrideSettings property: Settings for overrides.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
-
ClusterUpgradeSettings
public ClusterUpgradeSettings()Creates an instance of ClusterUpgradeSettings class.
-
-
Method Details
-
overrideSettings
Get the overrideSettings property: Settings for overrides.- Returns:
- the overrideSettings value.
-
withOverrideSettings
Set the overrideSettings property: Settings for overrides.- Parameters:
overrideSettings- the overrideSettings value to set.- Returns:
- the ClusterUpgradeSettings 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<ClusterUpgradeSettings>- Throws:
IOException
-
fromJson
public static ClusterUpgradeSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClusterUpgradeSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClusterUpgradeSettings 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 ClusterUpgradeSettings.
-