MaintenanceWindowOptionsInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. MaintenanceWindowOptionsInner
- com.
- com.
public final class MaintenanceWindowOptionsInner
extends ProxyResource
Maintenance window options.
Constructor Summary
Constructor | Description |
---|---|
MaintenanceWindowOptionsInner() |
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 |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Boolean |
isEnabled()
Get the is |
List<Maintenance |
maintenanceWindowCycles()
Get the maintenance |
Integer |
minCycles()
Get the min |
Integer |
minDurationInMinutes()
Get the min |
String |
name()
Get the name property: The name of the resource. |
Integer |
timeGranularityInMinutes()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
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 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:
defaultDurationInMinutes
public Integer defaultDurationInMinutes()
Get the defaultDurationInMinutes property: Default duration for maintenance window.
Returns:
fromJson
public static MaintenanceWindowOptionsInner fromJson(JsonReader jsonReader)
Reads an instance of MaintenanceWindowOptionsInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
MaintenanceWindowOptionsInner.id()Returns:
isEnabled
public Boolean isEnabled()
Get the isEnabled property: Whether maintenance windows are enabled for the database.
Returns:
maintenanceWindowCycles
public List
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
MaintenanceWindowOptionsInner.name()Returns:
timeGranularityInMinutes
public Integer timeGranularityInMinutes()
Get the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MaintenanceWindowOptionsInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
MaintenanceWindowOptionsInner.type()Returns:
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:
Returns:
withDefaultDurationInMinutes
public MaintenanceWindowOptionsInner withDefaultDurationInMinutes(Integer defaultDurationInMinutes)
Set the defaultDurationInMinutes property: Default duration for maintenance window.
Parameters:
Returns:
withIsEnabled
public MaintenanceWindowOptionsInner withIsEnabled(Boolean isEnabled)
Set the isEnabled property: Whether maintenance windows are enabled for the database.
Parameters:
Returns:
withMaintenanceWindowCycles
public MaintenanceWindowOptionsInner withMaintenanceWindowCycles(List
Set the maintenanceWindowCycles property: Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}.
Parameters:
Returns:
withMinCycles
public MaintenanceWindowOptionsInner withMinCycles(Integer minCycles)
Set the minCycles property: Minimum number of maintenance windows cycles to be set on the database.
Parameters:
Returns:
withMinDurationInMinutes
public MaintenanceWindowOptionsInner withMinDurationInMinutes(Integer minDurationInMinutes)
Set the minDurationInMinutes property: Minimum duration of maintenance window.
Parameters:
Returns:
withTimeGranularityInMinutes
public MaintenanceWindowOptionsInner withTimeGranularityInMinutes(Integer timeGranularityInMinutes)
Set the timeGranularityInMinutes property: Time granularity in minutes for maintenance windows.
Parameters:
Returns:
Applies to
Azure SDK for Java