java.lang.Object
com.azure.resourcemanager.containerservice.models.WeeklySchedule

public final class WeeklySchedule extends Object
For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.
  • Constructor Details

    • WeeklySchedule

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

    • intervalWeeks

      public int intervalWeeks()
      Get the intervalWeeks property: Specifies the number of weeks between each set of occurrences.
      Returns:
      the intervalWeeks value.
    • withIntervalWeeks

      public WeeklySchedule withIntervalWeeks(int intervalWeeks)
      Set the intervalWeeks property: Specifies the number of weeks between each set of occurrences.
      Parameters:
      intervalWeeks - the intervalWeeks value to set.
      Returns:
      the WeeklySchedule object itself.
    • dayOfWeek

      public WeekDay dayOfWeek()
      Get the dayOfWeek property: Specifies on which day of the week the maintenance occurs.
      Returns:
      the dayOfWeek value.
    • withDayOfWeek

      public WeeklySchedule withDayOfWeek(WeekDay dayOfWeek)
      Set the dayOfWeek property: Specifies on which day of the week the maintenance occurs.
      Parameters:
      dayOfWeek - the dayOfWeek value to set.
      Returns:
      the WeeklySchedule object itself.
    • validate

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