Class HourlySchedule
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.HourlySchedule
-
public final class HourlySchedule extends Object
The HourlySchedule model.
-
-
Constructor Summary
Constructors Constructor Description HourlySchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
interval()
Get the interval property: Interval at which backup needs to be triggered.Integer
scheduleWindowDuration()
Get the scheduleWindowDuration property: To specify duration of the backup window.OffsetDateTime
scheduleWindowStartTime()
Get the scheduleWindowStartTime property: To specify start time of the backup window.void
validate()
Validates the instance.HourlySchedule
withInterval(Integer interval)
Set the interval property: Interval at which backup needs to be triggered.HourlySchedule
withScheduleWindowDuration(Integer scheduleWindowDuration)
Set the scheduleWindowDuration property: To specify duration of the backup window.HourlySchedule
withScheduleWindowStartTime(OffsetDateTime scheduleWindowStartTime)
Set the scheduleWindowStartTime property: To specify start time of the backup window.
-
-
-
Method Detail
-
interval
public Integer interval()
Get the interval property: Interval at which backup needs to be triggered. For hourly the value can be 4/6/8/12.- Returns:
- the interval value.
-
withInterval
public HourlySchedule withInterval(Integer interval)
Set the interval property: Interval at which backup needs to be triggered. For hourly the value can be 4/6/8/12.- Parameters:
interval
- the interval value to set.- Returns:
- the HourlySchedule object itself.
-
scheduleWindowStartTime
public OffsetDateTime scheduleWindowStartTime()
Get the scheduleWindowStartTime property: To specify start time of the backup window.- Returns:
- the scheduleWindowStartTime value.
-
withScheduleWindowStartTime
public HourlySchedule withScheduleWindowStartTime(OffsetDateTime scheduleWindowStartTime)
Set the scheduleWindowStartTime property: To specify start time of the backup window.- Parameters:
scheduleWindowStartTime
- the scheduleWindowStartTime value to set.- Returns:
- the HourlySchedule object itself.
-
scheduleWindowDuration
public Integer scheduleWindowDuration()
Get the scheduleWindowDuration property: To specify duration of the backup window.- Returns:
- the scheduleWindowDuration value.
-
withScheduleWindowDuration
public HourlySchedule withScheduleWindowDuration(Integer scheduleWindowDuration)
Set the scheduleWindowDuration property: To specify duration of the backup window.- Parameters:
scheduleWindowDuration
- the scheduleWindowDuration value to set.- Returns:
- the HourlySchedule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-