java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.Backup

public final class Backup extends Object
Backup properties of a server.
  • Constructor Details

    • Backup

      public Backup()
      Creates an instance of Backup class.
  • Method Details

    • backupRetentionDays

      public Integer backupRetentionDays()
      Get the backupRetentionDays property: Backup retention days for the server.
      Returns:
      the backupRetentionDays value.
    • withBackupRetentionDays

      public Backup withBackupRetentionDays(Integer backupRetentionDays)
      Set the backupRetentionDays property: Backup retention days for the server.
      Parameters:
      backupRetentionDays - the backupRetentionDays value to set.
      Returns:
      the Backup object itself.
    • geoRedundantBackup

      public GeoRedundantBackupEnum geoRedundantBackup()
      Get the geoRedundantBackup property: A value indicating whether Geo-Redundant backup is enabled on the server.
      Returns:
      the geoRedundantBackup value.
    • withGeoRedundantBackup

      public Backup withGeoRedundantBackup(GeoRedundantBackupEnum geoRedundantBackup)
      Set the geoRedundantBackup property: A value indicating whether Geo-Redundant backup is enabled on the server.
      Parameters:
      geoRedundantBackup - the geoRedundantBackup value to set.
      Returns:
      the Backup object itself.
    • earliestRestoreDate

      public OffsetDateTime earliestRestoreDate()
      Get the earliestRestoreDate property: The earliest restore point time (ISO8601 format) for server.
      Returns:
      the earliestRestoreDate value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.