Class AdvancedSchedule

java.lang.Object
com.azure.resourcemanager.automation.models.AdvancedSchedule

public final class AdvancedSchedule extends Object
The properties of the create Advanced Schedule.
  • Constructor Details

    • AdvancedSchedule

      public AdvancedSchedule()
  • Method Details

    • weekDays

      public List<String> weekDays()
      Get the weekDays property: Days of the week that the job should execute on.
      Returns:
      the weekDays value.
    • withWeekDays

      public AdvancedSchedule withWeekDays(List<String> weekDays)
      Set the weekDays property: Days of the week that the job should execute on.
      Parameters:
      weekDays - the weekDays value to set.
      Returns:
      the AdvancedSchedule object itself.
    • monthDays

      public List<Integer> monthDays()
      Get the monthDays property: Days of the month that the job should execute on. Must be between 1 and 31.
      Returns:
      the monthDays value.
    • withMonthDays

      public AdvancedSchedule withMonthDays(List<Integer> monthDays)
      Set the monthDays property: Days of the month that the job should execute on. Must be between 1 and 31.
      Parameters:
      monthDays - the monthDays value to set.
      Returns:
      the AdvancedSchedule object itself.
    • monthlyOccurrences

      public List<AdvancedScheduleMonthlyOccurrence> monthlyOccurrences()
      Get the monthlyOccurrences property: Occurrences of days within a month.
      Returns:
      the monthlyOccurrences value.
    • withMonthlyOccurrences

      public AdvancedSchedule withMonthlyOccurrences(List<AdvancedScheduleMonthlyOccurrence> monthlyOccurrences)
      Set the monthlyOccurrences property: Occurrences of days within a month.
      Parameters:
      monthlyOccurrences - the monthlyOccurrences value to set.
      Returns:
      the AdvancedSchedule object itself.
    • validate

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