Class MaintenanceWindowTimeRange
java.lang.Object
com.azure.resourcemanager.sql.models.MaintenanceWindowTimeRange
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MaintenanceWindowTimeRange>
public final class MaintenanceWindowTimeRange
extends Object
implements com.azure.json.JsonSerializable<MaintenanceWindowTimeRange>
Maintenance window time range.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MaintenanceWindowTimeRange class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dayOfWeek property: Day of maintenance window.duration()Get the duration property: Duration of maintenance window in minutes.static MaintenanceWindowTimeRangefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MaintenanceWindowTimeRange from the JsonReader.Get the startTime property: Start time minutes offset from 12am.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDayOfWeek(DayOfWeek dayOfWeek) Set the dayOfWeek property: Day of maintenance window.withDuration(String duration) Set the duration property: Duration of maintenance window in minutes.withStartTime(String startTime) Set the startTime property: Start time minutes offset from 12am.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MaintenanceWindowTimeRange
public MaintenanceWindowTimeRange()Creates an instance of MaintenanceWindowTimeRange class.
-
-
Method Details
-
dayOfWeek
Get the dayOfWeek property: Day of maintenance window.- Returns:
- the dayOfWeek value.
-
withDayOfWeek
Set the dayOfWeek property: Day of maintenance window.- Parameters:
dayOfWeek- the dayOfWeek value to set.- Returns:
- the MaintenanceWindowTimeRange object itself.
-
startTime
Get the startTime property: Start time minutes offset from 12am.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time minutes offset from 12am.- Parameters:
startTime- the startTime value to set.- Returns:
- the MaintenanceWindowTimeRange object itself.
-
duration
Get the duration property: Duration of maintenance window in minutes.- Returns:
- the duration value.
-
withDuration
Set the duration property: Duration of maintenance window in minutes.- Parameters:
duration- the duration value to set.- Returns:
- the MaintenanceWindowTimeRange object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MaintenanceWindowTimeRange>- Throws:
IOException
-
fromJson
public static MaintenanceWindowTimeRange fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-