Class RecurrenceSchedule
java.lang.Object
com.azure.resourcemanager.machinelearning.models.RecurrenceSchedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RecurrenceSchedule>
public final class RecurrenceSchedule
extends Object
implements com.azure.json.JsonSerializable<RecurrenceSchedule>
The RecurrenceSchedule model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecurrenceSchedulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecurrenceSchedule from the JsonReader.hours()Get the hours property: [Required] List of hours for the schedule.minutes()Get the minutes property: [Required] List of minutes for the schedule.Get the monthDays property: List of month days for the schedule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.weekDays()Get the weekDays property: List of days for the schedule.Set the hours property: [Required] List of hours for the schedule.withMinutes(List<Integer> minutes) Set the minutes property: [Required] List of minutes for the schedule.withMonthDays(List<Integer> monthDays) Set the monthDays property: List of month days for the schedule.withWeekDays(List<WeekDay> weekDays) Set the weekDays property: List of days for the schedule.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
-
RecurrenceSchedule
public RecurrenceSchedule()Creates an instance of RecurrenceSchedule class.
-
-
Method Details
-
hours
Get the hours property: [Required] List of hours for the schedule.- Returns:
- the hours value.
-
withHours
Set the hours property: [Required] List of hours for the schedule.- Parameters:
hours- the hours value to set.- Returns:
- the RecurrenceSchedule object itself.
-
minutes
Get the minutes property: [Required] List of minutes for the schedule.- Returns:
- the minutes value.
-
withMinutes
Set the minutes property: [Required] List of minutes for the schedule.- Parameters:
minutes- the minutes value to set.- Returns:
- the RecurrenceSchedule object itself.
-
weekDays
Get the weekDays property: List of days for the schedule.- Returns:
- the weekDays value.
-
withWeekDays
Set the weekDays property: List of days for the schedule.- Parameters:
weekDays- the weekDays value to set.- Returns:
- the RecurrenceSchedule object itself.
-
monthDays
Get the monthDays property: List of month days for the schedule.- Returns:
- the monthDays value.
-
withMonthDays
Set the monthDays property: List of month days for the schedule.- Parameters:
monthDays- the monthDays value to set.- Returns:
- the RecurrenceSchedule 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<RecurrenceSchedule>- Throws:
IOException
-
fromJson
Reads an instance of RecurrenceSchedule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RecurrenceSchedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RecurrenceSchedule.
-