Class Schedule
java.lang.Object
com.azure.resourcemanager.containerservice.models.Schedule
One and only one of the schedule types should be specified. Choose either 'daily', 'weekly', 'absoluteMonthly' or
'relativeMonthly' for your maintenance schedule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.daily()Get the daily property: For schedules like: 'recur every day' or 'recur every 3 days'.Get the relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.voidvalidate()Validates the instance.weekly()Get the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.withAbsoluteMonthly(AbsoluteMonthlySchedule absoluteMonthly) Set the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.withDaily(DailySchedule daily) Set the daily property: For schedules like: 'recur every day' or 'recur every 3 days'.withRelativeMonthly(RelativeMonthlySchedule relativeMonthly) Set the relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.withWeekly(WeeklySchedule weekly) Set the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.
-
Constructor Details
-
Schedule
public Schedule()Creates an instance of Schedule class.
-
-
Method Details
-
daily
Get the daily property: For schedules like: 'recur every day' or 'recur every 3 days'.- Returns:
- the daily value.
-
withDaily
Set the daily property: For schedules like: 'recur every day' or 'recur every 3 days'.- Parameters:
daily- the daily value to set.- Returns:
- the Schedule object itself.
-
weekly
Get the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.- Returns:
- the weekly value.
-
withWeekly
Set the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.- Parameters:
weekly- the weekly value to set.- Returns:
- the Schedule object itself.
-
absoluteMonthly
Get the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.- Returns:
- the absoluteMonthly value.
-
withAbsoluteMonthly
Set the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.- Parameters:
absoluteMonthly- the absoluteMonthly value to set.- Returns:
- the Schedule object itself.
-
relativeMonthly
Get the relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.- Returns:
- the relativeMonthly value.
-
withRelativeMonthly
Set the relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.- Parameters:
relativeMonthly- the relativeMonthly value to set.- Returns:
- the Schedule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-