Class MaintenanceWindowPatchProperties

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

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

    • MaintenanceWindowPatchProperties

      public MaintenanceWindowPatchProperties()
      Creates an instance of MaintenanceWindowPatchProperties 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 MaintenanceWindowPatchProperties 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 MaintenanceWindowPatchProperties object itself.
    • dayOfWeek

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

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

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