Class IaaSvmProtectableItem
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmProtectableItem
- Direct Known Subclasses:
AzureIaaSClassicComputeVMProtectableItem
,AzureIaaSComputeVMProtectableItem
IaaS VM workload-specific backup item.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the resourceGroup property: Resource group name of Recovery Services Vault.void
validate()
Validates the instance.Get the virtualMachineId property: Fully qualified ARM ID of the virtual machine.Get the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.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.WorkloadProtectableItem
backupManagementType, friendlyName, protectionState, workloadType
-
Constructor Details
-
IaaSvmProtectableItem
public IaaSvmProtectableItem()Creates an instance of IaaSvmProtectableItem class.
-
-
Method Details
-
virtualMachineId
Get the virtualMachineId property: Fully qualified ARM ID of the virtual machine.- Returns:
- the virtualMachineId value.
-
withVirtualMachineId
Set the virtualMachineId property: Fully qualified ARM ID of the virtual machine.- Parameters:
virtualMachineId
- the virtualMachineId value to set.- Returns:
- the IaaSvmProtectableItem object itself.
-
virtualMachineVersion
Get the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.- Returns:
- the virtualMachineVersion value.
-
withVirtualMachineVersion
Set the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.- Parameters:
virtualMachineVersion
- the virtualMachineVersion value to set.- Returns:
- the IaaSvmProtectableItem object itself.
-
resourceGroup
Get the resourceGroup property: Resource group name of Recovery Services Vault.- Returns:
- the resourceGroup value.
-
withResourceGroup
Set the resourceGroup property: Resource group name of Recovery Services Vault.- 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 classWorkloadProtectableItem
- 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 classWorkloadProtectableItem
- 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 classWorkloadProtectableItem
- 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 classWorkloadProtectableItem
- Parameters:
protectionState
- the protectionState value to set.- Returns:
- the WorkloadProtectableItem object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classWorkloadProtectableItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-