Class Backup
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.Backup
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Backup>
-
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 BackupfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Backup 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
-
Backup
public Backup()Creates an instance of Backup class.
-
-
Method Details
-
backupRetentionDays
Get the backupRetentionDays property: Backup retention days for the server.- Returns:
- the backupRetentionDays value.
-
withBackupRetentionDays
-
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 Backup 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<Backup>- Throws:
IOException
-
fromJson
Reads an instance of Backup from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Backup 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 Backup.
-