Class WeeklyRetentionFormat
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionFormat
-
public final class WeeklyRetentionFormat extends Object
Weekly retention format.
-
-
Constructor Summary
Constructors Constructor Description WeeklyRetentionFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DayOfWeek>
daysOfTheWeek()
Get the daysOfTheWeek property: List of days of the week.void
validate()
Validates the instance.List<WeekOfMonth>
weeksOfTheMonth()
Get the weeksOfTheMonth property: List of weeks of month.WeeklyRetentionFormat
withDaysOfTheWeek(List<DayOfWeek> daysOfTheWeek)
Set the daysOfTheWeek property: List of days of the week.WeeklyRetentionFormat
withWeeksOfTheMonth(List<WeekOfMonth> weeksOfTheMonth)
Set the weeksOfTheMonth property: List of weeks of month.
-
-
-
Method Detail
-
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.
-
-