DevBoxSchedule Class

  • java.lang.Object
    • com.azure.developer.devcenter.models.DevBoxSchedule

Implements

public final class DevBoxSchedule
implements JsonSerializable<DevBoxSchedule>

A Schedule to execute action.

Method Summary

Modifier and Type Method and Description
static DevBoxSchedule fromJson(JsonReader jsonReader)

Reads an instance of DevBoxSchedule from the JsonReader.

String getName()

Get the name property: Display name for the Schedule.

ScheduleFrequency getScheduleFrequency()

Get the scheduleFrequency property: The frequency of this scheduled task.

ScheduleType getScheduleType()

Get the scheduleType property: Supported type this scheduled task represents.

LocalTime getTime()

Get the time property: The target time to trigger the action.

String getTimeZone()

Get the timeZone property: The IANA timezone id at which the schedule should execute.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DevBoxSchedule fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getName

public String getName()

Get the name property: Display name for the Schedule.

Returns:

the name value.

getScheduleFrequency

public ScheduleFrequency getScheduleFrequency()

Get the scheduleFrequency property: The frequency of this scheduled task.

Returns:

the scheduleFrequency value.

getScheduleType

public ScheduleType getScheduleType()

Get the scheduleType property: Supported type this scheduled task represents.

Returns:

the scheduleType 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 JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to