Class Recurrence
java.lang.Object
com.azure.resourcemanager.machinelearning.models.Recurrence
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Recurrence>
The workflow trigger recurrence for ComputeStartStop schedule type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the frequency property: [Required] The frequency to trigger schedule.static RecurrencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Recurrence from the JsonReader.interval()Get the interval property: [Required] Specifies schedule interval in conjunction with frequency.schedule()Get the schedule property: [Required] The recurrence schedule.Get the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.timeZone()Get the timeZone property: Specifies time zone in which the schedule runs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFrequency(ComputeRecurrenceFrequency frequency) Set the frequency property: [Required] The frequency to trigger schedule.withInterval(Integer interval) Set the interval property: [Required] Specifies schedule interval in conjunction with frequency.withSchedule(ComputeRecurrenceSchedule schedule) Set the schedule property: [Required] The recurrence schedule.withStartTime(String startTime) Set the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.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, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Recurrence
public Recurrence()Creates an instance of Recurrence class.
-
-
Method Details
-
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 Recurrence object itself.
-
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 Recurrence object itself.
-
startTime
Get the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.- Returns:
- the startTime value.
-
withStartTime
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
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
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
Get the schedule property: [Required] The recurrence schedule.- Returns:
- the schedule value.
-
withSchedule
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Recurrence>- Throws:
IOException
-
fromJson
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.
-