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 Details

    • ClusterUpgradeSettings

      public ClusterUpgradeSettings()
      Creates an instance of ClusterUpgradeSettings class.
  • Method Details

    • overrideSettings

      public UpgradeOverrideSettings overrideSettings()
      Get the overrideSettings property: Settings for overrides.
      Returns:
      the overrideSettings value.
    • withOverrideSettings

      public ClusterUpgradeSettings withOverrideSettings(UpgradeOverrideSettings overrideSettings)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.