ScheduleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. labservices. fluent. models. ScheduleInner
- com.
- com.
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 Schedule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule |
| 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. |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Recurrence |
recurrencePattern()
Get the recurrence |
|
Offset |
startAt()
Get the start |
|
Offset |
stopAt()
Get the stop |
|
System |
systemData()
Get the system |
| String |
timeZoneId()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Schedule |
withNotes(String notes)
Set the notes property: Notes for this schedule. |
|
Schedule |
withRecurrencePattern(RecurrencePattern recurrencePattern)
Set the recurrence |
|
Schedule |
withStartAt(OffsetDateTime startAt)
Set the start |
|
Schedule |
withStopAt(OffsetDateTime stopAt)
Set the stop |
|
Schedule |
withTimeZoneId(String timeZoneId)
Set the time |
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:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ScheduleInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ScheduleInner.name()Returns:
notes
public String notes()
Get the notes property: Notes for this schedule.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Current provisioning state of the schedule.
Returns:
recurrencePattern
public RecurrencePattern recurrencePattern()
Get the recurrencePattern property: The recurrence pattern of the scheduled actions.
Returns:
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:
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:
systemData
public SystemData systemData()
Get the systemData property: Metadata pertaining to creation and last modification of the schedule.
Returns:
timeZoneId
public String timeZoneId()
Get the timeZoneId property: The IANA timezone id for the schedule.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ScheduleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ScheduleInner.type()Returns:
validate
public void validate()
Validates the instance.
withNotes
public ScheduleInner withNotes(String notes)
Set the notes property: Notes for this schedule.
Parameters:
Returns:
withRecurrencePattern
public ScheduleInner withRecurrencePattern(RecurrencePattern recurrencePattern)
Set the recurrencePattern property: The recurrence pattern of the scheduled actions.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withTimeZoneId
public ScheduleInner withTimeZoneId(String timeZoneId)
Set the timeZoneId property: The IANA timezone id for the schedule.
Parameters:
Returns: