Class AzureVmWorkloadSapAseDatabaseProtectedItem
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectedItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseDatabaseProtectedItem
-
public final class AzureVmWorkloadSapAseDatabaseProtectedItem extends AzureVmWorkloadProtectedItem
Azure VM workload-specific protected item representing SAP ASE Database.
-
-
Constructor Summary
Constructors Constructor Description AzureVmWorkloadSapAseDatabaseProtectedItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.AzureVmWorkloadSapAseDatabaseProtectedItem
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.AzureVmWorkloadSapAseDatabaseProtectedItem
withBackupSetName(String backupSetName)
Set the backupSetName property: Name of the backup set the backup item belongs to.AzureVmWorkloadSapAseDatabaseProtectedItem
withContainerName(String containerName)
Set the containerName property: Unique name of container.AzureVmWorkloadSapAseDatabaseProtectedItem
withCreateMode(CreateMode createMode)
Set the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.AzureVmWorkloadSapAseDatabaseProtectedItem
withDeferredDeleteTimeInUtc(OffsetDateTime deferredDeleteTimeInUtc)
Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.AzureVmWorkloadSapAseDatabaseProtectedItem
withDeferredDeleteTimeRemaining(String deferredDeleteTimeRemaining)
Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.AzureVmWorkloadSapAseDatabaseProtectedItem
withExtendedInfo(AzureVmWorkloadProtectedItemExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information for this backup item.AzureVmWorkloadSapAseDatabaseProtectedItem
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the DB represented by this backup item.AzureVmWorkloadSapAseDatabaseProtectedItem
withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.AzureVmWorkloadSapAseDatabaseProtectedItem
withIsDeferredDeleteScheduleUpcoming(Boolean isDeferredDeleteScheduleUpcoming)
Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.AzureVmWorkloadSapAseDatabaseProtectedItem
withIsRehydrate(Boolean isRehydrate)
Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.AzureVmWorkloadSapAseDatabaseProtectedItem
withIsScheduledForDeferredDelete(Boolean isScheduledForDeferredDelete)
Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.AzureVmWorkloadSapAseDatabaseProtectedItem
withKpisHealths(Map<String,KpiResourceHealthDetails> kpisHealths)
Set the kpisHealths property: Health details of different KPIs.AzureVmWorkloadSapAseDatabaseProtectedItem
withLastBackupErrorDetail(ErrorDetail lastBackupErrorDetail)
Set the lastBackupErrorDetail property: Error details in last backup.AzureVmWorkloadSapAseDatabaseProtectedItem
withLastBackupStatus(LastBackupStatus lastBackupStatus)
Set the lastBackupStatus property: Last backup operation status.AzureVmWorkloadSapAseDatabaseProtectedItem
withLastBackupTime(OffsetDateTime lastBackupTime)
Set the lastBackupTime property: Timestamp of the last backup operation on this backup item.AzureVmWorkloadSapAseDatabaseProtectedItem
withLastRecoveryPoint(OffsetDateTime lastRecoveryPoint)
Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.AzureVmWorkloadSapAseDatabaseProtectedItem
withParentName(String parentName)
Set the parentName property: Parent name of the DB such as Instance or Availability Group.AzureVmWorkloadSapAseDatabaseProtectedItem
withParentType(String parentType)
Set the parentType property: Parent type of protected item, example: for a DB, standalone server or distributed.AzureVmWorkloadSapAseDatabaseProtectedItem
withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.AzureVmWorkloadSapAseDatabaseProtectedItem
withPolicyName(String policyName)
Set the policyName property: Name of the policy used for protection.AzureVmWorkloadSapAseDatabaseProtectedItem
withProtectedItemDataSourceId(String protectedItemDataSourceId)
Set the protectedItemDataSourceId property: Data ID of the protected item.AzureVmWorkloadSapAseDatabaseProtectedItem
withProtectedItemHealthStatus(ProtectedItemHealthStatus protectedItemHealthStatus)
Set the protectedItemHealthStatus property: Health status of the backup item, evaluated based on last heartbeat received.AzureVmWorkloadSapAseDatabaseProtectedItem
withProtectionState(ProtectionState protectionState)
Set the protectionState property: Backup state of this backup item.AzureVmWorkloadSapAseDatabaseProtectedItem
withProtectionStatus(String protectionStatus)
Set the protectionStatus property: Backup status of this backup item.AzureVmWorkloadSapAseDatabaseProtectedItem
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.AzureVmWorkloadSapAseDatabaseProtectedItem
withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.AzureVmWorkloadSapAseDatabaseProtectedItem
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.AzureVmWorkloadSapAseDatabaseProtectedItem
withWorkloadType(DataSourceType workloadType)
Set the workloadType property: Type of workload this item represents.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectedItem
extendedInfo, friendlyName, kpisHealths, lastBackupErrorDetail, lastBackupStatus, lastBackupTime, parentName, parentType, protectedItemDataSourceId, protectedItemHealthStatus, protectionState, protectionStatus, serverName
-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
backupManagementType, backupSetName, containerName, createMode, deferredDeleteTimeInUtc, deferredDeleteTimeRemaining, isArchiveEnabled, isDeferredDeleteScheduleUpcoming, isRehydrate, isScheduledForDeferredDelete, lastRecoveryPoint, policyId, policyName, resourceGuardOperationRequests, sourceResourceId, workloadType
-
-
-
-
Method Detail
-
withFriendlyName
public AzureVmWorkloadSapAseDatabaseProtectedItem withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the DB represented by this backup item.- Overrides:
withFriendlyName
in classAzureVmWorkloadProtectedItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withServerName
public AzureVmWorkloadSapAseDatabaseProtectedItem withServerName(String serverName)
Set the serverName property: Host/Cluster Name for instance or AG.- Overrides:
withServerName
in classAzureVmWorkloadProtectedItem
- Parameters:
serverName
- the serverName value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withParentName
public AzureVmWorkloadSapAseDatabaseProtectedItem withParentName(String parentName)
Set the parentName property: Parent name of the DB such as Instance or Availability Group.- Overrides:
withParentName
in classAzureVmWorkloadProtectedItem
- Parameters:
parentName
- the parentName value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withParentType
public AzureVmWorkloadSapAseDatabaseProtectedItem withParentType(String parentType)
Set the parentType property: Parent type of protected item, example: for a DB, standalone server or distributed.- Overrides:
withParentType
in classAzureVmWorkloadProtectedItem
- Parameters:
parentType
- the parentType value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withProtectionStatus
public AzureVmWorkloadSapAseDatabaseProtectedItem withProtectionStatus(String protectionStatus)
Set the protectionStatus property: Backup status of this backup item.- Overrides:
withProtectionStatus
in classAzureVmWorkloadProtectedItem
- Parameters:
protectionStatus
- the protectionStatus value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withProtectionState
public AzureVmWorkloadSapAseDatabaseProtectedItem withProtectionState(ProtectionState protectionState)
Set the protectionState property: Backup state of this backup item.- Overrides:
withProtectionState
in classAzureVmWorkloadProtectedItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withLastBackupStatus
public AzureVmWorkloadSapAseDatabaseProtectedItem withLastBackupStatus(LastBackupStatus lastBackupStatus)
Set the lastBackupStatus property: Last backup operation status. Possible values: Healthy, Unhealthy.- Overrides:
withLastBackupStatus
in classAzureVmWorkloadProtectedItem
- Parameters:
lastBackupStatus
- the lastBackupStatus value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withLastBackupTime
public AzureVmWorkloadSapAseDatabaseProtectedItem withLastBackupTime(OffsetDateTime lastBackupTime)
Set the lastBackupTime property: Timestamp of the last backup operation on this backup item.- Overrides:
withLastBackupTime
in classAzureVmWorkloadProtectedItem
- Parameters:
lastBackupTime
- the lastBackupTime value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withLastBackupErrorDetail
public AzureVmWorkloadSapAseDatabaseProtectedItem withLastBackupErrorDetail(ErrorDetail lastBackupErrorDetail)
Set the lastBackupErrorDetail property: Error details in last backup.- Overrides:
withLastBackupErrorDetail
in classAzureVmWorkloadProtectedItem
- Parameters:
lastBackupErrorDetail
- the lastBackupErrorDetail value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withProtectedItemDataSourceId
public AzureVmWorkloadSapAseDatabaseProtectedItem withProtectedItemDataSourceId(String protectedItemDataSourceId)
Set the protectedItemDataSourceId property: Data ID of the protected item.- Overrides:
withProtectedItemDataSourceId
in classAzureVmWorkloadProtectedItem
- Parameters:
protectedItemDataSourceId
- the protectedItemDataSourceId value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withProtectedItemHealthStatus
public AzureVmWorkloadSapAseDatabaseProtectedItem withProtectedItemHealthStatus(ProtectedItemHealthStatus protectedItemHealthStatus)
Set the protectedItemHealthStatus property: Health status of the backup item, evaluated based on last heartbeat received.- Overrides:
withProtectedItemHealthStatus
in classAzureVmWorkloadProtectedItem
- Parameters:
protectedItemHealthStatus
- the protectedItemHealthStatus value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withExtendedInfo
public AzureVmWorkloadSapAseDatabaseProtectedItem withExtendedInfo(AzureVmWorkloadProtectedItemExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information for this backup item.- Overrides:
withExtendedInfo
in classAzureVmWorkloadProtectedItem
- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withKpisHealths
public AzureVmWorkloadSapAseDatabaseProtectedItem withKpisHealths(Map<String,KpiResourceHealthDetails> kpisHealths)
Set the kpisHealths property: Health details of different KPIs.- Overrides:
withKpisHealths
in classAzureVmWorkloadProtectedItem
- Parameters:
kpisHealths
- the kpisHealths value to set.- Returns:
- the AzureVmWorkloadProtectedItem object itself.
-
withBackupManagementType
public AzureVmWorkloadSapAseDatabaseProtectedItem withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.- Overrides:
withBackupManagementType
in classAzureVmWorkloadProtectedItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectedItem object itself.
-
withWorkloadType
public AzureVmWorkloadSapAseDatabaseProtectedItem withWorkloadType(DataSourceType workloadType)
Set the workloadType property: Type of workload this item represents.- Overrides:
withWorkloadType
in classAzureVmWorkloadProtectedItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the ProtectedItem object itself.
-
withContainerName
public AzureVmWorkloadSapAseDatabaseProtectedItem withContainerName(String containerName)
Set the containerName property: Unique name of container.- Overrides:
withContainerName
in classAzureVmWorkloadProtectedItem
- Parameters:
containerName
- the containerName value to set.- Returns:
- the ProtectedItem object itself.
-
withSourceResourceId
public AzureVmWorkloadSapAseDatabaseProtectedItem withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.- Overrides:
withSourceResourceId
in classAzureVmWorkloadProtectedItem
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the ProtectedItem object itself.
-
withPolicyId
public AzureVmWorkloadSapAseDatabaseProtectedItem withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.- Overrides:
withPolicyId
in classAzureVmWorkloadProtectedItem
- Parameters:
policyId
- the policyId value to set.- Returns:
- the ProtectedItem object itself.
-
withLastRecoveryPoint
public AzureVmWorkloadSapAseDatabaseProtectedItem withLastRecoveryPoint(OffsetDateTime lastRecoveryPoint)
Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.- Overrides:
withLastRecoveryPoint
in classAzureVmWorkloadProtectedItem
- Parameters:
lastRecoveryPoint
- the lastRecoveryPoint value to set.- Returns:
- the ProtectedItem object itself.
-
withBackupSetName
public AzureVmWorkloadSapAseDatabaseProtectedItem withBackupSetName(String backupSetName)
Set the backupSetName property: Name of the backup set the backup item belongs to.- Overrides:
withBackupSetName
in classAzureVmWorkloadProtectedItem
- Parameters:
backupSetName
- the backupSetName value to set.- Returns:
- the ProtectedItem object itself.
-
withCreateMode
public AzureVmWorkloadSapAseDatabaseProtectedItem withCreateMode(CreateMode createMode)
Set the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.- Overrides:
withCreateMode
in classAzureVmWorkloadProtectedItem
- Parameters:
createMode
- the createMode value to set.- Returns:
- the ProtectedItem object itself.
-
withDeferredDeleteTimeInUtc
public AzureVmWorkloadSapAseDatabaseProtectedItem withDeferredDeleteTimeInUtc(OffsetDateTime deferredDeleteTimeInUtc)
Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.- Overrides:
withDeferredDeleteTimeInUtc
in classAzureVmWorkloadProtectedItem
- Parameters:
deferredDeleteTimeInUtc
- the deferredDeleteTimeInUtc value to set.- Returns:
- the ProtectedItem object itself.
-
withIsScheduledForDeferredDelete
public AzureVmWorkloadSapAseDatabaseProtectedItem withIsScheduledForDeferredDelete(Boolean isScheduledForDeferredDelete)
Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.- Overrides:
withIsScheduledForDeferredDelete
in classAzureVmWorkloadProtectedItem
- Parameters:
isScheduledForDeferredDelete
- the isScheduledForDeferredDelete value to set.- Returns:
- the ProtectedItem object itself.
-
withDeferredDeleteTimeRemaining
public AzureVmWorkloadSapAseDatabaseProtectedItem withDeferredDeleteTimeRemaining(String deferredDeleteTimeRemaining)
Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.- Overrides:
withDeferredDeleteTimeRemaining
in classAzureVmWorkloadProtectedItem
- Parameters:
deferredDeleteTimeRemaining
- the deferredDeleteTimeRemaining value to set.- Returns:
- the ProtectedItem object itself.
-
withIsDeferredDeleteScheduleUpcoming
public AzureVmWorkloadSapAseDatabaseProtectedItem withIsDeferredDeleteScheduleUpcoming(Boolean isDeferredDeleteScheduleUpcoming)
Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.- Overrides:
withIsDeferredDeleteScheduleUpcoming
in classAzureVmWorkloadProtectedItem
- Parameters:
isDeferredDeleteScheduleUpcoming
- the isDeferredDeleteScheduleUpcoming value to set.- Returns:
- the ProtectedItem object itself.
-
withIsRehydrate
public AzureVmWorkloadSapAseDatabaseProtectedItem withIsRehydrate(Boolean isRehydrate)
Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.- Overrides:
withIsRehydrate
in classAzureVmWorkloadProtectedItem
- Parameters:
isRehydrate
- the isRehydrate value to set.- Returns:
- the ProtectedItem object itself.
-
withResourceGuardOperationRequests
public AzureVmWorkloadSapAseDatabaseProtectedItem withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.- Overrides:
withResourceGuardOperationRequests
in classAzureVmWorkloadProtectedItem
- Parameters:
resourceGuardOperationRequests
- the resourceGuardOperationRequests value to set.- Returns:
- the ProtectedItem object itself.
-
withIsArchiveEnabled
public AzureVmWorkloadSapAseDatabaseProtectedItem withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.- Overrides:
withIsArchiveEnabled
in classAzureVmWorkloadProtectedItem
- Parameters:
isArchiveEnabled
- the isArchiveEnabled value to set.- Returns:
- the ProtectedItem object itself.
-
withPolicyName
public AzureVmWorkloadSapAseDatabaseProtectedItem withPolicyName(String policyName)
Set the policyName property: Name of the policy used for protection.- Overrides:
withPolicyName
in classAzureVmWorkloadProtectedItem
- Parameters:
policyName
- the policyName value to set.- Returns:
- the ProtectedItem object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureVmWorkloadProtectedItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-