Class ScheduleBasedBackupCriteria
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.BackupCriteria
-
- com.azure.resourcemanager.dataprotection.models.ScheduleBasedBackupCriteria
-
public final class ScheduleBasedBackupCriteria extends BackupCriteria
ScheduleBasedBackupCriteria Schedule based backup criteria.
-
-
Constructor Summary
Constructors Constructor Description ScheduleBasedBackupCriteria()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AbsoluteMarker>
absoluteCriteria()
Get the absoluteCriteria property: it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum.List<Day>
daysOfMonth()
Get the daysOfMonth property: This is day of the month from 1 to 28 other wise last of month.List<DayOfWeek>
daysOfTheWeek()
Get the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.List<Month>
monthsOfYear()
Get the monthsOfYear property: It should be January/February/....../December.List<OffsetDateTime>
scheduleTimes()
Get the scheduleTimes property: List of schedule times for backup.void
validate()
Validates the instance.List<WeekNumber>
weeksOfTheMonth()
Get the weeksOfTheMonth property: It should be First/Second/Third/Fourth/Last.ScheduleBasedBackupCriteria
withAbsoluteCriteria(List<AbsoluteMarker> absoluteCriteria)
Set the absoluteCriteria property: it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" and should be part of AbsoluteMarker enum.ScheduleBasedBackupCriteria
withDaysOfMonth(List<Day> daysOfMonth)
Set the daysOfMonth property: This is day of the month from 1 to 28 other wise last of month.ScheduleBasedBackupCriteria
withDaysOfTheWeek(List<DayOfWeek> daysOfTheWeek)
Set the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.ScheduleBasedBackupCriteria
withMonthsOfYear(List<Month> monthsOfYear)
Set the monthsOfYear property: It should be January/February/....../December.ScheduleBasedBackupCriteria
withScheduleTimes(List<OffsetDateTime> scheduleTimes)
Set the scheduleTimes property: List of schedule times for backup.ScheduleBasedBackupCriteria
withWeeksOfTheMonth(List<WeekNumber> weeksOfTheMonth)
Set the weeksOfTheMonth property: It should be First/Second/Third/Fourth/Last.
-
-
-
Method Detail
-
absoluteCriteria
public List<AbsoluteMarker> 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
public ScheduleBasedBackupCriteria withAbsoluteCriteria(List<AbsoluteMarker> absoluteCriteria)
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
public List<Day> 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
public ScheduleBasedBackupCriteria withDaysOfMonth(List<Day> daysOfMonth)
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
public List<DayOfWeek> daysOfTheWeek()
Get the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.- Returns:
- the daysOfTheWeek value.
-
withDaysOfTheWeek
public ScheduleBasedBackupCriteria withDaysOfTheWeek(List<DayOfWeek> daysOfTheWeek)
Set the daysOfTheWeek property: It should be Sunday/Monday/T..../Saturday.- Parameters:
daysOfTheWeek
- the daysOfTheWeek value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
monthsOfYear
public List<Month> monthsOfYear()
Get the monthsOfYear property: It should be January/February/....../December.- Returns:
- the monthsOfYear value.
-
withMonthsOfYear
public ScheduleBasedBackupCriteria withMonthsOfYear(List<Month> monthsOfYear)
Set the monthsOfYear property: It should be January/February/....../December.- Parameters:
monthsOfYear
- the monthsOfYear value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
scheduleTimes
public List<OffsetDateTime> scheduleTimes()
Get the scheduleTimes property: List of schedule times for backup.- Returns:
- the scheduleTimes value.
-
withScheduleTimes
public ScheduleBasedBackupCriteria withScheduleTimes(List<OffsetDateTime> scheduleTimes)
Set the scheduleTimes property: List of schedule times for backup.- Parameters:
scheduleTimes
- the scheduleTimes value to set.- Returns:
- the ScheduleBasedBackupCriteria object itself.
-
weeksOfTheMonth
public List<WeekNumber> weeksOfTheMonth()
Get the weeksOfTheMonth property: It should be First/Second/Third/Fourth/Last.- Returns:
- the weeksOfTheMonth value.
-
withWeeksOfTheMonth
public ScheduleBasedBackupCriteria withWeeksOfTheMonth(List<WeekNumber> weeksOfTheMonth)
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.
-
-