Class HourlySchedule
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.HourlySchedule
The HourlySchedule model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninterval()
Get the interval property: Interval at which backup needs to be triggered.Get the scheduleWindowDuration property: To specify duration of the backup window.Get the scheduleWindowStartTime property: To specify start time of the backup window.void
validate()
Validates the instance.withInterval
(Integer interval) Set the interval property: Interval at which backup needs to be triggered.withScheduleWindowDuration
(Integer scheduleWindowDuration) Set the scheduleWindowDuration property: To specify duration of the backup window.withScheduleWindowStartTime
(OffsetDateTime scheduleWindowStartTime) Set the scheduleWindowStartTime property: To specify start time of the backup window.
-
Constructor Details
-
HourlySchedule
public HourlySchedule()Creates an instance of HourlySchedule class.
-
-
Method Details
-
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
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
Get the scheduleWindowStartTime property: To specify start time of the backup window.- Returns:
- the scheduleWindowStartTime value.
-
withScheduleWindowStartTime
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
Get the scheduleWindowDuration property: To specify duration of the backup window.- Returns:
- the scheduleWindowDuration value.
-
withScheduleWindowDuration
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.
-