Class BackupForPatch
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.BackupForPatch
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackupForPatch>
public final class BackupForPatch
extends Object
implements com.azure.json.JsonSerializable<BackupForPatch>
Backup properties of a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the backupRetentionDays property: Backup retention days for the server.Get the earliestRestoreDate property: Earliest restore point time (ISO8601 format) for a server.static BackupForPatchfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackupForPatch from the JsonReader.Get the geoRedundantBackup property: Indicates if the server is configured to create geographically redundant backups.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackupRetentionDays(Integer backupRetentionDays) Set the backupRetentionDays property: Backup retention days for the server.withGeoRedundantBackup(GeographicallyRedundantBackup geoRedundantBackup) Set the geoRedundantBackup property: Indicates if the server is configured to create geographically redundant backups.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BackupForPatch
public BackupForPatch()Creates an instance of BackupForPatch class.
-
-
Method Details
-
backupRetentionDays
Get the backupRetentionDays property: Backup retention days for the server.- Returns:
- the backupRetentionDays value.
-
withBackupRetentionDays
Set the backupRetentionDays property: Backup retention days for the server.- Parameters:
backupRetentionDays- the backupRetentionDays value to set.- Returns:
- the BackupForPatch object itself.
-
geoRedundantBackup
Get the geoRedundantBackup property: Indicates if the server is configured to create geographically redundant backups.- Returns:
- the geoRedundantBackup value.
-
withGeoRedundantBackup
Set the geoRedundantBackup property: Indicates if the server is configured to create geographically redundant backups.- Parameters:
geoRedundantBackup- the geoRedundantBackup value to set.- Returns:
- the BackupForPatch object itself.
-
earliestRestoreDate
Get the earliestRestoreDate property: Earliest restore point time (ISO8601 format) for a server.- Returns:
- the earliestRestoreDate value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BackupForPatch>- Throws:
IOException
-
fromJson
Reads an instance of BackupForPatch from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackupForPatch if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the BackupForPatch.
-