Class MaintenanceWindowOptionsInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsInner
public final class MaintenanceWindowOptionsInner
extends com.azure.core.management.ProxyResource
Maintenance window options.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MaintenanceWindowOptionsInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.Get the defaultDurationInMinutes property: Default duration for maintenance window.Get the isEnabled property: Whether maintenance windows are enabled for the database.Get the maintenanceWindowCycles property: Available maintenance cycles e.g.Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database.Get the minDurationInMinutes property: Minimum duration of maintenance window.Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.void
validate()
Validates the instance.withAllowMultipleMaintenanceWindowsPerCycle
(Boolean allowMultipleMaintenanceWindowsPerCycle) Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.withDefaultDurationInMinutes
(Integer defaultDurationInMinutes) Set the defaultDurationInMinutes property: Default duration for maintenance window.withIsEnabled
(Boolean isEnabled) Set the isEnabled property: Whether maintenance windows are enabled for the database.withMaintenanceWindowCycles
(List<MaintenanceWindowTimeRange> maintenanceWindowCycles) Set the maintenanceWindowCycles property: Available maintenance cycles e.g.withMinCycles
(Integer minCycles) Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database.withMinDurationInMinutes
(Integer minDurationInMinutes) Set the minDurationInMinutes property: Minimum duration of maintenance window.withTimeGranularityInMinutes
(Integer timeGranularityInMinutes) Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
MaintenanceWindowOptionsInner
public MaintenanceWindowOptionsInner()Creates an instance of MaintenanceWindowOptionsInner class.
-
-
Method Details
-
isEnabled
Get the isEnabled property: Whether maintenance windows are enabled for the database.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether maintenance windows are enabled for the database.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the MaintenanceWindowOptionsInner object itself.
-
maintenanceWindowCycles
Get the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.- Returns:
- the maintenanceWindowCycles value.
-
withMaintenanceWindowCycles
public MaintenanceWindowOptionsInner withMaintenanceWindowCycles(List<MaintenanceWindowTimeRange> maintenanceWindowCycles) Set the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.- Parameters:
maintenanceWindowCycles
- the maintenanceWindowCycles value to set.- Returns:
- the MaintenanceWindowOptionsInner object itself.
-
minDurationInMinutes
Get the minDurationInMinutes property: Minimum duration of maintenance window.- Returns:
- the minDurationInMinutes value.
-
withMinDurationInMinutes
Set the minDurationInMinutes property: Minimum duration of maintenance window.- Parameters:
minDurationInMinutes
- the minDurationInMinutes value to set.- Returns:
- the MaintenanceWindowOptionsInner object itself.
-
defaultDurationInMinutes
Get the defaultDurationInMinutes property: Default duration for maintenance window.- Returns:
- the defaultDurationInMinutes value.
-
withDefaultDurationInMinutes
Set the defaultDurationInMinutes property: Default duration for maintenance window.- Parameters:
defaultDurationInMinutes
- the defaultDurationInMinutes value to set.- Returns:
- the MaintenanceWindowOptionsInner object itself.
-
minCycles
Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database.- Returns:
- the minCycles value.
-
withMinCycles
Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database.- Parameters:
minCycles
- the minCycles value to set.- Returns:
- the MaintenanceWindowOptionsInner object itself.
-
timeGranularityInMinutes
Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.- Returns:
- the timeGranularityInMinutes value.
-
withTimeGranularityInMinutes
Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.- Parameters:
timeGranularityInMinutes
- the timeGranularityInMinutes value to set.- Returns:
- the MaintenanceWindowOptionsInner object itself.
-
allowMultipleMaintenanceWindowsPerCycle
Get the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.- Returns:
- the allowMultipleMaintenanceWindowsPerCycle value.
-
withAllowMultipleMaintenanceWindowsPerCycle
public MaintenanceWindowOptionsInner withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle) Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.- Parameters:
allowMultipleMaintenanceWindowsPerCycle
- the allowMultipleMaintenanceWindowsPerCycle value to set.- Returns:
- the MaintenanceWindowOptionsInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-