Class AzureWorkloadBackupRequest

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.BackupRequest
com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadBackupRequest

public final class AzureWorkloadBackupRequest extends BackupRequest
AzureWorkload workload-specific backup request.
  • Constructor Details

    • AzureWorkloadBackupRequest

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

    • backupType

      public BackupType backupType()
      Get the backupType property: Type of backup, viz. Full, Differential, Log or CopyOnlyFull.
      Returns:
      the backupType value.
    • withBackupType

      public AzureWorkloadBackupRequest withBackupType(BackupType backupType)
      Set the backupType property: Type of backup, viz. Full, Differential, Log or CopyOnlyFull.
      Parameters:
      backupType - the backupType value to set.
      Returns:
      the AzureWorkloadBackupRequest object itself.
    • enableCompression

      public Boolean enableCompression()
      Get the enableCompression property: Bool for Compression setting.
      Returns:
      the enableCompression value.
    • withEnableCompression

      public AzureWorkloadBackupRequest withEnableCompression(Boolean enableCompression)
      Set the enableCompression property: Bool for Compression setting.
      Parameters:
      enableCompression - the enableCompression value to set.
      Returns:
      the AzureWorkloadBackupRequest object itself.
    • recoveryPointExpiryTimeInUtc

      public OffsetDateTime recoveryPointExpiryTimeInUtc()
      Get the recoveryPointExpiryTimeInUtc property: Backup copy will expire after the time specified (UTC).
      Returns:
      the recoveryPointExpiryTimeInUtc value.
    • withRecoveryPointExpiryTimeInUtc

      public AzureWorkloadBackupRequest withRecoveryPointExpiryTimeInUtc(OffsetDateTime recoveryPointExpiryTimeInUtc)
      Set the recoveryPointExpiryTimeInUtc property: Backup copy will expire after the time specified (UTC).
      Parameters:
      recoveryPointExpiryTimeInUtc - the recoveryPointExpiryTimeInUtc value to set.
      Returns:
      the AzureWorkloadBackupRequest object itself.
    • validate

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