Class MaintenanceWindow

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MaintenanceWindow
All Implemented Interfaces:
com.azure.json.JsonSerializable<MaintenanceWindow>

public final class MaintenanceWindow extends Object implements com.azure.json.JsonSerializable<MaintenanceWindow>
Maintenance window properties of a server.
  • Constructor Details

    • MaintenanceWindow

      public MaintenanceWindow()
      Creates an instance of MaintenanceWindow class.
  • Method Details

    • customWindow

      public String customWindow()
      Get the customWindow property: Indicates whether custom window is enabled or disabled.
      Returns:
      the customWindow value.
    • withCustomWindow

      public MaintenanceWindow withCustomWindow(String customWindow)
      Set the customWindow property: Indicates whether custom window is enabled or disabled.
      Parameters:
      customWindow - the customWindow value to set.
      Returns:
      the MaintenanceWindow object itself.
    • startHour

      public Integer startHour()
      Get the startHour property: Start hour to be used for maintenance window.
      Returns:
      the startHour value.
    • withStartHour

      public MaintenanceWindow withStartHour(Integer startHour)
      Set the startHour property: Start hour to be used for maintenance window.
      Parameters:
      startHour - the startHour value to set.
      Returns:
      the MaintenanceWindow object itself.
    • startMinute

      public Integer startMinute()
      Get the startMinute property: Start minute to be used for maintenance window.
      Returns:
      the startMinute value.
    • withStartMinute

      public MaintenanceWindow withStartMinute(Integer startMinute)
      Set the startMinute property: Start minute to be used for maintenance window.
      Parameters:
      startMinute - the startMinute value to set.
      Returns:
      the MaintenanceWindow object itself.
    • dayOfWeek

      public Integer dayOfWeek()
      Get the dayOfWeek property: Day of the week to be used for maintenance window.
      Returns:
      the dayOfWeek value.
    • withDayOfWeek

      public MaintenanceWindow withDayOfWeek(Integer dayOfWeek)
      Set the dayOfWeek property: Day of the week to be used for maintenance window.
      Parameters:
      dayOfWeek - the dayOfWeek value to set.
      Returns:
      the MaintenanceWindow 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<MaintenanceWindow>
      Throws:
      IOException
    • fromJson

      public static MaintenanceWindow fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MaintenanceWindow from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MaintenanceWindow 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 MaintenanceWindow.