Schedule Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. Schedule
- com.
Implements
public final class Schedule
implements JsonSerializable<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
Constructor | Description |
---|---|
Schedule() |
Creates an instance of Schedule class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Absolute |
absoluteMonthly()
Get the absolute |
Daily |
daily()
Get the daily property: For schedules like: 'recur every day' or 'recur every 3 days'. |
static Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule from the Json |
Relative |
relativeMonthly()
Get the relative |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Weekly |
weekly()
Get the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'. |
Schedule |
withAbsoluteMonthly(AbsoluteMonthlySchedule absoluteMonthly)
Set the absolute |
Schedule |
withDaily(DailySchedule daily)
Set the daily property: For schedules like: 'recur every day' or 'recur every 3 days'. |
Schedule |
withRelativeMonthly(RelativeMonthlySchedule relativeMonthly)
Set the relative |
Schedule |
withWeekly(WeeklySchedule weekly)
Set the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'. |
Methods inherited from java.lang.Object
Constructor Details
Schedule
public Schedule()
Creates an instance of Schedule class.
Method Details
absoluteMonthly
public AbsoluteMonthlySchedule absoluteMonthly()
Get the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.
Returns:
daily
public DailySchedule daily()
Get the daily property: For schedules like: 'recur every day' or 'recur every 3 days'.
Returns:
fromJson
public static Schedule fromJson(JsonReader jsonReader)
Reads an instance of Schedule from the JsonReader.
Parameters:
Returns:
Throws:
relativeMonthly
public RelativeMonthlySchedule relativeMonthly()
Get the relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.
Returns:
toJson
validate
public void validate()
Validates the instance.
weekly
public WeeklySchedule weekly()
Get the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.
Returns:
withAbsoluteMonthly
public Schedule withAbsoluteMonthly(AbsoluteMonthlySchedule absoluteMonthly)
Set the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.
Parameters:
Returns:
withDaily
public Schedule withDaily(DailySchedule daily)
Set the daily property: For schedules like: 'recur every day' or 'recur every 3 days'.
Parameters:
Returns:
withRelativeMonthly
public Schedule 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'.
Parameters:
Returns:
withWeekly
public Schedule withWeekly(WeeklySchedule weekly)
Set the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.
Parameters:
Returns:
Applies to
Azure SDK for Java