Class MaintenanceWindowOptionsProperties
- java.lang.Object
-
- com.azure.resourcemanager.synapse.fluent.models.MaintenanceWindowOptionsProperties
-
public final class MaintenanceWindowOptionsProperties extends Object
Maintenance window options properties.
-
-
Constructor Summary
Constructors Constructor Description MaintenanceWindowOptionsProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
allowMultipleMaintenanceWindowsPerCycle()
Get the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.Integer
defaultDurationInMinutes()
Get the defaultDurationInMinutes property: Default duration for maintenance window.Boolean
isEnabled()
Get the isEnabled property: Whether maintenance windows are enabled for the database.List<MaintenanceWindowTimeRange>
maintenanceWindowCycles()
Get the maintenanceWindowCycles property: Available maintenance cycles e.g.Integer
minCycles()
Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database.Integer
minDurationInMinutes()
Get the minDurationInMinutes property: Minimum duration of maintenance window.Integer
timeGranularityInMinutes()
Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.void
validate()
Validates the instance.MaintenanceWindowOptionsProperties
withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle)
Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.MaintenanceWindowOptionsProperties
withDefaultDurationInMinutes(Integer defaultDurationInMinutes)
Set the defaultDurationInMinutes property: Default duration for maintenance window.MaintenanceWindowOptionsProperties
withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Whether maintenance windows are enabled for the database.MaintenanceWindowOptionsProperties
withMaintenanceWindowCycles(List<MaintenanceWindowTimeRange> maintenanceWindowCycles)
Set the maintenanceWindowCycles property: Available maintenance cycles e.g.MaintenanceWindowOptionsProperties
withMinCycles(Integer minCycles)
Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database.MaintenanceWindowOptionsProperties
withMinDurationInMinutes(Integer minDurationInMinutes)
Set the minDurationInMinutes property: Minimum duration of maintenance window.MaintenanceWindowOptionsProperties
withTimeGranularityInMinutes(Integer timeGranularityInMinutes)
Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.
-
-
-
Method Detail
-
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Whether maintenance windows are enabled for the database.- Returns:
- the isEnabled value.
-
withIsEnabled
public MaintenanceWindowOptionsProperties withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Whether maintenance windows are enabled for the database.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the MaintenanceWindowOptionsProperties object itself.
-
maintenanceWindowCycles
public List<MaintenanceWindowTimeRange> maintenanceWindowCycles()
Get the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.- Returns:
- the maintenanceWindowCycles value.
-
withMaintenanceWindowCycles
public MaintenanceWindowOptionsProperties 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 MaintenanceWindowOptionsProperties object itself.
-
minDurationInMinutes
public Integer minDurationInMinutes()
Get the minDurationInMinutes property: Minimum duration of maintenance window.- Returns:
- the minDurationInMinutes value.
-
withMinDurationInMinutes
public MaintenanceWindowOptionsProperties withMinDurationInMinutes(Integer minDurationInMinutes)
Set the minDurationInMinutes property: Minimum duration of maintenance window.- Parameters:
minDurationInMinutes
- the minDurationInMinutes value to set.- Returns:
- the MaintenanceWindowOptionsProperties object itself.
-
defaultDurationInMinutes
public Integer defaultDurationInMinutes()
Get the defaultDurationInMinutes property: Default duration for maintenance window.- Returns:
- the defaultDurationInMinutes value.
-
withDefaultDurationInMinutes
public MaintenanceWindowOptionsProperties withDefaultDurationInMinutes(Integer defaultDurationInMinutes)
Set the defaultDurationInMinutes property: Default duration for maintenance window.- Parameters:
defaultDurationInMinutes
- the defaultDurationInMinutes value to set.- Returns:
- the MaintenanceWindowOptionsProperties object itself.
-
minCycles
public Integer minCycles()
Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database.- Returns:
- the minCycles value.
-
withMinCycles
public MaintenanceWindowOptionsProperties withMinCycles(Integer minCycles)
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 MaintenanceWindowOptionsProperties object itself.
-
timeGranularityInMinutes
public Integer timeGranularityInMinutes()
Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.- Returns:
- the timeGranularityInMinutes value.
-
withTimeGranularityInMinutes
public MaintenanceWindowOptionsProperties withTimeGranularityInMinutes(Integer timeGranularityInMinutes)
Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.- Parameters:
timeGranularityInMinutes
- the timeGranularityInMinutes value to set.- Returns:
- the MaintenanceWindowOptionsProperties object itself.
-
allowMultipleMaintenanceWindowsPerCycle
public Boolean allowMultipleMaintenanceWindowsPerCycle()
Get the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.- Returns:
- the allowMultipleMaintenanceWindowsPerCycle value.
-
withAllowMultipleMaintenanceWindowsPerCycle
public MaintenanceWindowOptionsProperties withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle)
Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.- Parameters:
allowMultipleMaintenanceWindowsPerCycle
- the allowMultipleMaintenanceWindowsPerCycle value to set.- Returns:
- the MaintenanceWindowOptionsProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-