Class AdvancedScheduleMonthlyOccurrence
java.lang.Object
com.azure.resourcemanager.automation.models.AdvancedScheduleMonthlyOccurrence
The properties of the create advanced schedule monthly occurrence.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionday()
Get the day property: Day of the occurrence.Get the occurrence property: Occurrence of the week within the month.void
validate()
Validates the instance.withDay
(ScheduleDay day) Set the day property: Day of the occurrence.withOccurrence
(Integer occurrence) Set the occurrence property: Occurrence of the week within the month.
-
Constructor Details
-
AdvancedScheduleMonthlyOccurrence
public AdvancedScheduleMonthlyOccurrence()
-
-
Method Details
-
occurrence
Get the occurrence property: Occurrence of the week within the month. Must be between 1 and 5.- Returns:
- the occurrence value.
-
withOccurrence
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
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.
-