Del via


MaintenanceWindowsProperties Class

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

Implements

public final class MaintenanceWindowsProperties
implements JsonSerializable<MaintenanceWindowsProperties>

Maintenance windows resource properties.

Constructor Summary

Constructor Description
MaintenanceWindowsProperties()

Creates an instance of MaintenanceWindowsProperties class.

Method Summary

Modifier and Type Method and Description
static MaintenanceWindowsProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowsProperties from the JsonReader.

List<MaintenanceWindowTimeRange> timeRanges()

Get the timeRanges property: The timeRanges property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MaintenanceWindowsProperties withTimeRanges(List<MaintenanceWindowTimeRange> timeRanges)

Set the timeRanges property: The timeRanges property.

Methods inherited from java.lang.Object

Constructor Details

MaintenanceWindowsProperties

public MaintenanceWindowsProperties()

Creates an instance of MaintenanceWindowsProperties class.

Method Details

fromJson

public static MaintenanceWindowsProperties fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowsProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MaintenanceWindowsProperties 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 MaintenanceWindowsProperties.

timeRanges

public List<MaintenanceWindowTimeRange> timeRanges()

Get the timeRanges property: The timeRanges property.

Returns:

the timeRanges value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTimeRanges

public MaintenanceWindowsProperties withTimeRanges(List<MaintenanceWindowTimeRange> timeRanges)

Set the timeRanges property: The timeRanges property.

Parameters:

timeRanges - the timeRanges value to set.

Returns:

the MaintenanceWindowsProperties object itself.

Applies to