Class AutoPatchingSettings
- java.lang.Object
-
- com.azure.resourcemanager.sqlvirtualmachine.models.AutoPatchingSettings
-
public final class AutoPatchingSettings extends Object
Set a patching window during which Windows and SQL patches will be applied.
-
-
Constructor Summary
Constructors Constructor Description AutoPatchingSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DayOfWeek
dayOfWeek()
Get the dayOfWeek property: Day of week to apply the patch on.Boolean
enable()
Get the enable property: Enable or disable autopatching on SQL virtual machine.Integer
maintenanceWindowDuration()
Get the maintenanceWindowDuration property: Duration of patching.Integer
maintenanceWindowStartingHour()
Get the maintenanceWindowStartingHour property: Hour of the day when patching is initiated.void
validate()
Validates the instance.AutoPatchingSettings
withDayOfWeek(DayOfWeek dayOfWeek)
Set the dayOfWeek property: Day of week to apply the patch on.AutoPatchingSettings
withEnable(Boolean enable)
Set the enable property: Enable or disable autopatching on SQL virtual machine.AutoPatchingSettings
withMaintenanceWindowDuration(Integer maintenanceWindowDuration)
Set the maintenanceWindowDuration property: Duration of patching.AutoPatchingSettings
withMaintenanceWindowStartingHour(Integer maintenanceWindowStartingHour)
Set the maintenanceWindowStartingHour property: Hour of the day when patching is initiated.
-
-
-
Method Detail
-
enable
public Boolean enable()
Get the enable property: Enable or disable autopatching on SQL virtual machine.- Returns:
- the enable value.
-
withEnable
public AutoPatchingSettings withEnable(Boolean enable)
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
public DayOfWeek dayOfWeek()
Get the dayOfWeek property: Day of week to apply the patch on.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
public AutoPatchingSettings withDayOfWeek(DayOfWeek dayOfWeek)
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
public Integer 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
public Integer maintenanceWindowDuration()
Get the maintenanceWindowDuration property: Duration of patching.- Returns:
- the maintenanceWindowDuration value.
-
withMaintenanceWindowDuration
public AutoPatchingSettings withMaintenanceWindowDuration(Integer maintenanceWindowDuration)
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.
-
-