ScheduleItem Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ScheduleItem
- com.
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 Schedule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule |
|
Day |
startDay()
Get the start |
| String |
startTime()
Get the start |
|
Day |
stopDay()
Get the stop |
| String |
stopTime()
Get the stop |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Schedule |
withStartDay(DayOfWeek startDay)
Set the start |
|
Schedule |
withStartTime(String startTime)
Set the start |
|
Schedule |
withStopDay(DayOfWeek stopDay)
Set the stop |
|
Schedule |
withStopTime(String stopTime)
Set the stop |
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:
Returns:
Throws:
startDay
public DayOfWeek startDay()
Get the startDay property: Start day.
Returns:
startTime
public String startTime()
Get the startTime property: Start time.
Returns:
stopDay
public DayOfWeek stopDay()
Get the stopDay property: Stop day.
Returns:
stopTime
public String stopTime()
Get the stopTime property: Stop time.
Returns:
toJson
validate
public void validate()
Validates the instance.
withStartDay
public ScheduleItem withStartDay(DayOfWeek startDay)
Set the startDay property: Start day.
Parameters:
Returns:
withStartTime
public ScheduleItem withStartTime(String startTime)
Set the startTime property: Start time.
Parameters:
Returns:
withStopDay
public ScheduleItem withStopDay(DayOfWeek stopDay)
Set the stopDay property: Stop day.
Parameters:
Returns:
withStopTime
public ScheduleItem withStopTime(String stopTime)
Set the stopTime property: Stop time.
Parameters:
Returns: