ScheduleItem Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ScheduleItem

Implements

public final class ScheduleItem
implements JsonSerializable<ScheduleItem>

Schedule info describing when the server should be started or stopped.

Constructor Summary

Constructor Description
ScheduleItem()

Creates an instance of ScheduleItem class.

Method Summary

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

Reads an instance of ScheduleItem from the JsonReader.

DayOfWeek startDay()

Get the startDay property: Start day.

String startTime()

Get the startTime property: Start time.

DayOfWeek stopDay()

Get the stopDay property: Stop day.

String stopTime()

Get the stopTime property: Stop time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScheduleItem withStartDay(DayOfWeek startDay)

Set the startDay property: Start day.

ScheduleItem withStartTime(String startTime)

Set the startTime property: Start time.

ScheduleItem withStopDay(DayOfWeek stopDay)

Set the stopDay property: Stop day.

ScheduleItem withStopTime(String stopTime)

Set the stopTime property: Stop time.

Methods inherited from java.lang.Object

Constructor Details

ScheduleItem

public ScheduleItem()

Creates an instance of ScheduleItem class.

Method Details

fromJson

public static ScheduleItem fromJson(JsonReader jsonReader)

Reads an instance of ScheduleItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScheduleItem 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.

startDay

public DayOfWeek startDay()

Get the startDay property: Start day.

Returns:

the startDay value.

startTime

public String startTime()

Get the startTime property: Start time.

Returns:

the startTime value.

stopDay

public DayOfWeek stopDay()

Get the stopDay property: Stop day.

Returns:

the stopDay value.

stopTime

public String stopTime()

Get the stopTime property: Stop time.

Returns:

the stopTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withStartDay

public ScheduleItem withStartDay(DayOfWeek startDay)

Set the startDay property: Start day.

Parameters:

startDay - the startDay value to set.

Returns:

the ScheduleItem object itself.

withStartTime

public ScheduleItem withStartTime(String startTime)

Set the startTime property: Start time.

Parameters:

startTime - the startTime value to set.

Returns:

the ScheduleItem object itself.

withStopDay

public ScheduleItem withStopDay(DayOfWeek stopDay)

Set the stopDay property: Stop day.

Parameters:

stopDay - the stopDay value to set.

Returns:

the ScheduleItem object itself.

withStopTime

public ScheduleItem withStopTime(String stopTime)

Set the stopTime property: Stop time.

Parameters:

stopTime - the stopTime value to set.

Returns:

the ScheduleItem object itself.

Applies to