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