Class SimpleSchedulePolicyV2
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.SchedulePolicy
-
- com.azure.resourcemanager.recoveryservicesbackup.models.SimpleSchedulePolicyV2
-
public final class SimpleSchedulePolicyV2 extends SchedulePolicy
The V2 policy schedule for IaaS that supports hourly backups.
-
-
Constructor Summary
Constructors Constructor Description SimpleSchedulePolicyV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DailySchedule
dailySchedule()
Get the dailySchedule property: Daily schedule of this policy.HourlySchedule
hourlySchedule()
Get the hourlySchedule property: hourly schedule of this policy.ScheduleRunType
scheduleRunFrequency()
Get the scheduleRunFrequency property: Frequency of the schedule operation of this policy.void
validate()
Validates the instance.WeeklySchedule
weeklySchedule()
Get the weeklySchedule property: Weekly schedule of this policy.SimpleSchedulePolicyV2
withDailySchedule(DailySchedule dailySchedule)
Set the dailySchedule property: Daily schedule of this policy.SimpleSchedulePolicyV2
withHourlySchedule(HourlySchedule hourlySchedule)
Set the hourlySchedule property: hourly schedule of this policy.SimpleSchedulePolicyV2
withScheduleRunFrequency(ScheduleRunType scheduleRunFrequency)
Set the scheduleRunFrequency property: Frequency of the schedule operation of this policy.SimpleSchedulePolicyV2
withWeeklySchedule(WeeklySchedule weeklySchedule)
Set the weeklySchedule property: Weekly schedule of this policy.
-
-
-
Method Detail
-
scheduleRunFrequency
public ScheduleRunType scheduleRunFrequency()
Get the scheduleRunFrequency property: Frequency of the schedule operation of this policy.- Returns:
- the scheduleRunFrequency value.
-
withScheduleRunFrequency
public SimpleSchedulePolicyV2 withScheduleRunFrequency(ScheduleRunType scheduleRunFrequency)
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
public HourlySchedule hourlySchedule()
Get the hourlySchedule property: hourly schedule of this policy.- Returns:
- the hourlySchedule value.
-
withHourlySchedule
public SimpleSchedulePolicyV2 withHourlySchedule(HourlySchedule hourlySchedule)
Set the hourlySchedule property: hourly schedule of this policy.- Parameters:
hourlySchedule
- the hourlySchedule value to set.- Returns:
- the SimpleSchedulePolicyV2 object itself.
-
dailySchedule
public DailySchedule dailySchedule()
Get the dailySchedule property: Daily schedule of this policy.- Returns:
- the dailySchedule value.
-
withDailySchedule
public SimpleSchedulePolicyV2 withDailySchedule(DailySchedule dailySchedule)
Set the dailySchedule property: Daily schedule of this policy.- Parameters:
dailySchedule
- the dailySchedule value to set.- Returns:
- the SimpleSchedulePolicyV2 object itself.
-
weeklySchedule
public WeeklySchedule weeklySchedule()
Get the weeklySchedule property: Weekly schedule of this policy.- Returns:
- the weeklySchedule value.
-
withWeeklySchedule
public SimpleSchedulePolicyV2 withWeeklySchedule(WeeklySchedule weeklySchedule)
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.
-
-