Class AdvancedSchedule
java.lang.Object
com.azure.resourcemanager.automation.models.AdvancedSchedule
The properties of the create Advanced Schedule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the monthDays property: Days of the month that the job should execute on.Get the monthlyOccurrences property: Occurrences of days within a month.void
validate()
Validates the instance.weekDays()
Get the weekDays property: Days of the week that the job should execute on.withMonthDays
(List<Integer> monthDays) Set the monthDays property: Days of the month that the job should execute on.withMonthlyOccurrences
(List<AdvancedScheduleMonthlyOccurrence> monthlyOccurrences) Set the monthlyOccurrences property: Occurrences of days within a month.withWeekDays
(List<String> weekDays) Set the weekDays property: Days of the week that the job should execute on.
-
Constructor Details
-
AdvancedSchedule
public AdvancedSchedule()
-
-
Method Details
-
weekDays
Get the weekDays property: Days of the week that the job should execute on.- Returns:
- the weekDays value.
-
withWeekDays
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
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
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
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.
-