java.lang.Object
com.azure.resourcemanager.machinelearning.models.Recurrence
All Implemented Interfaces:
com.azure.json.JsonSerializable<Recurrence>

public final class Recurrence extends Object implements com.azure.json.JsonSerializable<Recurrence>
The workflow trigger recurrence for ComputeStartStop schedule type.
  • Constructor Details

    • Recurrence

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

    • frequency

      public ComputeRecurrenceFrequency frequency()
      Get the frequency property: [Required] The frequency to trigger schedule.
      Returns:
      the frequency value.
    • withFrequency

      public Recurrence withFrequency(ComputeRecurrenceFrequency frequency)
      Set the frequency property: [Required] The frequency to trigger schedule.
      Parameters:
      frequency - the frequency value to set.
      Returns:
      the Recurrence object itself.
    • interval

      public Integer interval()
      Get the interval property: [Required] Specifies schedule interval in conjunction with frequency.
      Returns:
      the interval value.
    • withInterval

      public Recurrence withInterval(Integer interval)
      Set the interval property: [Required] Specifies schedule interval in conjunction with frequency.
      Parameters:
      interval - the interval value to set.
      Returns:
      the Recurrence object itself.
    • startTime

      public String startTime()
      Get the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.
      Returns:
      the startTime value.
    • withStartTime

      public Recurrence withStartTime(String startTime)
      Set the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the Recurrence object itself.
    • timeZone

      public String timeZone()
      Get the timeZone property: Specifies time zone in which the schedule runs. TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11.
      Returns:
      the timeZone value.
    • withTimeZone

      public Recurrence withTimeZone(String timeZone)
      Set the timeZone property: Specifies time zone in which the schedule runs. TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11.
      Parameters:
      timeZone - the timeZone value to set.
      Returns:
      the Recurrence object itself.
    • schedule

      public ComputeRecurrenceSchedule schedule()
      Get the schedule property: [Required] The recurrence schedule.
      Returns:
      the schedule value.
    • withSchedule

      public Recurrence withSchedule(ComputeRecurrenceSchedule schedule)
      Set the schedule property: [Required] The recurrence schedule.
      Parameters:
      schedule - the schedule value to set.
      Returns:
      the Recurrence 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<Recurrence>
      Throws:
      IOException
    • fromJson

      public static Recurrence fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Recurrence from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Recurrence 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 Recurrence.