Class SimpleSchedulePolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.SchedulePolicy
com.azure.resourcemanager.recoveryservicesbackup.models.SimpleSchedulePolicy
Simple policy schedule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the hourlySchedule property: Hourly Schedule of this Policy.Get the scheduleRunDays property: List of days of week this schedule has to be run.Get the scheduleRunFrequency property: Frequency of the schedule operation of this policy.Get the scheduleRunTimes property: List of times of day this schedule has to be run.Get the scheduleWeeklyFrequency property: At every number weeks this schedule has to be run.void
validate()
Validates the instance.withHourlySchedule
(HourlySchedule hourlySchedule) Set the hourlySchedule property: Hourly Schedule of this Policy.withScheduleRunDays
(List<DayOfWeek> scheduleRunDays) Set the scheduleRunDays property: List of days of week this schedule has to be run.withScheduleRunFrequency
(ScheduleRunType scheduleRunFrequency) Set the scheduleRunFrequency property: Frequency of the schedule operation of this policy.withScheduleRunTimes
(List<OffsetDateTime> scheduleRunTimes) Set the scheduleRunTimes property: List of times of day this schedule has to be run.withScheduleWeeklyFrequency
(Integer scheduleWeeklyFrequency) Set the scheduleWeeklyFrequency property: At every number weeks this schedule has to be run.
-
Constructor Details
-
SimpleSchedulePolicy
public SimpleSchedulePolicy()Creates an instance of SimpleSchedulePolicy class.
-
-
Method Details
-
scheduleRunFrequency
Get the scheduleRunFrequency property: Frequency of the schedule operation of this policy.- Returns:
- the scheduleRunFrequency value.
-
withScheduleRunFrequency
Set the scheduleRunFrequency property: Frequency of the schedule operation of this policy.- Parameters:
scheduleRunFrequency
- the scheduleRunFrequency value to set.- Returns:
- the SimpleSchedulePolicy object itself.
-
scheduleRunDays
Get the scheduleRunDays property: List of days of week this schedule has to be run.- Returns:
- the scheduleRunDays value.
-
withScheduleRunDays
Set the scheduleRunDays property: List of days of week this schedule has to be run.- Parameters:
scheduleRunDays
- the scheduleRunDays value to set.- Returns:
- the SimpleSchedulePolicy 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 SimpleSchedulePolicy object itself.
-
hourlySchedule
Get the hourlySchedule property: Hourly Schedule of this Policy.- Returns:
- the hourlySchedule value.
-
withHourlySchedule
Set the hourlySchedule property: Hourly Schedule of this Policy.- Parameters:
hourlySchedule
- the hourlySchedule value to set.- Returns:
- the SimpleSchedulePolicy object itself.
-
scheduleWeeklyFrequency
Get the scheduleWeeklyFrequency property: At every number weeks this schedule has to be run.- Returns:
- the scheduleWeeklyFrequency value.
-
withScheduleWeeklyFrequency
Set the scheduleWeeklyFrequency property: At every number weeks this schedule has to be run.- Parameters:
scheduleWeeklyFrequency
- the scheduleWeeklyFrequency value to set.- Returns:
- the SimpleSchedulePolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classSchedulePolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-