Class DevBoxSchedule
java.lang.Object
com.azure.developer.devcenter.models.DevBoxSchedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DevBoxSchedule>
public final class DevBoxSchedule
extends Object
implements com.azure.json.JsonSerializable<DevBoxSchedule>
A Schedule to execute action.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DevBoxSchedule
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DevBoxSchedule from the JsonReader.getName()
Get the name property: Display name for the Schedule.Get the scheduleFrequency property: The frequency of this scheduled task.Get the scheduleType property: Supported type this scheduled task represents.getTime()
Get the time property: The target time to trigger the action.Get the timeZone property: The IANA timezone id at which the schedule should execute.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getName
Get the name property: Display name for the Schedule.- Returns:
- the name value.
-
getScheduleType
Get the scheduleType property: Supported type this scheduled task represents.- Returns:
- the scheduleType value.
-
getScheduleFrequency
Get the scheduleFrequency property: The frequency of this scheduled task.- Returns:
- the scheduleFrequency value.
-
getTime
Get the time property: The target time to trigger the action. The format is HH:MM.- Returns:
- the time value.
-
getTimeZone
Get the timeZone property: The IANA timezone id at which the schedule should execute.- Returns:
- the timeZone value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DevBoxSchedule>
- Throws:
IOException
-
fromJson
Reads an instance of DevBoxSchedule from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DevBoxSchedule 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 DevBoxSchedule.
-