Class LongTermRetentionPolicyInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.LongTermRetentionPolicyInner
public final class LongTermRetentionPolicyInner
extends com.azure.core.management.ProxyResource
A long term retention policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LongTermRetentionPolicyInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.voidvalidate()Validates the instance.Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.withMonthlyRetention(String monthlyRetention) Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.withWeeklyRetention(String weeklyRetention) Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.withWeekOfYear(Integer weekOfYear) Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.withYearlyRetention(String yearlyRetention) Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
LongTermRetentionPolicyInner
public LongTermRetentionPolicyInner()Creates an instance of LongTermRetentionPolicyInner class.
-
-
Method Details
-
weeklyRetention
Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.- Returns:
- the weeklyRetention value.
-
withWeeklyRetention
Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.- Parameters:
weeklyRetention- the weeklyRetention value to set.- Returns:
- the LongTermRetentionPolicyInner object itself.
-
monthlyRetention
Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.- Returns:
- the monthlyRetention value.
-
withMonthlyRetention
Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.- Parameters:
monthlyRetention- the monthlyRetention value to set.- Returns:
- the LongTermRetentionPolicyInner object itself.
-
yearlyRetention
Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.- Returns:
- the yearlyRetention value.
-
withYearlyRetention
Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.- Parameters:
yearlyRetention- the yearlyRetention value to set.- Returns:
- the LongTermRetentionPolicyInner object itself.
-
weekOfYear
Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.- Returns:
- the weekOfYear value.
-
withWeekOfYear
Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.- Parameters:
weekOfYear- the weekOfYear value to set.- Returns:
- the LongTermRetentionPolicyInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-