ManagedInstanceLongTermRetentionPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. ManagedInstanceLongTermRetentionPolicyInner
- com.
- com.
public final class ManagedInstanceLongTermRetentionPolicyInner
extends ProxyResource
A long term retention policy.
Constructor Summary
Constructor | Description |
---|---|
ManagedInstanceLongTermRetentionPolicyInner() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
monthlyRetention()
Get the monthly |
void |
validate()
Validates the instance. |
Integer |
weekOfYear()
Get the week |
String |
weeklyRetention()
Get the weekly |
Managed |
withMonthlyRetention(String monthlyRetention)
Set the monthly |
Managed |
withWeekOfYear(Integer weekOfYear)
Set the week |
Managed |
withWeeklyRetention(String weeklyRetention)
Set the weekly |
Managed |
withYearlyRetention(String yearlyRetention)
Set the yearly |
String |
yearlyRetention()
Get the yearly |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ManagedInstanceLongTermRetentionPolicyInner
public ManagedInstanceLongTermRetentionPolicyInner()
Creates an instance of ManagedInstanceLongTermRetentionPolicyInner class.
Method Details
monthlyRetention
public String monthlyRetention()
Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
Returns:
validate
public void validate()
Validates the instance.
weekOfYear
public Integer weekOfYear()
Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.
Returns:
weeklyRetention
public String weeklyRetention()
Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
Returns:
withMonthlyRetention
public ManagedInstanceLongTermRetentionPolicyInner withMonthlyRetention(String monthlyRetention)
Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
Parameters:
Returns:
withWeekOfYear
public ManagedInstanceLongTermRetentionPolicyInner withWeekOfYear(Integer weekOfYear)
Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.
Parameters:
Returns:
withWeeklyRetention
public ManagedInstanceLongTermRetentionPolicyInner withWeeklyRetention(String weeklyRetention)
Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
Parameters:
Returns:
withYearlyRetention
public ManagedInstanceLongTermRetentionPolicyInner withYearlyRetention(String yearlyRetention)
Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.
Parameters:
Returns:
yearlyRetention
public String yearlyRetention()
Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for