Class AutoPatchingSettings
java.lang.Object
com.azure.resourcemanager.sqlvirtualmachine.models.AutoPatchingSettings
Set a patching window during which Windows and SQL patches will be applied.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the dayOfWeek property: Day of week to apply the patch on.enable()
Get the enable property: Enable or disable autopatching on SQL virtual machine.Get the maintenanceWindowDuration property: Duration of patching.Get the maintenanceWindowStartingHour property: Hour of the day when patching is initiated.void
validate()
Validates the instance.withDayOfWeek
(DayOfWeek dayOfWeek) Set the dayOfWeek property: Day of week to apply the patch on.withEnable
(Boolean enable) Set the enable property: Enable or disable autopatching on SQL virtual machine.withMaintenanceWindowDuration
(Integer maintenanceWindowDuration) Set the maintenanceWindowDuration property: Duration of patching.withMaintenanceWindowStartingHour
(Integer maintenanceWindowStartingHour) Set the maintenanceWindowStartingHour property: Hour of the day when patching is initiated.
-
Constructor Details
-
AutoPatchingSettings
public AutoPatchingSettings()
-
-
Method Details
-
enable
Get the enable property: Enable or disable autopatching on SQL virtual machine.- Returns:
- the enable value.
-
withEnable
Set the enable property: Enable or disable autopatching on SQL virtual machine.- Parameters:
enable
- the enable value to set.- Returns:
- the AutoPatchingSettings object itself.
-
dayOfWeek
Get the dayOfWeek property: Day of week to apply the patch on.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
Set the dayOfWeek property: Day of week to apply the patch on.- Parameters:
dayOfWeek
- the dayOfWeek value to set.- Returns:
- the AutoPatchingSettings object itself.
-
maintenanceWindowStartingHour
Get the maintenanceWindowStartingHour property: Hour of the day when patching is initiated. Local VM time.- Returns:
- the maintenanceWindowStartingHour value.
-
withMaintenanceWindowStartingHour
public AutoPatchingSettings withMaintenanceWindowStartingHour(Integer maintenanceWindowStartingHour) Set the maintenanceWindowStartingHour property: Hour of the day when patching is initiated. Local VM time.- Parameters:
maintenanceWindowStartingHour
- the maintenanceWindowStartingHour value to set.- Returns:
- the AutoPatchingSettings object itself.
-
maintenanceWindowDuration
Get the maintenanceWindowDuration property: Duration of patching.- Returns:
- the maintenanceWindowDuration value.
-
withMaintenanceWindowDuration
Set the maintenanceWindowDuration property: Duration of patching.- Parameters:
maintenanceWindowDuration
- the maintenanceWindowDuration value to set.- Returns:
- the AutoPatchingSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-