ManagedBackupShortTermRetentionPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. ManagedBackupShortTermRetentionPolicyInner
- com.
- com.
public final class ManagedBackupShortTermRetentionPolicyInner
extends ProxyResource
A short term retention policy.
Constructor Summary
Constructor | Description |
---|---|
ManagedBackupShortTermRetentionPolicyInner() |
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 |
name()
Get the name property: The name of the resource. |
Integer |
retentionDays()
Get the retention |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Managed |
withRetentionDays(Integer retentionDays)
Set the retention |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ManagedBackupShortTermRetentionPolicyInner
public ManagedBackupShortTermRetentionPolicyInner()
Creates an instance of ManagedBackupShortTermRetentionPolicyInner class.
Method Details
fromJson
public static ManagedBackupShortTermRetentionPolicyInner fromJson(JsonReader jsonReader)
Reads an instance of ManagedBackupShortTermRetentionPolicyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ManagedBackupShortTermRetentionPolicyInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ManagedBackupShortTermRetentionPolicyInner.name()Returns:
retentionDays
public Integer retentionDays()
Get the retentionDays property: The backup retention period in days. This is how many days Point-in-Time Restore will be supported.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedBackupShortTermRetentionPolicyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ManagedBackupShortTermRetentionPolicyInner.type()Returns:
validate
public void validate()
Validates the instance.
withRetentionDays
public ManagedBackupShortTermRetentionPolicyInner withRetentionDays(Integer retentionDays)
Set the retentionDays property: The backup retention period in days. This is how many days Point-in-Time Restore will be supported.
Parameters:
Returns:
Applies to
Azure SDK for Java