Class ComputeRecurrenceSchedule
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ComputeRecurrenceSchedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeRecurrenceSchedule>
public final class ComputeRecurrenceSchedule
extends Object
implements com.azure.json.JsonSerializable<ComputeRecurrenceSchedule>
The ComputeRecurrenceSchedule model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ComputeRecurrenceSchedule class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeRecurrenceSchedulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeRecurrenceSchedule 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<ComputeWeekDay> 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
-
ComputeRecurrenceSchedule
public ComputeRecurrenceSchedule()Creates an instance of ComputeRecurrenceSchedule 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 ComputeRecurrenceSchedule 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 ComputeRecurrenceSchedule 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 ComputeRecurrenceSchedule 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 ComputeRecurrenceSchedule 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<ComputeRecurrenceSchedule>- Throws:
IOException
-
fromJson
public static ComputeRecurrenceSchedule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ComputeRecurrenceSchedule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ComputeRecurrenceSchedule 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 ComputeRecurrenceSchedule.
-