Class RelativeMonthlySchedule

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

public final class RelativeMonthlySchedule extends Object
For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.
  • Constructor Details

    • RelativeMonthlySchedule

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

    • intervalMonths

      public int intervalMonths()
      Get the intervalMonths property: Specifies the number of months between each set of occurrences.
      Returns:
      the intervalMonths value.
    • withIntervalMonths

      public RelativeMonthlySchedule withIntervalMonths(int intervalMonths)
      Set the intervalMonths property: Specifies the number of months between each set of occurrences.
      Parameters:
      intervalMonths - the intervalMonths value to set.
      Returns:
      the RelativeMonthlySchedule object itself.
    • weekIndex

      public Type weekIndex()
      Get the weekIndex property: The week index. Specifies on which week of the month the dayOfWeek applies.
      Returns:
      the weekIndex value.
    • withWeekIndex

      public RelativeMonthlySchedule withWeekIndex(Type weekIndex)
      Set the weekIndex property: The week index. Specifies on which week of the month the dayOfWeek applies.
      Parameters:
      weekIndex - the weekIndex value to set.
      Returns:
      the RelativeMonthlySchedule 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 RelativeMonthlySchedule 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 RelativeMonthlySchedule object itself.
    • validate

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