Class AzureIaaSComputeVMProtectableItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmProtectableItem
com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectableItem
IaaS VM workload-specific backup item representing the Azure Resource Manager VM.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureIaaSComputeVMProtectableItem class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withBackupManagementType
(String backupManagementType) Set the backupManagementType property: Type of backup management to backup an item.withFriendlyName
(String friendlyName) Set the friendlyName property: Friendly name of the backup item.withProtectionState
(ProtectionStatus protectionState) Set the protectionState property: State of the back up item.withResourceGroup
(String resourceGroup) Set the resourceGroup property: Resource group name of Recovery Services Vault.withVirtualMachineId
(String virtualMachineId) Set the virtualMachineId property: Fully qualified ARM ID of the virtual machine.withVirtualMachineVersion
(String virtualMachineVersion) Set the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.withWorkloadType
(String workloadType) Set the workloadType property: Type of workload for the backup management.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmProtectableItem
resourceGroup, virtualMachineId, virtualMachineVersion
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
backupManagementType, friendlyName, protectionState, workloadType
-
Constructor Details
-
AzureIaaSComputeVMProtectableItem
public AzureIaaSComputeVMProtectableItem()Creates an instance of AzureIaaSComputeVMProtectableItem class.
-
-
Method Details
-
withVirtualMachineId
Set the virtualMachineId property: Fully qualified ARM ID of the virtual machine.- Overrides:
withVirtualMachineId
in classIaaSvmProtectableItem
- Parameters:
virtualMachineId
- the virtualMachineId value to set.- Returns:
- the IaaSvmProtectableItem object itself.
-
withVirtualMachineVersion
Set the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.- Overrides:
withVirtualMachineVersion
in classIaaSvmProtectableItem
- Parameters:
virtualMachineVersion
- the virtualMachineVersion value to set.- Returns:
- the IaaSvmProtectableItem object itself.
-
withResourceGroup
Set the resourceGroup property: Resource group name of Recovery Services Vault.- Overrides:
withResourceGroup
in classIaaSvmProtectableItem
- Parameters:
resourceGroup
- the resourceGroup value to set.- Returns:
- the IaaSvmProtectableItem object itself.
-
withBackupManagementType
Set the backupManagementType property: Type of backup management to backup an item.- Overrides:
withBackupManagementType
in classIaaSvmProtectableItem
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withWorkloadType
Set the workloadType property: Type of workload for the backup management.- Overrides:
withWorkloadType
in classIaaSvmProtectableItem
- Parameters:
workloadType
- the workloadType value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withFriendlyName
Set the friendlyName property: Friendly name of the backup item.- Overrides:
withFriendlyName
in classIaaSvmProtectableItem
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
withProtectionState
Set the protectionState property: State of the back up item.- Overrides:
withProtectionState
in classIaaSvmProtectableItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classIaaSvmProtectableItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-