MaintenanceWindowOptionsProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. MaintenanceWindowOptionsProperties
- com.
Implements
public final class MaintenanceWindowOptionsProperties
implements JsonSerializable<MaintenanceWindowOptionsProperties>
Maintenance window options properties.
Constructor Summary
| Constructor | Description |
|---|---|
| MaintenanceWindowOptionsProperties() |
Creates an instance of Maintenance |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
allowMultipleMaintenanceWindowsPerCycle()
Get the allow |
| Integer |
defaultDurationInMinutes()
Get the default |
|
static
Maintenance |
fromJson(JsonReader jsonReader)
Reads an instance of Maintenance |
| Boolean |
isEnabled()
Get the is |
|
List<Maintenance |
maintenanceWindowCycles()
Get the maintenance |
| Integer |
minCycles()
Get the min |
| Integer |
minDurationInMinutes()
Get the min |
| Integer |
timeGranularityInMinutes()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Maintenance |
withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle)
Set the allow |
|
Maintenance |
withDefaultDurationInMinutes(Integer defaultDurationInMinutes)
Set the default |
|
Maintenance |
withIsEnabled(Boolean isEnabled)
Set the is |
|
Maintenance |
withMaintenanceWindowCycles(List<MaintenanceWindowTimeRange> maintenanceWindowCycles)
Set the maintenance |
|
Maintenance |
withMinCycles(Integer minCycles)
Set the min |
|
Maintenance |
withMinDurationInMinutes(Integer minDurationInMinutes)
Set the min |
|
Maintenance |
withTimeGranularityInMinutes(Integer timeGranularityInMinutes)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
MaintenanceWindowOptionsProperties
public MaintenanceWindowOptionsProperties()
Creates an instance of MaintenanceWindowOptionsProperties class.
Method Details
allowMultipleMaintenanceWindowsPerCycle
public Boolean allowMultipleMaintenanceWindowsPerCycle()
Get the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.
Returns:
defaultDurationInMinutes
public Integer defaultDurationInMinutes()
Get the defaultDurationInMinutes property: Default duration for maintenance window.
Returns:
fromJson
public static MaintenanceWindowOptionsProperties fromJson(JsonReader jsonReader)
Reads an instance of MaintenanceWindowOptionsProperties from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Whether maintenance windows are enabled for the database.
Returns:
maintenanceWindowCycles
public List<MaintenanceWindowTimeRange> maintenanceWindowCycles()
Get the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.
Returns:
minCycles
public Integer minCycles()
Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database.
Returns:
minDurationInMinutes
public Integer minDurationInMinutes()
Get the minDurationInMinutes property: Minimum duration of maintenance window.
Returns:
timeGranularityInMinutes
public Integer timeGranularityInMinutes()
Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAllowMultipleMaintenanceWindowsPerCycle
public MaintenanceWindowOptionsProperties withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle)
Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.
Parameters:
Returns:
withDefaultDurationInMinutes
public MaintenanceWindowOptionsProperties withDefaultDurationInMinutes(Integer defaultDurationInMinutes)
Set the defaultDurationInMinutes property: Default duration for maintenance window.
Parameters:
Returns:
withIsEnabled
public MaintenanceWindowOptionsProperties withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Whether maintenance windows are enabled for the database.
Parameters:
Returns:
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:
Returns:
withMinCycles
public MaintenanceWindowOptionsProperties withMinCycles(Integer minCycles)
Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database.
Parameters:
Returns:
withMinDurationInMinutes
public MaintenanceWindowOptionsProperties withMinDurationInMinutes(Integer minDurationInMinutes)
Set the minDurationInMinutes property: Minimum duration of maintenance window.
Parameters:
Returns:
withTimeGranularityInMinutes
public MaintenanceWindowOptionsProperties withTimeGranularityInMinutes(Integer timeGranularityInMinutes)
Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.
Parameters:
Returns: