MaintenanceWindowTimeRange Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.MaintenanceWindowTimeRange

Implements

public final class MaintenanceWindowTimeRange
implements JsonSerializable<MaintenanceWindowTimeRange>

Maintenance window time range.

Constructor Summary

Constructor Description
MaintenanceWindowTimeRange()

Creates an instance of MaintenanceWindowTimeRange class.

Method Summary

Modifier and Type Method and Description
DayOfWeek dayOfWeek()

Get the dayOfWeek property: Day of maintenance window.

String duration()

Get the duration property: Duration of maintenance window in minutes.

static MaintenanceWindowTimeRange fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowTimeRange from the JsonReader.

String startTime()

Get the startTime property: Start time minutes offset from 12am.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MaintenanceWindowTimeRange withDayOfWeek(DayOfWeek dayOfWeek)

Set the dayOfWeek property: Day of maintenance window.

MaintenanceWindowTimeRange withDuration(String duration)

Set the duration property: Duration of maintenance window in minutes.

MaintenanceWindowTimeRange withStartTime(String startTime)

Set the startTime property: Start time minutes offset from 12am.

Methods inherited from java.lang.Object

Constructor Details

MaintenanceWindowTimeRange

public MaintenanceWindowTimeRange()

Creates an instance of MaintenanceWindowTimeRange class.

Method Details

dayOfWeek

public DayOfWeek dayOfWeek()

Get the dayOfWeek property: Day of maintenance window.

Returns:

the dayOfWeek value.

duration

public String duration()

Get the duration property: Duration of maintenance window in minutes.

Returns:

the duration value.

fromJson

public static MaintenanceWindowTimeRange fromJson(JsonReader jsonReader)

Reads an instance of MaintenanceWindowTimeRange from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startTime

public String startTime()

Get the startTime property: Start time minutes offset from 12am.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDayOfWeek

public MaintenanceWindowTimeRange withDayOfWeek(DayOfWeek dayOfWeek)

Set the dayOfWeek property: Day of maintenance window.

Parameters:

dayOfWeek - the dayOfWeek value to set.

Returns:

the MaintenanceWindowTimeRange object itself.

withDuration

public MaintenanceWindowTimeRange withDuration(String duration)

Set the duration property: Duration of maintenance window in minutes.

Parameters:

duration - the duration value to set.

Returns:

the MaintenanceWindowTimeRange object itself.

withStartTime

public MaintenanceWindowTimeRange withStartTime(String startTime)

Set the startTime property: Start time minutes offset from 12am.

Parameters:

startTime - the startTime value to set.

Returns:

the MaintenanceWindowTimeRange object itself.

Applies to