Class WeeklySchedule
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WeeklySchedule
The WeeklySchedule model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the scheduleRunDays property: The scheduleRunDays property.Get the scheduleRunTimes property: List of times of day this schedule has to be run.void
validate()
Validates the instance.withScheduleRunDays
(List<DayOfWeek> scheduleRunDays) Set the scheduleRunDays property: The scheduleRunDays property.withScheduleRunTimes
(List<OffsetDateTime> scheduleRunTimes) Set the scheduleRunTimes property: List of times of day this schedule has to be run.
-
Constructor Details
-
WeeklySchedule
public WeeklySchedule()Creates an instance of WeeklySchedule class.
-
-
Method Details
-
scheduleRunDays
Get the scheduleRunDays property: The scheduleRunDays property.- Returns:
- the scheduleRunDays value.
-
withScheduleRunDays
Set the scheduleRunDays property: The scheduleRunDays property.- Parameters:
scheduleRunDays
- the scheduleRunDays value to set.- Returns:
- the WeeklySchedule object itself.
-
scheduleRunTimes
Get the scheduleRunTimes property: List of times of day this schedule has to be run.- Returns:
- the scheduleRunTimes value.
-
withScheduleRunTimes
Set the scheduleRunTimes property: List of times of day this schedule has to be run.- Parameters:
scheduleRunTimes
- the scheduleRunTimes value to set.- Returns:
- the WeeklySchedule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-