Class MonthlyRetentionSchedule
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.MonthlyRetentionSchedule
-
public final class MonthlyRetentionSchedule extends Object
Monthly retention schedule.
-
-
Constructor Summary
Constructors Constructor Description MonthlyRetentionSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetentionDuration
retentionDuration()
Get the retentionDuration property: Retention duration of retention Policy.DailyRetentionFormat
retentionScheduleDaily()
Get the retentionScheduleDaily property: Daily retention format for monthly retention policy.RetentionScheduleFormat
retentionScheduleFormatType()
Get the retentionScheduleFormatType property: Retention schedule format type for monthly retention policy.WeeklyRetentionFormat
retentionScheduleWeekly()
Get the retentionScheduleWeekly property: Weekly retention format for monthly retention policy.List<OffsetDateTime>
retentionTimes()
Get the retentionTimes property: Retention times of retention policy.void
validate()
Validates the instance.MonthlyRetentionSchedule
withRetentionDuration(RetentionDuration retentionDuration)
Set the retentionDuration property: Retention duration of retention Policy.MonthlyRetentionSchedule
withRetentionScheduleDaily(DailyRetentionFormat retentionScheduleDaily)
Set the retentionScheduleDaily property: Daily retention format for monthly retention policy.MonthlyRetentionSchedule
withRetentionScheduleFormatType(RetentionScheduleFormat retentionScheduleFormatType)
Set the retentionScheduleFormatType property: Retention schedule format type for monthly retention policy.MonthlyRetentionSchedule
withRetentionScheduleWeekly(WeeklyRetentionFormat retentionScheduleWeekly)
Set the retentionScheduleWeekly property: Weekly retention format for monthly retention policy.MonthlyRetentionSchedule
withRetentionTimes(List<OffsetDateTime> retentionTimes)
Set the retentionTimes property: Retention times of retention policy.
-
-
-
Method Detail
-
retentionScheduleFormatType
public RetentionScheduleFormat retentionScheduleFormatType()
Get the retentionScheduleFormatType property: Retention schedule format type for monthly retention policy.- Returns:
- the retentionScheduleFormatType value.
-
withRetentionScheduleFormatType
public MonthlyRetentionSchedule withRetentionScheduleFormatType(RetentionScheduleFormat retentionScheduleFormatType)
Set the retentionScheduleFormatType property: Retention schedule format type for monthly retention policy.- Parameters:
retentionScheduleFormatType
- the retentionScheduleFormatType value to set.- Returns:
- the MonthlyRetentionSchedule object itself.
-
retentionScheduleDaily
public DailyRetentionFormat retentionScheduleDaily()
Get the retentionScheduleDaily property: Daily retention format for monthly retention policy.- Returns:
- the retentionScheduleDaily value.
-
withRetentionScheduleDaily
public MonthlyRetentionSchedule withRetentionScheduleDaily(DailyRetentionFormat retentionScheduleDaily)
Set the retentionScheduleDaily property: Daily retention format for monthly retention policy.- Parameters:
retentionScheduleDaily
- the retentionScheduleDaily value to set.- Returns:
- the MonthlyRetentionSchedule object itself.
-
retentionScheduleWeekly
public WeeklyRetentionFormat retentionScheduleWeekly()
Get the retentionScheduleWeekly property: Weekly retention format for monthly retention policy.- Returns:
- the retentionScheduleWeekly value.
-
withRetentionScheduleWeekly
public MonthlyRetentionSchedule withRetentionScheduleWeekly(WeeklyRetentionFormat retentionScheduleWeekly)
Set the retentionScheduleWeekly property: Weekly retention format for monthly retention policy.- Parameters:
retentionScheduleWeekly
- the retentionScheduleWeekly value to set.- Returns:
- the MonthlyRetentionSchedule object itself.
-
retentionTimes
public List<OffsetDateTime> retentionTimes()
Get the retentionTimes property: Retention times of retention policy.- Returns:
- the retentionTimes value.
-
withRetentionTimes
public MonthlyRetentionSchedule withRetentionTimes(List<OffsetDateTime> retentionTimes)
Set the retentionTimes property: Retention times of retention policy.- Parameters:
retentionTimes
- the retentionTimes value to set.- Returns:
- the MonthlyRetentionSchedule object itself.
-
retentionDuration
public RetentionDuration retentionDuration()
Get the retentionDuration property: Retention duration of retention Policy.- Returns:
- the retentionDuration value.
-
withRetentionDuration
public MonthlyRetentionSchedule withRetentionDuration(RetentionDuration retentionDuration)
Set the retentionDuration property: Retention duration of retention Policy.- Parameters:
retentionDuration
- the retentionDuration value to set.- Returns:
- the MonthlyRetentionSchedule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-