Class DailyRetentionSchedule
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.DailyRetentionSchedule
-
public final class DailyRetentionSchedule extends Object
Daily retention schedule.
-
-
Constructor Summary
Constructors Constructor Description DailyRetentionSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.DailyRetentionSchedule
withRetentionDuration(RetentionDuration retentionDuration)
Set the retentionDuration property: Retention duration of retention Policy.DailyRetentionSchedule
withRetentionTimes(List<OffsetDateTime> retentionTimes)
Set the retentionTimes property: Retention times of retention policy.
-
-
-
Method Detail
-
retentionTimes
public List<OffsetDateTime> retentionTimes()
Get the retentionTimes property: Retention times of retention policy.- Returns:
- the retentionTimes value.
-
withRetentionTimes
public DailyRetentionSchedule withRetentionTimes(List<OffsetDateTime> retentionTimes)
Set the retentionTimes property: Retention times of retention policy.- Parameters:
retentionTimes
- the retentionTimes value to set.- Returns:
- the DailyRetentionSchedule object itself.
-
retentionDuration
public RetentionDuration retentionDuration()
Get the retentionDuration property: Retention duration of retention Policy.- Returns:
- the retentionDuration value.
-
withRetentionDuration
public DailyRetentionSchedule withRetentionDuration(RetentionDuration retentionDuration)
Set the retentionDuration property: Retention duration of retention Policy.- Parameters:
retentionDuration
- the retentionDuration value to set.- Returns:
- the DailyRetentionSchedule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-