Class CacheUpgradeSettings

java.lang.Object
com.azure.resourcemanager.storagecache.models.CacheUpgradeSettings

public final class CacheUpgradeSettings extends Object
Cache Upgrade Settings.
  • Constructor Details

    • CacheUpgradeSettings

      public CacheUpgradeSettings()
  • Method Details

    • upgradeScheduleEnabled

      public Boolean upgradeScheduleEnabled()
      Get the upgradeScheduleEnabled property: True if the user chooses to select an installation time between now and firmwareUpdateDeadline. Else the firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade operation.
      Returns:
      the upgradeScheduleEnabled value.
    • withUpgradeScheduleEnabled

      public CacheUpgradeSettings withUpgradeScheduleEnabled(Boolean upgradeScheduleEnabled)
      Set the upgradeScheduleEnabled property: True if the user chooses to select an installation time between now and firmwareUpdateDeadline. Else the firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade operation.
      Parameters:
      upgradeScheduleEnabled - the upgradeScheduleEnabled value to set.
      Returns:
      the CacheUpgradeSettings object itself.
    • scheduledTime

      public OffsetDateTime scheduledTime()
      Get the scheduledTime property: When upgradeScheduleEnabled is true, this field holds the user-chosen upgrade time. At the user-chosen time, the firmware update will automatically be installed on the cache.
      Returns:
      the scheduledTime value.
    • withScheduledTime

      public CacheUpgradeSettings withScheduledTime(OffsetDateTime scheduledTime)
      Set the scheduledTime property: When upgradeScheduleEnabled is true, this field holds the user-chosen upgrade time. At the user-chosen time, the firmware update will automatically be installed on the cache.
      Parameters:
      scheduledTime - the scheduledTime value to set.
      Returns:
      the CacheUpgradeSettings object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.