Class ScheduleInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.devtestlabs.fluent.models.ScheduleInner
public final class ScheduleInner
extends com.azure.core.management.Resource
A schedule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: The creation date of the schedule.Get the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.Get the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.Get the notificationSettings property: Notification settings.Get the provisioningState property: The provisioning status of the resource.status()
Get the status property: The status of the schedule (i.e.Get the targetResourceId property: The resource ID to which the schedule belongs.taskType()
Get the taskType property: The task type of the schedule (e.g.Get the timeZoneId property: The time zone ID (e.g.Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).void
validate()
Validates the instance.Get the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.withDailyRecurrence
(DayDetails dailyRecurrence) Set the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.withHourlyRecurrence
(HourDetails hourlyRecurrence) Set the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.withLocation
(String location) withNotificationSettings
(NotificationSettings notificationSettings) Set the notificationSettings property: Notification settings.withStatus
(EnableStatus status) Set the status property: The status of the schedule (i.e.withTargetResourceId
(String targetResourceId) Set the targetResourceId property: The resource ID to which the schedule belongs.withTaskType
(String taskType) Set the taskType property: The task type of the schedule (e.g.withTimeZoneId
(String timeZoneId) Set the timeZoneId property: The time zone ID (e.g.withWeeklyRecurrence
(WeekDetails weeklyRecurrence) Set the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ScheduleInner
public ScheduleInner()Creates an instance of ScheduleInner class.
-
-
Method Details
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
status
Get the status property: The status of the schedule (i.e. Enabled, Disabled).- Returns:
- the status value.
-
withStatus
Set the status property: The status of the schedule (i.e. Enabled, Disabled).- Parameters:
status
- the status value to set.- Returns:
- the ScheduleInner object itself.
-
taskType
Get the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).- Returns:
- the taskType value.
-
withTaskType
Set the taskType property: The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).- Parameters:
taskType
- the taskType value to set.- Returns:
- the ScheduleInner object itself.
-
weeklyRecurrence
Get the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.- Returns:
- the weeklyRecurrence value.
-
withWeeklyRecurrence
Set the weeklyRecurrence property: If the schedule will occur only some days of the week, specify the weekly recurrence.- Parameters:
weeklyRecurrence
- the weeklyRecurrence value to set.- Returns:
- the ScheduleInner object itself.
-
dailyRecurrence
Get the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.- Returns:
- the dailyRecurrence value.
-
withDailyRecurrence
Set the dailyRecurrence property: If the schedule will occur once each day of the week, specify the daily recurrence.- Parameters:
dailyRecurrence
- the dailyRecurrence value to set.- Returns:
- the ScheduleInner object itself.
-
hourlyRecurrence
Get the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.- Returns:
- the hourlyRecurrence value.
-
withHourlyRecurrence
Set the hourlyRecurrence property: If the schedule will occur multiple times a day, specify the hourly recurrence.- Parameters:
hourlyRecurrence
- the hourlyRecurrence value to set.- Returns:
- the ScheduleInner object itself.
-
timeZoneId
Get the timeZoneId property: The time zone ID (e.g. Pacific Standard time).- Returns:
- the timeZoneId value.
-
withTimeZoneId
Set the timeZoneId property: The time zone ID (e.g. Pacific Standard time).- Parameters:
timeZoneId
- the timeZoneId value to set.- Returns:
- the ScheduleInner object itself.
-
notificationSettings
Get the notificationSettings property: Notification settings.- Returns:
- the notificationSettings value.
-
withNotificationSettings
Set the notificationSettings property: Notification settings.- Parameters:
notificationSettings
- the notificationSettings value to set.- Returns:
- the ScheduleInner object itself.
-
createdDate
Get the createdDate property: The creation date of the schedule.- Returns:
- the createdDate value.
-
targetResourceId
Get the targetResourceId property: The resource ID to which the schedule belongs.- Returns:
- the targetResourceId value.
-
withTargetResourceId
Set the targetResourceId property: The resource ID to which the schedule belongs.- Parameters:
targetResourceId
- the targetResourceId value to set.- Returns:
- the ScheduleInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning status of the resource.- Returns:
- the provisioningState value.
-
uniqueIdentifier
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).- Returns:
- the uniqueIdentifier value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-