Recurrence Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.Recurrence

Implements

public final class Recurrence
implements JsonSerializable<Recurrence>

The workflow trigger recurrence for ComputeStartStop schedule type.

Constructor Summary

Constructor Description
Recurrence()

Creates an instance of Recurrence class.

Method Summary

Modifier and Type Method and Description
ComputeRecurrenceFrequency frequency()

Get the frequency property: [Required] The frequency to trigger schedule.

static Recurrence fromJson(JsonReader jsonReader)

Reads an instance of Recurrence from the JsonReader.

Integer interval()

Get the interval property: [Required] Specifies schedule interval in conjunction with frequency.

ComputeRecurrenceSchedule schedule()

Get the schedule property: [Required] The recurrence schedule.

String startTime()

Get the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.

String timeZone()

Get the timeZone property: Specifies time zone in which the schedule runs.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Recurrence withFrequency(ComputeRecurrenceFrequency frequency)

Set the frequency property: [Required] The frequency to trigger schedule.

Recurrence withInterval(Integer interval)

Set the interval property: [Required] Specifies schedule interval in conjunction with frequency.

Recurrence withSchedule(ComputeRecurrenceSchedule schedule)

Set the schedule property: [Required] The recurrence schedule.

Recurrence withStartTime(String startTime)

Set the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.

Recurrence withTimeZone(String timeZone)

Set the timeZone property: Specifies time zone in which the schedule runs.

Methods inherited from java.lang.Object

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.

fromJson

public static Recurrence fromJson(JsonReader jsonReader)

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.

interval

public Integer interval()

Get the interval property: [Required] Specifies schedule interval in conjunction with frequency.

Returns:

the interval value.

schedule

public ComputeRecurrenceSchedule schedule()

Get the schedule property: [Required] The recurrence schedule.

Returns:

the schedule value.

startTime

public String startTime()

Get the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.

Returns:

the startTime value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

Applies to