Cron Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. Cron
- com.
Implements
public final class Cron
implements JsonSerializable<Cron>
The workflow trigger cron for ComputeStartStop schedule type.
Constructor Summary
| Constructor | Description |
|---|---|
| Cron() |
Creates an instance of Cron class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
expression()
Get the expression property: [Required] Specifies cron expression of schedule. |
| static Cron |
fromJson(JsonReader jsonReader)
Reads an instance of Cron from the Json |
| String |
startTime()
Get the start |
| String |
timeZone()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Cron |
withExpression(String expression)
Set the expression property: [Required] Specifies cron expression of schedule. |
| Cron |
withStartTime(String startTime)
Set the start |
| Cron |
withTimeZone(String timeZone)
Set the time |
Methods inherited from java.lang.Object
Constructor Details
Cron
public Cron()
Creates an instance of Cron class.
Method Details
expression
public String expression()
Get the expression property: [Required] Specifies cron expression of schedule. The expression should follow NCronTab format.
Returns:
fromJson
public static Cron fromJson(JsonReader jsonReader)
Reads an instance of Cron from the JsonReader.
Parameters:
Returns:
Throws:
startTime
public String startTime()
Get the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.
Returns:
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:
toJson
validate
public void validate()
Validates the instance.
withExpression
public Cron withExpression(String expression)
Set the expression property: [Required] Specifies cron expression of schedule. The expression should follow NCronTab format.
Parameters:
Returns:
withStartTime
public Cron withStartTime(String startTime)
Set the startTime property: The start time in yyyy-MM-ddTHH:mm:ss format.
Parameters:
Returns:
withTimeZone
public Cron 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:
Returns: