public final class AutoPatchingSettings extends Object
Constructor and Description |
---|
AutoPatchingSettings() |
Modifier and Type | Method and 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.
|
public Boolean enable()
public AutoPatchingSettings withEnable(Boolean enable)
enable
- the enable value to set.public DayOfWeek dayOfWeek()
public AutoPatchingSettings withDayOfWeek(DayOfWeek dayOfWeek)
dayOfWeek
- the dayOfWeek value to set.public Integer maintenanceWindowStartingHour()
public AutoPatchingSettings withMaintenanceWindowStartingHour(Integer maintenanceWindowStartingHour)
maintenanceWindowStartingHour
- the maintenanceWindowStartingHour value to set.public Integer maintenanceWindowDuration()
public AutoPatchingSettings withMaintenanceWindowDuration(Integer maintenanceWindowDuration)
maintenanceWindowDuration
- the maintenanceWindowDuration value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.