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 Details

    • getName

      public String getName()
      Get the name property: Display name for the Schedule.
      Returns:
      the name value.
    • getScheduleType

      public ScheduleType getScheduleType()
      Get the scheduleType property: Supported type this scheduled task represents.
      Returns:
      the scheduleType value.
    • getScheduleFrequency

      public ScheduleFrequency getScheduleFrequency()
      Get the scheduleFrequency property: The frequency of this scheduled task.
      Returns:
      the scheduleFrequency value.
    • getTime

      public LocalTime getTime()
      Get the time property: The target time to trigger the action. The format is HH:MM.
      Returns:
      the time value.
    • getTimeZone

      public String getTimeZone()
      Get the timeZone property: The IANA timezone id at which the schedule should execute.
      Returns:
      the timeZone value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DevBoxSchedule>
      Throws:
      IOException
    • fromJson

      public static DevBoxSchedule fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.