MaintenanceWindowOptionsInner Class

public final class MaintenanceWindowOptionsInner
extends ProxyResource

Maintenance window options.

Constructor Summary

Constructor Description
MaintenanceWindowOptionsInner()

Creates an instance of MaintenanceWindowOptionsInner 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 MaintenanceWindowOptionsInner fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowOptionsInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

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.

String name()

Get the name property: The name of the resource.

Integer timeGranularityInMinutes()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

MaintenanceWindowOptionsInner withAllowMultipleMaintenanceWindowsPerCycle(Boolean allowMultipleMaintenanceWindowsPerCycle)

Set the allowMultipleMaintenanceWindowsPerCycle property: Whether we allow multiple maintenance windows per cycle.

MaintenanceWindowOptionsInner withDefaultDurationInMinutes(Integer defaultDurationInMinutes)

Set the defaultDurationInMinutes property: Default duration for maintenance window.

MaintenanceWindowOptionsInner withIsEnabled(Boolean isEnabled)

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

MaintenanceWindowOptionsInner withMaintenanceWindowCycles(List<MaintenanceWindowTimeRange> maintenanceWindowCycles)

Set the maintenanceWindowCycles property: Available maintenance cycles e.g.

MaintenanceWindowOptionsInner withMinCycles(Integer minCycles)

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

MaintenanceWindowOptionsInner withMinDurationInMinutes(Integer minDurationInMinutes)

Set the minDurationInMinutes property: Minimum duration of maintenance window.

MaintenanceWindowOptionsInner withTimeGranularityInMinutes(Integer timeGranularityInMinutes)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

MaintenanceWindowOptionsInner

public MaintenanceWindowOptionsInner()

Creates an instance of MaintenanceWindowOptionsInner 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 MaintenanceWindowOptionsInner fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowOptionsInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

MaintenanceWindowOptionsInner.id()

Returns:

the id value.

isEnabled

public Boolean isEnabled()

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

Returns:

the isEnabled value.

maintenanceWindowCycles

public List 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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

MaintenanceWindowOptionsInner.name()

Returns:

the name 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)

Overrides:

MaintenanceWindowOptionsInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

MaintenanceWindowOptionsInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

withDefaultDurationInMinutes

public MaintenanceWindowOptionsInner withDefaultDurationInMinutes(Integer defaultDurationInMinutes)

Set the defaultDurationInMinutes property: Default duration for maintenance window.

Parameters:

defaultDurationInMinutes - the defaultDurationInMinutes value to set.

Returns:

the MaintenanceWindowOptionsInner object itself.

withIsEnabled

public MaintenanceWindowOptionsInner withIsEnabled(Boolean isEnabled)

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

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the MaintenanceWindowOptionsInner object itself.

withMaintenanceWindowCycles

public MaintenanceWindowOptionsInner withMaintenanceWindowCycles(List 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.

withMinCycles

public MaintenanceWindowOptionsInner 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 MaintenanceWindowOptionsInner object itself.

withMinDurationInMinutes

public MaintenanceWindowOptionsInner withMinDurationInMinutes(Integer minDurationInMinutes)

Set the minDurationInMinutes property: Minimum duration of maintenance window.

Parameters:

minDurationInMinutes - the minDurationInMinutes value to set.

Returns:

the MaintenanceWindowOptionsInner object itself.

withTimeGranularityInMinutes

public MaintenanceWindowOptionsInner withTimeGranularityInMinutes(Integer timeGranularityInMinutes)

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

Parameters:

timeGranularityInMinutes - the timeGranularityInMinutes value to set.

Returns:

the MaintenanceWindowOptionsInner object itself.

Applies to