java.lang.Object
com.azure.resourcemanager.machinelearning.models.TriggerBase
All Implemented Interfaces:
com.azure.json.JsonSerializable<TriggerBase>
Direct Known Subclasses:
CronTrigger, RecurrenceTrigger

public class TriggerBase extends Object implements com.azure.json.JsonSerializable<TriggerBase>
The TriggerBase model.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of TriggerBase class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of TriggerBase from the JsonReader.
    Get the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
    Get the timeZone property: Specifies time zone in which the schedule runs.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the triggerType property: [Required].
    void
    Validates the instance.
    Set the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset.
    withStartTime(String startTime)
    Set the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
    withTimeZone(String timeZone)
    Set the timeZone property: Specifies time zone in which the schedule runs.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • TriggerBase

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

    • triggerType

      public TriggerType triggerType()
      Get the triggerType property: [Required].
      Returns:
      the triggerType value.
    • endTime

      public String endTime()
      Get 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.
      Returns:
      the endTime value.
    • withEndTime

      public TriggerBase 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.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the TriggerBase object itself.
    • startTime

      public String startTime()
      Get the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
      Returns:
      the startTime value.
    • withStartTime

      public TriggerBase withStartTime(String startTime)
      Set the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the TriggerBase 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 TriggerBase 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 TriggerBase 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<TriggerBase>
      Throws:
      IOException
    • fromJson

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