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 Summary
Constructors Constructor Description AzureWorkloadBackupRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupType
backupType()
Get the backupType property: Type of backup, viz.Boolean
enableCompression()
Get the enableCompression property: Bool for Compression setting.OffsetDateTime
recoveryPointExpiryTimeInUtc()
Get the recoveryPointExpiryTimeInUtc property: Backup copy will expire after the time specified (UTC).void
validate()
Validates the instance.AzureWorkloadBackupRequest
withBackupType(BackupType backupType)
Set the backupType property: Type of backup, viz.AzureWorkloadBackupRequest
withEnableCompression(Boolean enableCompression)
Set the enableCompression property: Bool for Compression setting.AzureWorkloadBackupRequest
withRecoveryPointExpiryTimeInUtc(OffsetDateTime recoveryPointExpiryTimeInUtc)
Set the recoveryPointExpiryTimeInUtc property: Backup copy will expire after the time specified (UTC).
-
-
-
Method Detail
-
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 classBackupRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-