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 Details

    • ScheduleBasedBackupCriteria

      public ScheduleBasedBackupCriteria()
      Creates an instance of ScheduleBasedBackupCriteria class.
  • Method Details

    • 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 class BackupCriteria
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.