Class BackupLongTermRetentionPolicyInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.sql.fluent.models.BackupLongTermRetentionPolicyInner
-
public class BackupLongTermRetentionPolicyInner extends com.azure.core.management.ProxyResourceA long term retention policy.
-
-
Constructor Summary
Constructors Constructor Description BackupLongTermRetentionPolicyInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringmonthlyRetention()Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.voidvalidate()Validates the instance.StringweeklyRetention()Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.IntegerweekOfYear()Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.BackupLongTermRetentionPolicyInnerwithMonthlyRetention(String monthlyRetention)Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.BackupLongTermRetentionPolicyInnerwithWeeklyRetention(String weeklyRetention)Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.BackupLongTermRetentionPolicyInnerwithWeekOfYear(Integer weekOfYear)Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.BackupLongTermRetentionPolicyInnerwithYearlyRetention(String yearlyRetention)Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.StringyearlyRetention()Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.
-
-
-
Method Detail
-
weeklyRetention
public String weeklyRetention()
Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.- Returns:
- the weeklyRetention value.
-
withWeeklyRetention
public BackupLongTermRetentionPolicyInner withWeeklyRetention(String weeklyRetention)
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 BackupLongTermRetentionPolicyInner object itself.
-
monthlyRetention
public String monthlyRetention()
Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.- Returns:
- the monthlyRetention value.
-
withMonthlyRetention
public BackupLongTermRetentionPolicyInner withMonthlyRetention(String monthlyRetention)
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 BackupLongTermRetentionPolicyInner object itself.
-
yearlyRetention
public String yearlyRetention()
Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.- Returns:
- the yearlyRetention value.
-
withYearlyRetention
public BackupLongTermRetentionPolicyInner withYearlyRetention(String yearlyRetention)
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 BackupLongTermRetentionPolicyInner object itself.
-
weekOfYear
public Integer weekOfYear()
Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.- Returns:
- the weekOfYear value.
-
withWeekOfYear
public BackupLongTermRetentionPolicyInner withWeekOfYear(Integer weekOfYear)
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 BackupLongTermRetentionPolicyInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-