Class Schedule
java.lang.Object
com.azure.resourcemanager.containerservice.models.Schedule
- All Implemented Interfaces:
com.azure.json.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
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'.static SchedulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Schedule from the JsonReader.Get the relativeMonthly property: For schedules like: 'recur every month on the first Monday' or 'recur every 3 months on last Friday'.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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'.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Schedule>- Throws:
IOException
-
fromJson
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.
-