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 |
---|---|
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. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
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
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:
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.
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