Class AzureWorkloadBackupRequest
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.BackupRequest
com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadBackupRequest
AzureWorkload workload-specific backup request.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureWorkloadBackupRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backupType property: Type of backup, viz.Get the enableCompression property: Bool for Compression setting.Get the recoveryPointExpiryTimeInUtc property: Backup copy will expire after the time specified (UTC).void
validate()
Validates the instance.withBackupType
(BackupType backupType) Set the backupType property: Type of backup, viz.withEnableCompression
(Boolean enableCompression) Set the enableCompression property: Bool for Compression setting.withRecoveryPointExpiryTimeInUtc
(OffsetDateTime recoveryPointExpiryTimeInUtc) Set the recoveryPointExpiryTimeInUtc property: Backup copy will expire after the time specified (UTC).
-
Constructor Details
-
AzureWorkloadBackupRequest
public AzureWorkloadBackupRequest()Creates an instance of AzureWorkloadBackupRequest class.
-
-
Method Details
-
backupType
Get the backupType property: Type of backup, viz. Full, Differential, Log or CopyOnlyFull.- Returns:
- the backupType value.
-
withBackupType
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
Get the enableCompression property: Bool for Compression setting.- Returns:
- the enableCompression value.
-
withEnableCompression
Set the enableCompression property: Bool for Compression setting.- Parameters:
enableCompression
- the enableCompression value to set.- Returns:
- the AzureWorkloadBackupRequest object itself.
-
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 classBackupRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-