Class BackupSetInfo

java.lang.Object
com.azure.resourcemanager.datamigration.models.BackupSetInfo

public final class BackupSetInfo extends Object
Information of backup set.
  • Constructor Details

    • BackupSetInfo

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

    • backupSetId

      public String backupSetId()
      Get the backupSetId property: Id for the set of backup files.
      Returns:
      the backupSetId value.
    • withBackupSetId

      public BackupSetInfo withBackupSetId(String backupSetId)
      Set the backupSetId property: Id for the set of backup files.
      Parameters:
      backupSetId - the backupSetId value to set.
      Returns:
      the BackupSetInfo object itself.
    • firstLsn

      public String firstLsn()
      Get the firstLsn property: First log sequence number of the backup file.
      Returns:
      the firstLsn value.
    • withFirstLsn

      public BackupSetInfo withFirstLsn(String firstLsn)
      Set the firstLsn property: First log sequence number of the backup file.
      Parameters:
      firstLsn - the firstLsn value to set.
      Returns:
      the BackupSetInfo object itself.
    • lastLsn

      public String lastLsn()
      Get the lastLsn property: Last log sequence number of the backup file.
      Returns:
      the lastLsn value.
    • withLastLsn

      public BackupSetInfo withLastLsn(String lastLsn)
      Set the lastLsn property: Last log sequence number of the backup file.
      Parameters:
      lastLsn - the lastLsn value to set.
      Returns:
      the BackupSetInfo object itself.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Last modified time of the backup file in share location.
      Returns:
      the lastModifiedTime value.
    • withLastModifiedTime

      public BackupSetInfo withLastModifiedTime(OffsetDateTime lastModifiedTime)
      Set the lastModifiedTime property: Last modified time of the backup file in share location.
      Parameters:
      lastModifiedTime - the lastModifiedTime value to set.
      Returns:
      the BackupSetInfo object itself.
    • backupType

      public BackupType backupType()
      Get the backupType property: Enum of the different backup types.
      Returns:
      the backupType value.
    • withBackupType

      public BackupSetInfo withBackupType(BackupType backupType)
      Set the backupType property: Enum of the different backup types.
      Parameters:
      backupType - the backupType value to set.
      Returns:
      the BackupSetInfo object itself.
    • listOfBackupFiles

      public List<BackupFileInfo> listOfBackupFiles()
      Get the listOfBackupFiles property: List of files in the backup set.
      Returns:
      the listOfBackupFiles value.
    • withListOfBackupFiles

      public BackupSetInfo withListOfBackupFiles(List<BackupFileInfo> listOfBackupFiles)
      Set the listOfBackupFiles property: List of files in the backup set.
      Parameters:
      listOfBackupFiles - the listOfBackupFiles value to set.
      Returns:
      the BackupSetInfo object itself.
    • databaseName

      public String databaseName()
      Get the databaseName property: Name of the database to which the backup set belongs.
      Returns:
      the databaseName value.
    • withDatabaseName

      public BackupSetInfo withDatabaseName(String databaseName)
      Set the databaseName property: Name of the database to which the backup set belongs.
      Parameters:
      databaseName - the databaseName value to set.
      Returns:
      the BackupSetInfo object itself.
    • backupStartDate

      public OffsetDateTime backupStartDate()
      Get the backupStartDate property: Date and time that the backup operation began.
      Returns:
      the backupStartDate value.
    • withBackupStartDate

      public BackupSetInfo withBackupStartDate(OffsetDateTime backupStartDate)
      Set the backupStartDate property: Date and time that the backup operation began.
      Parameters:
      backupStartDate - the backupStartDate value to set.
      Returns:
      the BackupSetInfo object itself.
    • backupFinishedDate

      public OffsetDateTime backupFinishedDate()
      Get the backupFinishedDate property: Date and time that the backup operation finished.
      Returns:
      the backupFinishedDate value.
    • withBackupFinishedDate

      public BackupSetInfo withBackupFinishedDate(OffsetDateTime backupFinishedDate)
      Set the backupFinishedDate property: Date and time that the backup operation finished.
      Parameters:
      backupFinishedDate - the backupFinishedDate value to set.
      Returns:
      the BackupSetInfo object itself.
    • isBackupRestored

      public Boolean isBackupRestored()
      Get the isBackupRestored property: Whether the backup set is restored or not.
      Returns:
      the isBackupRestored value.
    • withIsBackupRestored

      public BackupSetInfo withIsBackupRestored(Boolean isBackupRestored)
      Set the isBackupRestored property: Whether the backup set is restored or not.
      Parameters:
      isBackupRestored - the isBackupRestored value to set.
      Returns:
      the BackupSetInfo object itself.
    • validate

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