Class ScheduleProperties
- java.lang.Object
-
- com.azure.resourcemanager.labservices.fluent.models.ScheduleUpdateProperties
-
- com.azure.resourcemanager.labservices.fluent.models.ScheduleProperties
-
public final class ScheduleProperties extends ScheduleUpdateProperties
Schedule resource properties.
-
-
Constructor Summary
Constructors Constructor Description ScheduleProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisioningState
provisioningState()
Get the provisioningState property: Current provisioning state of the schedule.void
validate()
Validates the instance.ScheduleProperties
withNotes(String notes)
Set the notes property: Notes for this schedule.ScheduleProperties
withRecurrencePattern(RecurrencePattern recurrencePattern)
Set the recurrencePattern property: The recurrence pattern of the scheduled actions.ScheduleProperties
withStartAt(OffsetDateTime startAt)
Set the startAt property: When lab user virtual machines will be started.ScheduleProperties
withStopAt(OffsetDateTime stopAt)
Set the stopAt property: When lab user virtual machines will be stopped.ScheduleProperties
withTimeZoneId(String timeZoneId)
Set the timeZoneId property: The IANA timezone id for the schedule.-
Methods inherited from class com.azure.resourcemanager.labservices.fluent.models.ScheduleUpdateProperties
notes, recurrencePattern, startAt, stopAt, timeZoneId
-
-
-
-
Method Detail
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Current provisioning state of the schedule.- Returns:
- the provisioningState value.
-
withStartAt
public ScheduleProperties 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.- Overrides:
withStartAt
in classScheduleUpdateProperties
- Parameters:
startAt
- the startAt value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withStopAt
public ScheduleProperties 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.- Overrides:
withStopAt
in classScheduleUpdateProperties
- Parameters:
stopAt
- the stopAt value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withRecurrencePattern
public ScheduleProperties withRecurrencePattern(RecurrencePattern recurrencePattern)
Set the recurrencePattern property: The recurrence pattern of the scheduled actions.- Overrides:
withRecurrencePattern
in classScheduleUpdateProperties
- Parameters:
recurrencePattern
- the recurrencePattern value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withTimeZoneId
public ScheduleProperties withTimeZoneId(String timeZoneId)
Set the timeZoneId property: The IANA timezone id for the schedule.- Overrides:
withTimeZoneId
in classScheduleUpdateProperties
- Parameters:
timeZoneId
- the timeZoneId value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
withNotes
public ScheduleProperties withNotes(String notes)
Set the notes property: Notes for this schedule.- Overrides:
withNotes
in classScheduleUpdateProperties
- Parameters:
notes
- the notes value to set.- Returns:
- the ScheduleUpdateProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classScheduleUpdateProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-