Class LongTermRetentionPolicy
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.RetentionPolicy
com.azure.resourcemanager.recoveryservicesbackup.models.LongTermRetentionPolicy
Long term retention policy.
-
Constructor Summary
ConstructorDescriptionCreates an instance of LongTermRetentionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dailySchedule property: Daily retention schedule of the protection policy.Get the monthlySchedule property: Monthly retention schedule of the protection policy.void
validate()
Validates the instance.Get the weeklySchedule property: Weekly retention schedule of the protection policy.withDailySchedule
(DailyRetentionSchedule dailySchedule) Set the dailySchedule property: Daily retention schedule of the protection policy.withMonthlySchedule
(MonthlyRetentionSchedule monthlySchedule) Set the monthlySchedule property: Monthly retention schedule of the protection policy.withWeeklySchedule
(WeeklyRetentionSchedule weeklySchedule) Set the weeklySchedule property: Weekly retention schedule of the protection policy.withYearlySchedule
(YearlyRetentionSchedule yearlySchedule) Set the yearlySchedule property: Yearly retention schedule of the protection policy.Get the yearlySchedule property: Yearly retention schedule of the protection policy.
-
Constructor Details
-
LongTermRetentionPolicy
public LongTermRetentionPolicy()Creates an instance of LongTermRetentionPolicy class.
-
-
Method Details
-
dailySchedule
Get the dailySchedule property: Daily retention schedule of the protection policy.- Returns:
- the dailySchedule value.
-
withDailySchedule
Set the dailySchedule property: Daily retention schedule of the protection policy.- Parameters:
dailySchedule
- the dailySchedule value to set.- Returns:
- the LongTermRetentionPolicy object itself.
-
weeklySchedule
Get the weeklySchedule property: Weekly retention schedule of the protection policy.- Returns:
- the weeklySchedule value.
-
withWeeklySchedule
Set the weeklySchedule property: Weekly retention schedule of the protection policy.- Parameters:
weeklySchedule
- the weeklySchedule value to set.- Returns:
- the LongTermRetentionPolicy object itself.
-
monthlySchedule
Get the monthlySchedule property: Monthly retention schedule of the protection policy.- Returns:
- the monthlySchedule value.
-
withMonthlySchedule
Set the monthlySchedule property: Monthly retention schedule of the protection policy.- Parameters:
monthlySchedule
- the monthlySchedule value to set.- Returns:
- the LongTermRetentionPolicy object itself.
-
yearlySchedule
Get the yearlySchedule property: Yearly retention schedule of the protection policy.- Returns:
- the yearlySchedule value.
-
withYearlySchedule
Set the yearlySchedule property: Yearly retention schedule of the protection policy.- Parameters:
yearlySchedule
- the yearlySchedule value to set.- Returns:
- the LongTermRetentionPolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRetentionPolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-