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>
The RecurrenceTrigger model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the frequency property: [Required] The frequency to trigger schedule.static RecurrenceTriggerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecurrenceTrigger from the JsonReader.intinterval()Get the interval property: [Required] Specifies schedule interval in conjunction with frequency.schedule()Get the schedule property: The recurrence schedule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the triggerType property: [Required].voidvalidate()Validates the instance.withEndTime(String endTime) Set the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset.withFrequency(RecurrenceFrequency frequency) Set the frequency property: [Required] The frequency to trigger schedule.withInterval(int interval) Set the interval property: [Required] Specifies schedule interval in conjunction with frequency.withSchedule(RecurrenceSchedule schedule) Set the schedule property: The recurrence schedule.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 com.azure.resourcemanager.machinelearning.models.TriggerBase
endTime, startTime, timeZoneMethods 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
-
RecurrenceTrigger
public RecurrenceTrigger()Creates an instance of RecurrenceTrigger class.
-
-
Method Details
-
triggerType
Get the triggerType property: [Required].- Overrides:
triggerTypein classTriggerBase- Returns:
- the triggerType value.
-
frequency
Get the frequency property: [Required] The frequency to trigger schedule.- Returns:
- the frequency value.
-
withFrequency
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
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
Get the schedule property: The recurrence schedule.- Returns:
- the schedule value.
-
withSchedule
Set the schedule property: The recurrence schedule.- Parameters:
schedule- the schedule value to set.- Returns:
- the RecurrenceTrigger object itself.
-
withEndTime
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:
withEndTimein classTriggerBase- Parameters:
endTime- the endTime value to set.- Returns:
- the TriggerBase object itself.
-
withStartTime
Set the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.- Overrides:
withStartTimein classTriggerBase- Parameters:
startTime- the startTime value to set.- Returns:
- the TriggerBase object itself.
-
withTimeZone
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:
withTimeZonein classTriggerBase- Parameters:
timeZone- the timeZone value to set.- Returns:
- the TriggerBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classTriggerBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TriggerBase>- Overrides:
toJsonin classTriggerBase- Throws:
IOException
-
fromJson
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.
-