Share via


ScheduleInner Class

public final class ScheduleInner
extends ProxyResource

Schedule for automatically turning virtual machines in a lab on and off at specified times.

Constructor Summary

Constructor Description
ScheduleInner()

Creates an instance of ScheduleInner class.

Method Summary

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

Reads an instance of ScheduleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String notes()

Get the notes property: Notes for this schedule.

ProvisioningState provisioningState()

Get the provisioningState property: Current provisioning state of the schedule.

RecurrencePattern recurrencePattern()

Get the recurrencePattern property: The recurrence pattern of the scheduled actions.

OffsetDateTime startAt()

Get the startAt property: When lab user virtual machines will be started.

OffsetDateTime stopAt()

Get the stopAt property: When lab user virtual machines will be stopped.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the schedule.

String timeZoneId()

Get the timeZoneId property: The IANA timezone id for the schedule.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ScheduleInner withNotes(String notes)

Set the notes property: Notes for this schedule.

ScheduleInner withRecurrencePattern(RecurrencePattern recurrencePattern)

Set the recurrencePattern property: The recurrence pattern of the scheduled actions.

ScheduleInner withStartAt(OffsetDateTime startAt)

Set the startAt property: When lab user virtual machines will be started.

ScheduleInner withStopAt(OffsetDateTime stopAt)

Set the stopAt property: When lab user virtual machines will be stopped.

ScheduleInner withTimeZoneId(String timeZoneId)

Set the timeZoneId property: The IANA timezone id for the schedule.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ScheduleInner

public ScheduleInner()

Creates an instance of ScheduleInner class.

Method Details

fromJson

public static ScheduleInner fromJson(JsonReader jsonReader)

Reads an instance of ScheduleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ScheduleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ScheduleInner.name()

Returns:

the name value.

notes

public String notes()

Get the notes property: Notes for this schedule.

Returns:

the notes value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Current provisioning state of the schedule.

Returns:

the provisioningState value.

recurrencePattern

public RecurrencePattern recurrencePattern()

Get the recurrencePattern property: The recurrence pattern of the scheduled actions.

Returns:

the recurrencePattern value.

startAt

public OffsetDateTime startAt()

Get the startAt property: When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.

Returns:

the startAt value.

stopAt

public OffsetDateTime stopAt()

Get the stopAt property: When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.

Returns:

the stopAt value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the schedule.

Returns:

the systemData value.

timeZoneId

public String timeZoneId()

Get the timeZoneId property: The IANA timezone id for the schedule.

Returns:

the timeZoneId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScheduleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ScheduleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withNotes

public ScheduleInner withNotes(String notes)

Set the notes property: Notes for this schedule.

Parameters:

notes - the notes value to set.

Returns:

the ScheduleInner object itself.

withRecurrencePattern

public ScheduleInner withRecurrencePattern(RecurrencePattern recurrencePattern)

Set the recurrencePattern property: The recurrence pattern of the scheduled actions.

Parameters:

recurrencePattern - the recurrencePattern value to set.

Returns:

the ScheduleInner object itself.

withStartAt

public ScheduleInner withStartAt(OffsetDateTime startAt)

Set the startAt property: When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.

Parameters:

startAt - the startAt value to set.

Returns:

the ScheduleInner object itself.

withStopAt

public ScheduleInner withStopAt(OffsetDateTime stopAt)

Set the stopAt property: When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.

Parameters:

stopAt - the stopAt value to set.

Returns:

the ScheduleInner object itself.

withTimeZoneId

public ScheduleInner withTimeZoneId(String timeZoneId)

Set the timeZoneId property: The IANA timezone id for the schedule.

Parameters:

timeZoneId - the timeZoneId value to set.

Returns:

the ScheduleInner object itself.

Applies to