public class ManagedInstanceLongTermRetentionPolicyInner
extends com.azure.core.management.ProxyResource
| Constructor and Description |
|---|
ManagedInstanceLongTermRetentionPolicyInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
monthlyRetention()
Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
|
void |
validate()
Validates the instance.
|
String |
weeklyRetention()
Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
|
Integer |
weekOfYear()
Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.
|
ManagedInstanceLongTermRetentionPolicyInner |
withMonthlyRetention(String monthlyRetention)
Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
|
ManagedInstanceLongTermRetentionPolicyInner |
withWeeklyRetention(String weeklyRetention)
Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
|
ManagedInstanceLongTermRetentionPolicyInner |
withWeekOfYear(Integer weekOfYear)
Set the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.
|
ManagedInstanceLongTermRetentionPolicyInner |
withYearlyRetention(String yearlyRetention)
Set the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.
|
String |
yearlyRetention()
Get the yearlyRetention property: The yearly retention policy for an LTR backup in an ISO 8601 format.
|
public ManagedInstanceLongTermRetentionPolicyInner()
public String weeklyRetention()
public ManagedInstanceLongTermRetentionPolicyInner withWeeklyRetention(String weeklyRetention)
weeklyRetention - the weeklyRetention value to set.public String monthlyRetention()
public ManagedInstanceLongTermRetentionPolicyInner withMonthlyRetention(String monthlyRetention)
monthlyRetention - the monthlyRetention value to set.public String yearlyRetention()
public ManagedInstanceLongTermRetentionPolicyInner withYearlyRetention(String yearlyRetention)
yearlyRetention - the yearlyRetention value to set.public Integer weekOfYear()
public ManagedInstanceLongTermRetentionPolicyInner withWeekOfYear(Integer weekOfYear)
weekOfYear - the weekOfYear value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.