Class AdvancedSchedule
java.lang.Object
com.azure.resourcemanager.automation.models.AdvancedSchedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AdvancedSchedule>
public final class AdvancedSchedule
extends Object
implements com.azure.json.JsonSerializable<AdvancedSchedule>
The properties of the create Advanced Schedule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancedSchedule
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AdvancedSchedule from the JsonReader.Get the monthDays property: Days of the month that the job should execute on.Get the monthlyOccurrences property: Occurrences of days within a month.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AdvancedSchedule
public AdvancedSchedule()Creates an instance of AdvancedSchedule class.
-
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AdvancedSchedule>
- Throws:
IOException
-
fromJson
Reads an instance of AdvancedSchedule from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AdvancedSchedule 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 AdvancedSchedule.
-