Class AdvancedScheduleMonthlyOccurrence

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

public final class AdvancedScheduleMonthlyOccurrence extends Object
The properties of the create advanced schedule monthly occurrence.
  • Constructor Details

    • AdvancedScheduleMonthlyOccurrence

      public AdvancedScheduleMonthlyOccurrence()
  • Method Details

    • occurrence

      public Integer occurrence()
      Get the occurrence property: Occurrence of the week within the month. Must be between 1 and 5.
      Returns:
      the occurrence value.
    • withOccurrence

      public AdvancedScheduleMonthlyOccurrence withOccurrence(Integer occurrence)
      Set the occurrence property: Occurrence of the week within the month. Must be between 1 and 5.
      Parameters:
      occurrence - the occurrence value to set.
      Returns:
      the AdvancedScheduleMonthlyOccurrence object itself.
    • day

      public ScheduleDay day()
      Get the day property: Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
      Returns:
      the day value.
    • withDay

      Set the day property: Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.
      Parameters:
      day - the day value to set.
      Returns:
      the AdvancedScheduleMonthlyOccurrence object itself.
    • validate

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