Class AzureIaaSClassicComputeVMProtectedItem
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectedItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSClassicComputeVMProtectedItem
-
public final class AzureIaaSClassicComputeVMProtectedItem extends AzureIaaSvmProtectedItem
IaaS VM workload-specific backup item representing the Classic Compute VM.
-
-
Constructor Summary
Constructors Constructor Description AzureIaaSClassicComputeVMProtectedItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.AzureIaaSClassicComputeVMProtectedItem
withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.AzureIaaSClassicComputeVMProtectedItem
withBackupSetName(String backupSetName)
Set the backupSetName property: Name of the backup set the backup item belongs to.AzureIaaSClassicComputeVMProtectedItem
withContainerName(String containerName)
Set the containerName property: Unique name of container.AzureIaaSClassicComputeVMProtectedItem
withCreateMode(CreateMode createMode)
Set the createMode property: Create mode to indicate recovery of existing soft deleted data source or creation of new data source.AzureIaaSClassicComputeVMProtectedItem
withDeferredDeleteTimeInUtc(OffsetDateTime deferredDeleteTimeInUtc)
Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.AzureIaaSClassicComputeVMProtectedItem
withDeferredDeleteTimeRemaining(String deferredDeleteTimeRemaining)
Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.AzureIaaSClassicComputeVMProtectedItem
withExtendedInfo(AzureIaaSvmProtectedItemExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information for this backup item.AzureIaaSClassicComputeVMProtectedItem
withExtendedProperties(ExtendedProperties extendedProperties)
Set the extendedProperties property: Extended Properties for Azure IaasVM Backup.AzureIaaSClassicComputeVMProtectedItem
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the VM represented by this backup item.AzureIaaSClassicComputeVMProtectedItem
withHealthDetails(List<AzureIaaSvmHealthDetails> healthDetails)
Set the healthDetails property: Health details on this backup item.AzureIaaSClassicComputeVMProtectedItem
withHealthStatus(HealthStatus healthStatus)
Set the healthStatus property: Health status of protected item.AzureIaaSClassicComputeVMProtectedItem
withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.AzureIaaSClassicComputeVMProtectedItem
withIsDeferredDeleteScheduleUpcoming(Boolean isDeferredDeleteScheduleUpcoming)
Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.AzureIaaSClassicComputeVMProtectedItem
withIsRehydrate(Boolean isRehydrate)
Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.AzureIaaSClassicComputeVMProtectedItem
withIsScheduledForDeferredDelete(Boolean isScheduledForDeferredDelete)
Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.AzureIaaSClassicComputeVMProtectedItem
withKpisHealths(Map<String,KpiResourceHealthDetails> kpisHealths)
Set the kpisHealths property: Health details of different KPIs.AzureIaaSClassicComputeVMProtectedItem
withLastBackupStatus(String lastBackupStatus)
Set the lastBackupStatus property: Last backup operation status.AzureIaaSClassicComputeVMProtectedItem
withLastBackupTime(OffsetDateTime lastBackupTime)
Set the lastBackupTime property: Timestamp of the last backup operation on this backup item.AzureIaaSClassicComputeVMProtectedItem
withLastRecoveryPoint(OffsetDateTime lastRecoveryPoint)
Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.AzureIaaSClassicComputeVMProtectedItem
withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.AzureIaaSClassicComputeVMProtectedItem
withPolicyName(String policyName)
Set the policyName property: Name of the policy used for protection.AzureIaaSClassicComputeVMProtectedItem
withProtectedItemDataId(String protectedItemDataId)
Set the protectedItemDataId property: Data ID of the protected item.AzureIaaSClassicComputeVMProtectedItem
withProtectionState(ProtectionState protectionState)
Set the protectionState property: Backup state of this backup item.AzureIaaSClassicComputeVMProtectedItem
withProtectionStatus(String protectionStatus)
Set the protectionStatus property: Backup status of this backup item.AzureIaaSClassicComputeVMProtectedItem
withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.AzureIaaSClassicComputeVMProtectedItem
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.AzureIaaSClassicComputeVMProtectedItem
withVirtualMachineId(String virtualMachineId)
Set the virtualMachineId property: Fully qualified ARM ID of the virtual machine represented by this item.AzureIaaSClassicComputeVMProtectedItem
withWorkloadType(DataSourceType workloadType)
Set the workloadType property: Type of workload this item represents.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectedItem
extendedInfo, extendedProperties, friendlyName, healthDetails, healthStatus, kpisHealths, lastBackupStatus, lastBackupTime, protectedItemDataId, protectionState, protectionStatus, virtualMachineId
-
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 AzureIaaSClassicComputeVMProtectedItem withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the VM represented by this backup item.- Overrides:
withFriendlyName
in classAzureIaaSvmProtectedItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withVirtualMachineId
public AzureIaaSClassicComputeVMProtectedItem withVirtualMachineId(String virtualMachineId)
Set the virtualMachineId property: Fully qualified ARM ID of the virtual machine represented by this item.- Overrides:
withVirtualMachineId
in classAzureIaaSvmProtectedItem
- Parameters:
virtualMachineId
- the virtualMachineId value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withProtectionStatus
public AzureIaaSClassicComputeVMProtectedItem withProtectionStatus(String protectionStatus)
Set the protectionStatus property: Backup status of this backup item.- Overrides:
withProtectionStatus
in classAzureIaaSvmProtectedItem
- Parameters:
protectionStatus
- the protectionStatus value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withProtectionState
public AzureIaaSClassicComputeVMProtectedItem withProtectionState(ProtectionState protectionState)
Set the protectionState property: Backup state of this backup item.- Overrides:
withProtectionState
in classAzureIaaSvmProtectedItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withHealthStatus
public AzureIaaSClassicComputeVMProtectedItem withHealthStatus(HealthStatus healthStatus)
Set the healthStatus property: Health status of protected item.- Overrides:
withHealthStatus
in classAzureIaaSvmProtectedItem
- Parameters:
healthStatus
- the healthStatus value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withHealthDetails
public AzureIaaSClassicComputeVMProtectedItem withHealthDetails(List<AzureIaaSvmHealthDetails> healthDetails)
Set the healthDetails property: Health details on this backup item.- Overrides:
withHealthDetails
in classAzureIaaSvmProtectedItem
- Parameters:
healthDetails
- the healthDetails value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withKpisHealths
public AzureIaaSClassicComputeVMProtectedItem withKpisHealths(Map<String,KpiResourceHealthDetails> kpisHealths)
Set the kpisHealths property: Health details of different KPIs.- Overrides:
withKpisHealths
in classAzureIaaSvmProtectedItem
- Parameters:
kpisHealths
- the kpisHealths value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withLastBackupStatus
public AzureIaaSClassicComputeVMProtectedItem withLastBackupStatus(String lastBackupStatus)
Set the lastBackupStatus property: Last backup operation status.- Overrides:
withLastBackupStatus
in classAzureIaaSvmProtectedItem
- Parameters:
lastBackupStatus
- the lastBackupStatus value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withLastBackupTime
public AzureIaaSClassicComputeVMProtectedItem withLastBackupTime(OffsetDateTime lastBackupTime)
Set the lastBackupTime property: Timestamp of the last backup operation on this backup item.- Overrides:
withLastBackupTime
in classAzureIaaSvmProtectedItem
- Parameters:
lastBackupTime
- the lastBackupTime value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withProtectedItemDataId
public AzureIaaSClassicComputeVMProtectedItem withProtectedItemDataId(String protectedItemDataId)
Set the protectedItemDataId property: Data ID of the protected item.- Overrides:
withProtectedItemDataId
in classAzureIaaSvmProtectedItem
- Parameters:
protectedItemDataId
- the protectedItemDataId value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withExtendedInfo
public AzureIaaSClassicComputeVMProtectedItem withExtendedInfo(AzureIaaSvmProtectedItemExtendedInfo extendedInfo)
Set the extendedInfo property: Additional information for this backup item.- Overrides:
withExtendedInfo
in classAzureIaaSvmProtectedItem
- Parameters:
extendedInfo
- the extendedInfo value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withExtendedProperties
public AzureIaaSClassicComputeVMProtectedItem withExtendedProperties(ExtendedProperties extendedProperties)
Set the extendedProperties property: Extended Properties for Azure IaasVM Backup.- Overrides:
withExtendedProperties
in classAzureIaaSvmProtectedItem
- Parameters:
extendedProperties
- the extendedProperties value to set.- Returns:
- the AzureIaaSvmProtectedItem object itself.
-
withBackupManagementType
public AzureIaaSClassicComputeVMProtectedItem withBackupManagementType(BackupManagementType backupManagementType)
Set the backupManagementType property: Type of backup management for the backed up item.- Overrides:
withBackupManagementType
in classAzureIaaSvmProtectedItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectedItem object itself.
-
withWorkloadType
public AzureIaaSClassicComputeVMProtectedItem withWorkloadType(DataSourceType workloadType)
Set the workloadType property: Type of workload this item represents.- Overrides:
withWorkloadType
in classAzureIaaSvmProtectedItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the ProtectedItem object itself.
-
withContainerName
public AzureIaaSClassicComputeVMProtectedItem withContainerName(String containerName)
Set the containerName property: Unique name of container.- Overrides:
withContainerName
in classAzureIaaSvmProtectedItem
- Parameters:
containerName
- the containerName value to set.- Returns:
- the ProtectedItem object itself.
-
withSourceResourceId
public AzureIaaSClassicComputeVMProtectedItem withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: ARM ID of the resource to be backed up.- Overrides:
withSourceResourceId
in classAzureIaaSvmProtectedItem
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the ProtectedItem object itself.
-
withPolicyId
public AzureIaaSClassicComputeVMProtectedItem withPolicyId(String policyId)
Set the policyId property: ID of the backup policy with which this item is backed up.- Overrides:
withPolicyId
in classAzureIaaSvmProtectedItem
- Parameters:
policyId
- the policyId value to set.- Returns:
- the ProtectedItem object itself.
-
withLastRecoveryPoint
public AzureIaaSClassicComputeVMProtectedItem withLastRecoveryPoint(OffsetDateTime lastRecoveryPoint)
Set the lastRecoveryPoint property: Timestamp when the last (latest) backup copy was created for this backup item.- Overrides:
withLastRecoveryPoint
in classAzureIaaSvmProtectedItem
- Parameters:
lastRecoveryPoint
- the lastRecoveryPoint value to set.- Returns:
- the ProtectedItem object itself.
-
withBackupSetName
public AzureIaaSClassicComputeVMProtectedItem withBackupSetName(String backupSetName)
Set the backupSetName property: Name of the backup set the backup item belongs to.- Overrides:
withBackupSetName
in classAzureIaaSvmProtectedItem
- Parameters:
backupSetName
- the backupSetName value to set.- Returns:
- the ProtectedItem object itself.
-
withCreateMode
public AzureIaaSClassicComputeVMProtectedItem 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 classAzureIaaSvmProtectedItem
- Parameters:
createMode
- the createMode value to set.- Returns:
- the ProtectedItem object itself.
-
withDeferredDeleteTimeInUtc
public AzureIaaSClassicComputeVMProtectedItem withDeferredDeleteTimeInUtc(OffsetDateTime deferredDeleteTimeInUtc)
Set the deferredDeleteTimeInUtc property: Time for deferred deletion in UTC.- Overrides:
withDeferredDeleteTimeInUtc
in classAzureIaaSvmProtectedItem
- Parameters:
deferredDeleteTimeInUtc
- the deferredDeleteTimeInUtc value to set.- Returns:
- the ProtectedItem object itself.
-
withIsScheduledForDeferredDelete
public AzureIaaSClassicComputeVMProtectedItem withIsScheduledForDeferredDelete(Boolean isScheduledForDeferredDelete)
Set the isScheduledForDeferredDelete property: Flag to identify whether the DS is scheduled for deferred delete.- Overrides:
withIsScheduledForDeferredDelete
in classAzureIaaSvmProtectedItem
- Parameters:
isScheduledForDeferredDelete
- the isScheduledForDeferredDelete value to set.- Returns:
- the ProtectedItem object itself.
-
withDeferredDeleteTimeRemaining
public AzureIaaSClassicComputeVMProtectedItem withDeferredDeleteTimeRemaining(String deferredDeleteTimeRemaining)
Set the deferredDeleteTimeRemaining property: Time remaining before the DS marked for deferred delete is permanently deleted.- Overrides:
withDeferredDeleteTimeRemaining
in classAzureIaaSvmProtectedItem
- Parameters:
deferredDeleteTimeRemaining
- the deferredDeleteTimeRemaining value to set.- Returns:
- the ProtectedItem object itself.
-
withIsDeferredDeleteScheduleUpcoming
public AzureIaaSClassicComputeVMProtectedItem withIsDeferredDeleteScheduleUpcoming(Boolean isDeferredDeleteScheduleUpcoming)
Set the isDeferredDeleteScheduleUpcoming property: Flag to identify whether the deferred deleted DS is to be purged soon.- Overrides:
withIsDeferredDeleteScheduleUpcoming
in classAzureIaaSvmProtectedItem
- Parameters:
isDeferredDeleteScheduleUpcoming
- the isDeferredDeleteScheduleUpcoming value to set.- Returns:
- the ProtectedItem object itself.
-
withIsRehydrate
public AzureIaaSClassicComputeVMProtectedItem withIsRehydrate(Boolean isRehydrate)
Set the isRehydrate property: Flag to identify that deferred deleted DS is to be moved into Pause state.- Overrides:
withIsRehydrate
in classAzureIaaSvmProtectedItem
- Parameters:
isRehydrate
- the isRehydrate value to set.- Returns:
- the ProtectedItem object itself.
-
withResourceGuardOperationRequests
public AzureIaaSClassicComputeVMProtectedItem withResourceGuardOperationRequests(List<String> resourceGuardOperationRequests)
Set the resourceGuardOperationRequests property: ResourceGuardOperationRequests on which LAC check will be performed.- Overrides:
withResourceGuardOperationRequests
in classAzureIaaSvmProtectedItem
- Parameters:
resourceGuardOperationRequests
- the resourceGuardOperationRequests value to set.- Returns:
- the ProtectedItem object itself.
-
withIsArchiveEnabled
public AzureIaaSClassicComputeVMProtectedItem withIsArchiveEnabled(Boolean isArchiveEnabled)
Set the isArchiveEnabled property: Flag to identify whether datasource is protected in archive.- Overrides:
withIsArchiveEnabled
in classAzureIaaSvmProtectedItem
- Parameters:
isArchiveEnabled
- the isArchiveEnabled value to set.- Returns:
- the ProtectedItem object itself.
-
withPolicyName
public AzureIaaSClassicComputeVMProtectedItem withPolicyName(String policyName)
Set the policyName property: Name of the policy used for protection.- Overrides:
withPolicyName
in classAzureIaaSvmProtectedItem
- Parameters:
policyName
- the policyName value to set.- Returns:
- the ProtectedItem object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureIaaSvmProtectedItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-