java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.ServerBackupProperties

public final class ServerBackupProperties extends Object
The properties of a server backup.
  • Constructor Details

    • ServerBackupProperties

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

    • backupType

      public Origin backupType()
      Get the backupType property: Backup type.
      Returns:
      the backupType value.
    • withBackupType

      public ServerBackupProperties withBackupType(Origin backupType)
      Set the backupType property: Backup type.
      Parameters:
      backupType - the backupType value to set.
      Returns:
      the ServerBackupProperties object itself.
    • completedTime

      public OffsetDateTime completedTime()
      Get the completedTime property: Backup completed time (ISO8601 format).
      Returns:
      the completedTime value.
    • withCompletedTime

      public ServerBackupProperties withCompletedTime(OffsetDateTime completedTime)
      Set the completedTime property: Backup completed time (ISO8601 format).
      Parameters:
      completedTime - the completedTime value to set.
      Returns:
      the ServerBackupProperties object itself.
    • source

      public String source()
      Get the source property: Backup source.
      Returns:
      the source value.
    • withSource

      public ServerBackupProperties withSource(String source)
      Set the source property: Backup source.
      Parameters:
      source - the source value to set.
      Returns:
      the ServerBackupProperties object itself.
    • validate

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