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 Details

    • ComputeRecurrenceSchedule

      public ComputeRecurrenceSchedule()
      Creates an instance of ComputeRecurrenceSchedule class.
  • Method Details

    • hours

      public List<Integer> hours()
      Get the hours property: [Required] List of hours for the schedule.
      Returns:
      the hours value.
    • withHours

      public ComputeRecurrenceSchedule withHours(List<Integer> hours)
      Set the hours property: [Required] List of hours for the schedule.
      Parameters:
      hours - the hours value to set.
      Returns:
      the ComputeRecurrenceSchedule object itself.
    • minutes

      public List<Integer> minutes()
      Get the minutes property: [Required] List of minutes for the schedule.
      Returns:
      the minutes value.
    • withMinutes

      public ComputeRecurrenceSchedule withMinutes(List<Integer> minutes)
      Set the minutes property: [Required] List of minutes for the schedule.
      Parameters:
      minutes - the minutes value to set.
      Returns:
      the ComputeRecurrenceSchedule object itself.
    • monthDays

      public List<Integer> monthDays()
      Get the monthDays property: List of month days for the schedule.
      Returns:
      the monthDays value.
    • withMonthDays

      public ComputeRecurrenceSchedule withMonthDays(List<Integer> monthDays)
      Set the monthDays property: List of month days for the schedule.
      Parameters:
      monthDays - the monthDays value to set.
      Returns:
      the ComputeRecurrenceSchedule object itself.
    • weekDays

      public List<ComputeWeekDay> weekDays()
      Get the weekDays property: List of days for the schedule.
      Returns:
      the weekDays value.
    • withWeekDays

      public ComputeRecurrenceSchedule withWeekDays(List<ComputeWeekDay> weekDays)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.