Class DeletedBackupInstance

java.lang.Object
com.azure.resourcemanager.dataprotection.models.BackupInstance
com.azure.resourcemanager.dataprotection.models.DeletedBackupInstance

public final class DeletedBackupInstance extends BackupInstance
Deleted Backup Instance.
  • Constructor Details

    • DeletedBackupInstance

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

    • deletionInfo

      public DeletionInfo deletionInfo()
      Get the deletionInfo property: Deletion info of Backup Instance.
      Returns:
      the deletionInfo value.
    • withFriendlyName

      public DeletedBackupInstance withFriendlyName(String friendlyName)
      Set the friendlyName property: Gets or sets the Backup Instance friendly name.
      Overrides:
      withFriendlyName in class BackupInstance
      Parameters:
      friendlyName - the friendlyName value to set.
      Returns:
      the BackupInstance object itself.
    • withDataSourceInfo

      public DeletedBackupInstance withDataSourceInfo(Datasource dataSourceInfo)
      Set the dataSourceInfo property: Datasource

      Gets or sets the data source information.

      Overrides:
      withDataSourceInfo in class BackupInstance
      Parameters:
      dataSourceInfo - the dataSourceInfo value to set.
      Returns:
      the BackupInstance object itself.
    • withDataSourceSetInfo

      public DeletedBackupInstance withDataSourceSetInfo(DatasourceSet dataSourceSetInfo)
      Set the dataSourceSetInfo property: DatasourceSet

      Gets or sets the data source set information.

      Overrides:
      withDataSourceSetInfo in class BackupInstance
      Parameters:
      dataSourceSetInfo - the dataSourceSetInfo value to set.
      Returns:
      the BackupInstance object itself.
    • withPolicyInfo

      public DeletedBackupInstance withPolicyInfo(PolicyInfo policyInfo)
      Set the policyInfo property: PolicyInfo

      Gets or sets the policy information.

      Overrides:
      withPolicyInfo in class BackupInstance
      Parameters:
      policyInfo - the policyInfo value to set.
      Returns:
      the BackupInstance object itself.
    • withDatasourceAuthCredentials

      public DeletedBackupInstance withDatasourceAuthCredentials(AuthCredentials datasourceAuthCredentials)
      Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.
      Overrides:
      withDatasourceAuthCredentials in class BackupInstance
      Parameters:
      datasourceAuthCredentials - the datasourceAuthCredentials value to set.
      Returns:
      the BackupInstance object itself.
    • withValidationType

      public DeletedBackupInstance withValidationType(ValidationType validationType)
      Set the validationType property: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
      Overrides:
      withValidationType in class BackupInstance
      Parameters:
      validationType - the validationType value to set.
      Returns:
      the BackupInstance object itself.
    • withObjectType

      public DeletedBackupInstance withObjectType(String objectType)
      Set the objectType property: The objectType property.
      Overrides:
      withObjectType in class BackupInstance
      Parameters:
      objectType - the objectType value to set.
      Returns:
      the BackupInstance object itself.
    • validate

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