Class WeeklyRetentionSchedule
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionSchedule
-
public final class WeeklyRetentionSchedule extends Object
Weekly retention schedule.
-
-
Constructor Summary
Constructors Constructor Description WeeklyRetentionSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DayOfWeek>
daysOfTheWeek()
Get the daysOfTheWeek property: List of days of week for weekly retention policy.RetentionDuration
retentionDuration()
Get the retentionDuration property: Retention duration of retention Policy.List<OffsetDateTime>
retentionTimes()
Get the retentionTimes property: Retention times of retention policy.void
validate()
Validates the instance.WeeklyRetentionSchedule
withDaysOfTheWeek(List<DayOfWeek> daysOfTheWeek)
Set the daysOfTheWeek property: List of days of week for weekly retention policy.WeeklyRetentionSchedule
withRetentionDuration(RetentionDuration retentionDuration)
Set the retentionDuration property: Retention duration of retention Policy.WeeklyRetentionSchedule
withRetentionTimes(List<OffsetDateTime> retentionTimes)
Set the retentionTimes property: Retention times of retention policy.
-
-
-
Method Detail
-
daysOfTheWeek
public List<DayOfWeek> daysOfTheWeek()
Get the daysOfTheWeek property: List of days of week for weekly retention policy.- Returns:
- the daysOfTheWeek value.
-
withDaysOfTheWeek
public WeeklyRetentionSchedule withDaysOfTheWeek(List<DayOfWeek> daysOfTheWeek)
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
public List<OffsetDateTime> retentionTimes()
Get the retentionTimes property: Retention times of retention policy.- Returns:
- the retentionTimes value.
-
withRetentionTimes
public WeeklyRetentionSchedule withRetentionTimes(List<OffsetDateTime> retentionTimes)
Set the retentionTimes property: Retention times of retention policy.- Parameters:
retentionTimes
- the retentionTimes value to set.- Returns:
- the WeeklyRetentionSchedule object itself.
-
retentionDuration
public RetentionDuration retentionDuration()
Get the retentionDuration property: Retention duration of retention Policy.- Returns:
- the retentionDuration value.
-
withRetentionDuration
public WeeklyRetentionSchedule withRetentionDuration(RetentionDuration retentionDuration)
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.
-
-