Class MaintenanceWindowProperties

java.lang.Object
com.azure.resourcemanager.desktopvirtualization.models.MaintenanceWindowProperties

public final class MaintenanceWindowProperties extends Object
Maintenance window starting hour and day of week.
  • Constructor Details

    • MaintenanceWindowProperties

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

    • hour

      public Integer hour()
      Get the hour property: The update start hour of the day. (0 - 23).
      Returns:
      the hour value.
    • withHour

      public MaintenanceWindowProperties withHour(Integer hour)
      Set the hour property: The update start hour of the day. (0 - 23).
      Parameters:
      hour - the hour value to set.
      Returns:
      the MaintenanceWindowProperties object itself.
    • dayOfWeek

      public DayOfWeek dayOfWeek()
      Get the dayOfWeek property: Day of the week.
      Returns:
      the dayOfWeek value.
    • withDayOfWeek

      public MaintenanceWindowProperties withDayOfWeek(DayOfWeek dayOfWeek)
      Set the dayOfWeek property: Day of the week.
      Parameters:
      dayOfWeek - the dayOfWeek value to set.
      Returns:
      the MaintenanceWindowProperties object itself.
    • validate

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