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 |
|---|---|
|
Backup |
backupStorageAccessTier()
Get the backup |
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
monthlyRetention()
Get the monthly |
| String |
name()
Get the name property: The name of the resource. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
| String |
weeklyRetention()
Get the weekly |
| Integer |
weekOfYear()
Get the week |
|
Managed |
withBackupStorageAccessTier(BackupStorageAccessTier backupStorageAccessTier)
Set the backup |
|
Managed |
withMonthlyRetention(String monthlyRetention)
Set the monthly |
|
Managed |
withWeeklyRetention(String weeklyRetention)
Set the weekly |
|
Managed |
withWeekOfYear(Integer weekOfYear)
Set the week |
|
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
backupStorageAccessTier
public BackupStorageAccessTier backupStorageAccessTier()
Get the backupStorageAccessTier property: The BackupStorageAccessTier for the LTR backups.
Returns:
fromJson
public static ManagedInstanceLongTermRetentionPolicyInner fromJson(JsonReader jsonReader)
Reads an instance of ManagedInstanceLongTermRetentionPolicyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ManagedInstanceLongTermRetentionPolicyInner.id()Returns:
monthlyRetention
public String monthlyRetention()
Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ManagedInstanceLongTermRetentionPolicyInner.name()Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedInstanceLongTermRetentionPolicyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ManagedInstanceLongTermRetentionPolicyInner.type()Returns:
validate
public void validate()
Validates the instance.
weeklyRetention
public String weeklyRetention()
Get the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
Returns:
weekOfYear
public Integer weekOfYear()
Get the weekOfYear property: The week of year to take the yearly backup in an ISO 8601 format.
Returns:
withBackupStorageAccessTier
public ManagedInstanceLongTermRetentionPolicyInner withBackupStorageAccessTier(BackupStorageAccessTier backupStorageAccessTier)
Set the backupStorageAccessTier property: The BackupStorageAccessTier for the LTR backups.
Parameters:
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:
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:
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:
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: