Del via


MaintenanceWindowOptionsProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.MaintenanceWindowOptionsProperties

Implements

public final class MaintenanceWindowOptionsProperties
implements JsonSerializable<MaintenanceWindowOptionsProperties>

Maintenance window options properties.

Constructor Summary

Constructor Description
MaintenanceWindowOptionsProperties()

Creates an instance of MaintenanceWindowOptionsProperties class.

Method Summary

Modifier and Type Method and 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.

static MaintenanceWindowOptionsProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowOptionsProperties from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

the allowMultipleMaintenanceWindowsPerCycle value.

defaultDurationInMinutes

public Integer defaultDurationInMinutes()

Get the defaultDurationInMinutes property: Default duration for maintenance window.

Returns:

the defaultDurationInMinutes value.

fromJson

public static MaintenanceWindowOptionsProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowOptionsProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MaintenanceWindowOptionsProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MaintenanceWindowOptionsProperties.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Whether maintenance windows are enabled for the database.

Returns:

the isEnabled value.

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.

minCycles

public Integer minCycles()

Get the minCycles property: Minimum number of maintenance windows cycles to be set on the database.

Returns:

the minCycles value.

minDurationInMinutes

public Integer minDurationInMinutes()

Get the minDurationInMinutes property: Minimum duration of maintenance window.

Returns:

the minDurationInMinutes value.

timeGranularityInMinutes

public Integer timeGranularityInMinutes()

Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.

Returns:

the timeGranularityInMinutes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

allowMultipleMaintenanceWindowsPerCycle - the allowMultipleMaintenanceWindowsPerCycle value to set.

Returns:

the MaintenanceWindowOptionsProperties object itself.

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.

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.

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.

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.

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.

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.

Applies to