Class ScheduleBasedBackupCriteria
java.lang.Object
com.azure.resourcemanager.dataprotection.models.BackupCriteria
com.azure.resourcemanager.dataprotection.models.ScheduleBasedBackupCriteria
ScheduleBasedBackupCriteria
Schedule based backup criteria.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ScheduleBasedBackupCriteria class. -
Method Summary
Modifier and TypeMethodDescriptionGet the absoluteCriteria property: it contains absolute values like "AllBackup"\ / "FirstOfDay"\ / "FirstOfWeek"\ / "FirstOfMonth" and should be part of AbsoluteMarker enum.Get the daysOfMonth property: This is day of the month from 1 to 28 other wise last of month.Get the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.Get the monthsOfYear property: It should be January/February/....../December.Get the scheduleTimes property: List of schedule times for backup.void
validate()
Validates the instance.Get the weeksOfTheMonth property: It should be First/Second/Third/Fourth/Last.withAbsoluteCriteria
(List<AbsoluteMarker> absoluteCriteria) Set the absoluteCriteria property: it contains absolute values like "AllBackup"\ / "FirstOfDay"\ / "FirstOfWeek"\ / "FirstOfMonth" and should be part of AbsoluteMarker enum.withDaysOfMonth
(List<Day> daysOfMonth) Set the daysOfMonth property: This is day of the month from 1 to 28 other wise last of month.withDaysOfTheWeek
(List<DayOfWeek> daysOfTheWeek) Set the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.withMonthsOfYear
(List<Month> monthsOfYear) Set the monthsOfYear property: It should be January/February/....../December.withScheduleTimes
(List<OffsetDateTime> scheduleTimes) Set the scheduleTimes property: List of schedule times for backup.withWeeksOfTheMonth
(List<WeekNumber> weeksOfTheMonth) Set the weeksOfTheMonth property: It should be First/Second/Third/Fourth/Last.
-
Constructor Details
-
ScheduleBasedBackupCriteria
public ScheduleBasedBackupCriteria()Creates an instance of ScheduleBasedBackupCriteria class.
-
-
Method Details
-
absoluteCriteria
Get the absoluteCriteria property: it contains absolute values like "AllBackup"\ / "FirstOfDay"\ / "FirstOfWeek"\ / "FirstOfMonth" and should be part of AbsoluteMarker enum.- Returns:
- the absoluteCriteria value.
-
withAbsoluteCriteria
Set the absoluteCriteria property: it contains absolute values like "AllBackup"\ / "FirstOfDay"\ / "FirstOfWeek"\ / "FirstOfMonth" and should be part of AbsoluteMarker enum.- Parameters:
absoluteCriteria
- the absoluteCriteria value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
daysOfMonth
Get the daysOfMonth property: This is day of the month from 1 to 28 other wise last of month.- Returns:
- the daysOfMonth value.
-
withDaysOfMonth
Set the daysOfMonth property: This is day of the month from 1 to 28 other wise last of month.- Parameters:
daysOfMonth
- the daysOfMonth value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
daysOfTheWeek
Get the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.- Returns:
- the daysOfTheWeek value.
-
withDaysOfTheWeek
Set the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.- Parameters:
daysOfTheWeek
- the daysOfTheWeek value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
monthsOfYear
Get the monthsOfYear property: It should be January/February/....../December.- Returns:
- the monthsOfYear value.
-
withMonthsOfYear
Set the monthsOfYear property: It should be January/February/....../December.- Parameters:
monthsOfYear
- the monthsOfYear value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
scheduleTimes
Get the scheduleTimes property: List of schedule times for backup.- Returns:
- the scheduleTimes value.
-
withScheduleTimes
Set the scheduleTimes property: List of schedule times for backup.- Parameters:
scheduleTimes
- the scheduleTimes value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
weeksOfTheMonth
Get the weeksOfTheMonth property: It should be First/Second/Third/Fourth/Last.- Returns:
- the weeksOfTheMonth value.
-
withWeeksOfTheMonth
Set the weeksOfTheMonth property: It should be First/Second/Third/Fourth/Last.- Parameters:
weeksOfTheMonth
- the weeksOfTheMonth value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classBackupCriteria
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-