Class WeeklyRetentionSchedule
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionSchedule
Weekly retention schedule.
-
Constructor Summary
ConstructorDescriptionCreates an instance of WeeklyRetentionSchedule class. -
Method Summary
Modifier and TypeMethodDescriptionGet the daysOfTheWeek property: List of days of week for weekly retention policy.Get the retentionDuration property: Retention duration of retention Policy.Get the retentionTimes property: Retention times of retention policy.void
validate()
Validates the instance.withDaysOfTheWeek
(List<DayOfWeek> daysOfTheWeek) Set the daysOfTheWeek property: List of days of week for weekly retention policy.withRetentionDuration
(RetentionDuration retentionDuration) Set the retentionDuration property: Retention duration of retention Policy.withRetentionTimes
(List<OffsetDateTime> retentionTimes) Set the retentionTimes property: Retention times of retention policy.
-
Constructor Details
-
WeeklyRetentionSchedule
public WeeklyRetentionSchedule()Creates an instance of WeeklyRetentionSchedule class.
-
-
Method Details
-
daysOfTheWeek
Get the daysOfTheWeek property: List of days of week for weekly retention policy.- Returns:
- the daysOfTheWeek value.
-
withDaysOfTheWeek
Set the daysOfTheWeek property: List of days of week for weekly retention policy.- Parameters:
daysOfTheWeek
- the daysOfTheWeek value to set.- Returns:
- the WeeklyRetentionSchedule object itself.
-
retentionTimes
Get the retentionTimes property: Retention times of retention policy.- Returns:
- the retentionTimes value.
-
withRetentionTimes
Set the retentionTimes property: Retention times of retention policy.- Parameters:
retentionTimes
- the retentionTimes value to set.- Returns:
- the WeeklyRetentionSchedule object itself.
-
retentionDuration
Get the retentionDuration property: Retention duration of retention Policy.- Returns:
- the retentionDuration value.
-
withRetentionDuration
Set the retentionDuration property: Retention duration of retention Policy.- Parameters:
retentionDuration
- the retentionDuration value to set.- Returns:
- the WeeklyRetentionSchedule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-