BaseLongTermRetentionPolicyProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. BaseLongTermRetentionPolicyProperties
- com.
Implements
public final class BaseLongTermRetentionPolicyProperties
implements JsonSerializable<BaseLongTermRetentionPolicyProperties>
Properties of a long term retention policy.
Constructor Summary
| Constructor | Description |
|---|---|
| BaseLongTermRetentionPolicyProperties() |
Creates an instance of Base |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Base |
fromJson(JsonReader jsonReader)
Reads an instance of Base |
| String |
monthlyRetention()
Get the monthly |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
weeklyRetention()
Get the weekly |
| Integer |
weekOfYear()
Get the week |
|
Base |
withMonthlyRetention(String monthlyRetention)
Set the monthly |
|
Base |
withWeeklyRetention(String weeklyRetention)
Set the weekly |
|
Base |
withWeekOfYear(Integer weekOfYear)
Set the week |
|
Base |
withYearlyRetention(String yearlyRetention)
Set the yearly |
| String |
yearlyRetention()
Get the yearly |
Methods inherited from java.lang.Object
Constructor Details
BaseLongTermRetentionPolicyProperties
public BaseLongTermRetentionPolicyProperties()
Creates an instance of BaseLongTermRetentionPolicyProperties class.
Method Details
fromJson
public static BaseLongTermRetentionPolicyProperties fromJson(JsonReader jsonReader)
Reads an instance of BaseLongTermRetentionPolicyProperties from the JsonReader.
Parameters:
Returns:
Throws:
monthlyRetention
public String monthlyRetention()
Get the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
Returns:
toJson
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:
withMonthlyRetention
public BaseLongTermRetentionPolicyProperties withMonthlyRetention(String monthlyRetention)
Set the monthlyRetention property: The monthly retention policy for an LTR backup in an ISO 8601 format.
Parameters:
Returns:
withWeeklyRetention
public BaseLongTermRetentionPolicyProperties withWeeklyRetention(String weeklyRetention)
Set the weeklyRetention property: The weekly retention policy for an LTR backup in an ISO 8601 format.
Parameters:
Returns:
withWeekOfYear
public BaseLongTermRetentionPolicyProperties 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 BaseLongTermRetentionPolicyProperties 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: