Class RecurrenceTrigger

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

public final class RecurrenceTrigger extends TriggerBase
The RecurrenceTrigger model.
  • Constructor Details

    • RecurrenceTrigger

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

    • triggerType

      public TriggerType triggerType()
      Get the triggerType property: [Required].
      Overrides:
      triggerType in class TriggerBase
      Returns:
      the triggerType value.
    • frequency

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

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

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

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

      public RecurrenceSchedule schedule()
      Get the schedule property: The recurrence schedule.
      Returns:
      the schedule value.
    • withSchedule

      public RecurrenceTrigger withSchedule(RecurrenceSchedule schedule)
      Set the schedule property: The recurrence schedule.
      Parameters:
      schedule - the schedule value to set.
      Returns:
      the RecurrenceTrigger object itself.
    • withEndTime

      public RecurrenceTrigger withEndTime(String endTime)
      Set the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. Recommented format would be "2022-06-01T00:00:01" If not present, the schedule will run indefinitely.
      Overrides:
      withEndTime in class TriggerBase
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the TriggerBase object itself.
    • withStartTime

      public RecurrenceTrigger withStartTime(String startTime)
      Set the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
      Overrides:
      withStartTime in class TriggerBase
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the TriggerBase object itself.
    • withTimeZone

      public RecurrenceTrigger 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.
      Overrides:
      withTimeZone in class TriggerBase
      Parameters:
      timeZone - the timeZone value to set.
      Returns:
      the TriggerBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class TriggerBase
      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<TriggerBase>
      Overrides:
      toJson in class TriggerBase
      Throws:
      IOException
    • fromJson

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