Class WeeklySchedule
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.WeeklySchedule
-
public final class WeeklySchedule extends Object
The WeeklySchedule model.
-
-
Constructor Summary
Constructors Constructor Description WeeklySchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DayOfWeek>
scheduleRunDays()
Get the scheduleRunDays property: The scheduleRunDays property.List<OffsetDateTime>
scheduleRunTimes()
Get the scheduleRunTimes property: List of times of day this schedule has to be run.void
validate()
Validates the instance.WeeklySchedule
withScheduleRunDays(List<DayOfWeek> scheduleRunDays)
Set the scheduleRunDays property: The scheduleRunDays property.WeeklySchedule
withScheduleRunTimes(List<OffsetDateTime> scheduleRunTimes)
Set the scheduleRunTimes property: List of times of day this schedule has to be run.
-
-
-
Method Detail
-
scheduleRunDays
public List<DayOfWeek> scheduleRunDays()
Get the scheduleRunDays property: The scheduleRunDays property.- Returns:
- the scheduleRunDays value.
-
withScheduleRunDays
public WeeklySchedule withScheduleRunDays(List<DayOfWeek> scheduleRunDays)
Set the scheduleRunDays property: The scheduleRunDays property.- Parameters:
scheduleRunDays
- the scheduleRunDays value to set.- Returns:
- the WeeklySchedule object itself.
-
scheduleRunTimes
public List<OffsetDateTime> scheduleRunTimes()
Get the scheduleRunTimes property: List of times of day this schedule has to be run.- Returns:
- the scheduleRunTimes value.
-
withScheduleRunTimes
public WeeklySchedule withScheduleRunTimes(List<OffsetDateTime> scheduleRunTimes)
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.
-
-