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 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.
    • 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.
    • startTime

      public String startTime()
      Get the startTime property: Start time minutes offset from 12am.
      Returns:
      the startTime value.
    • 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.
    • duration

      public String duration()
      Get the duration property: Duration of maintenance window in minutes.
      Returns:
      the duration value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.