Class WeeklyRetentionFormat
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionFormat
Weekly retention format.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the daysOfTheWeek property: List of days of the week.void
validate()
Validates the instance.Get the weeksOfTheMonth property: List of weeks of month.withDaysOfTheWeek
(List<DayOfWeek> daysOfTheWeek) Set the daysOfTheWeek property: List of days of the week.withWeeksOfTheMonth
(List<WeekOfMonth> weeksOfTheMonth) Set the weeksOfTheMonth property: List of weeks of month.
-
Constructor Details
-
WeeklyRetentionFormat
public WeeklyRetentionFormat()Creates an instance of WeeklyRetentionFormat class.
-
-
Method Details
-
daysOfTheWeek
Get the daysOfTheWeek property: List of days of the week.- Returns:
- the daysOfTheWeek value.
-
withDaysOfTheWeek
Set the daysOfTheWeek property: List of days of the week.- Parameters:
daysOfTheWeek
- the daysOfTheWeek value to set.- Returns:
- the WeeklyRetentionFormat object itself.
-
weeksOfTheMonth
Get the weeksOfTheMonth property: List of weeks of month.- Returns:
- the weeksOfTheMonth value.
-
withWeeksOfTheMonth
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.
-