Class WeeklyRetentionFormat

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionFormat

public final class WeeklyRetentionFormat extends Object
Weekly retention format.
  • Constructor Details

    • WeeklyRetentionFormat

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

    • daysOfTheWeek

      public List<DayOfWeek> daysOfTheWeek()
      Get the daysOfTheWeek property: List of days of the week.
      Returns:
      the daysOfTheWeek value.
    • withDaysOfTheWeek

      public WeeklyRetentionFormat withDaysOfTheWeek(List<DayOfWeek> daysOfTheWeek)
      Set the daysOfTheWeek property: List of days of the week.
      Parameters:
      daysOfTheWeek - the daysOfTheWeek value to set.
      Returns:
      the WeeklyRetentionFormat object itself.
    • weeksOfTheMonth

      public List<WeekOfMonth> weeksOfTheMonth()
      Get the weeksOfTheMonth property: List of weeks of month.
      Returns:
      the weeksOfTheMonth value.
    • withWeeksOfTheMonth

      public WeeklyRetentionFormat withWeeksOfTheMonth(List<WeekOfMonth> weeksOfTheMonth)
      Set the weeksOfTheMonth property: List of weeks of month.
      Parameters:
      weeksOfTheMonth - the weeksOfTheMonth value to set.
      Returns:
      the WeeklyRetentionFormat object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.