Class TriggerBase
java.lang.Object
com.azure.resourcemanager.machinelearning.models.TriggerBase
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TriggerBase>
- Direct Known Subclasses:
CronTrigger,RecurrenceTrigger
The TriggerBase model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendTime()Get the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset.static TriggerBasefromJson(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.timeZone()Get the timeZone property: Specifies time zone in which the schedule runs.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.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, waitMethods 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
Get the triggerType property: [Required].- Returns:
- the triggerType value.
-
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
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
Get the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.- Returns:
- the startTime value.
-
withStartTime
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
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 TriggerBase 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<TriggerBase>- Throws:
IOException
-
fromJson
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.
-