Class ScheduleUpdate
- java.lang.Object
-
- com.azure.resourcemanager.labservices.models.ScheduleUpdate
-
public final class ScheduleUpdate extends Object
Schedule for automatically turning virtual machines in a lab on and off at specified times. Used for updates.
-
-
Constructor Summary
Constructors Constructor Description ScheduleUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
notes()
Get the notes property: Notes for this 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.String
timeZoneId()
Get the timeZoneId property: The IANA timezone id for the schedule.void
validate()
Validates the instance.ScheduleUpdate
withNotes(String notes)
Set the notes property: Notes for this schedule.ScheduleUpdate
withRecurrencePattern(RecurrencePattern recurrencePattern)
Set the recurrencePattern property: The recurrence pattern of the scheduled actions.ScheduleUpdate
withStartAt(OffsetDateTime startAt)
Set the startAt property: When lab user virtual machines will be started.ScheduleUpdate
withStopAt(OffsetDateTime stopAt)
Set the stopAt property: When lab user virtual machines will be stopped.ScheduleUpdate
withTimeZoneId(String timeZoneId)
Set the timeZoneId property: The IANA timezone id for the schedule.
-
-
-
Method Detail
-
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.
-
withStartAt
public ScheduleUpdate 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 ScheduleUpdate object itself.
-
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.
-
withStopAt
public ScheduleUpdate 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 ScheduleUpdate object itself.
-
recurrencePattern
public RecurrencePattern recurrencePattern()
Get the recurrencePattern property: The recurrence pattern of the scheduled actions.- Returns:
- the recurrencePattern value.
-
withRecurrencePattern
public ScheduleUpdate withRecurrencePattern(RecurrencePattern recurrencePattern)
Set the recurrencePattern property: The recurrence pattern of the scheduled actions.- Parameters:
recurrencePattern
- the recurrencePattern value to set.- Returns:
- the ScheduleUpdate object itself.
-
timeZoneId
public String timeZoneId()
Get the timeZoneId property: The IANA timezone id for the schedule.- Returns:
- the timeZoneId value.
-
withTimeZoneId
public ScheduleUpdate withTimeZoneId(String timeZoneId)
Set the timeZoneId property: The IANA timezone id for the schedule.- Parameters:
timeZoneId
- the timeZoneId value to set.- Returns:
- the ScheduleUpdate object itself.
-
notes
public String notes()
Get the notes property: Notes for this schedule.- Returns:
- the notes value.
-
withNotes
public ScheduleUpdate withNotes(String notes)
Set the notes property: Notes for this schedule.- Parameters:
notes
- the notes value to set.- Returns:
- the ScheduleUpdate object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-