Class CacheUpgradeSettings
java.lang.Object
com.azure.resourcemanager.storagecache.models.CacheUpgradeSettings
Cache Upgrade Settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the scheduledTime property: When upgradeScheduleEnabled is true, this field holds the user-chosen upgrade time.Get the upgradeScheduleEnabled property: True if the user chooses to select an installation time between now and firmwareUpdateDeadline.void
validate()
Validates the instance.withScheduledTime
(OffsetDateTime scheduledTime) Set the scheduledTime property: When upgradeScheduleEnabled is true, this field holds the user-chosen upgrade time.withUpgradeScheduleEnabled
(Boolean upgradeScheduleEnabled) Set the upgradeScheduleEnabled property: True if the user chooses to select an installation time between now and firmwareUpdateDeadline.
-
Constructor Details
-
CacheUpgradeSettings
public CacheUpgradeSettings()
-
-
Method Details
-
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
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
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
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.
-