Schedule Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.Schedule

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
AbsoluteMonthlySchedule absoluteMonthly()

Get the absoluteMonthly property: For schedules like: 'recur every month on the 15th' or 'recur every 3 months on the 20th'.

DailySchedule 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 JsonReader.

RelativeMonthlySchedule relativeMonthly()

Get the relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WeeklySchedule weekly()

Get the weekly property: For schedules like: 'recur every Monday' or 'recur every 3 weeks on Wednesday'.

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'.

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 relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.

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:

the absoluteMonthly value.

daily

public DailySchedule daily()

Get the daily property: For schedules like: 'recur every day' or 'recur every 3 days'.

Returns:

the daily value.

fromJson

public static Schedule fromJson(JsonReader jsonReader)

Reads an instance of Schedule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Schedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Schedule.

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:

the relativeMonthly value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

the weekly value.

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:

absoluteMonthly - the absoluteMonthly value to set.

Returns:

the Schedule object itself.

withDaily

public Schedule withDaily(DailySchedule daily)

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.

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:

relativeMonthly - the relativeMonthly value to set.

Returns:

the Schedule object itself.

withWeekly

public Schedule withWeekly(WeeklySchedule weekly)

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.

Applies to