Class SimpleSchedulePolicyV2
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.SchedulePolicy
com.azure.resourcemanager.recoveryservicesbackup.models.SimpleSchedulePolicyV2
The V2 policy schedule for IaaS that supports hourly backups.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SimpleSchedulePolicyV2 class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dailySchedule property: Daily schedule of this policy.Get the hourlySchedule property: hourly schedule of this policy.Get the scheduleRunFrequency property: Frequency of the schedule operation of this policy.void
validate()
Validates the instance.Get the weeklySchedule property: Weekly schedule of this policy.withDailySchedule
(DailySchedule dailySchedule) Set the dailySchedule property: Daily schedule of this policy.withHourlySchedule
(HourlySchedule hourlySchedule) Set the hourlySchedule property: hourly schedule of this policy.withScheduleRunFrequency
(ScheduleRunType scheduleRunFrequency) Set the scheduleRunFrequency property: Frequency of the schedule operation of this policy.withWeeklySchedule
(WeeklySchedule weeklySchedule) Set the weeklySchedule property: Weekly schedule of this policy.
-
Constructor Details
-
SimpleSchedulePolicyV2
public SimpleSchedulePolicyV2()Creates an instance of SimpleSchedulePolicyV2 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 SimpleSchedulePolicyV2 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 SimpleSchedulePolicyV2 object itself.
-
dailySchedule
Get the dailySchedule property: Daily schedule of this policy.- Returns:
- the dailySchedule value.
-
withDailySchedule
Set the dailySchedule property: Daily schedule of this policy.- Parameters:
dailySchedule
- the dailySchedule value to set.- Returns:
- the SimpleSchedulePolicyV2 object itself.
-
weeklySchedule
Get the weeklySchedule property: Weekly schedule of this policy.- Returns:
- the weeklySchedule value.
-
withWeeklySchedule
Set the weeklySchedule property: Weekly schedule of this policy.- Parameters:
weeklySchedule
- the weeklySchedule value to set.- Returns:
- the SimpleSchedulePolicyV2 object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classSchedulePolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-