Class AzureIaaSComputeVMProtectableItem
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmProtectableItem
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectableItem
-
public final class AzureIaaSComputeVMProtectableItem extends IaaSvmProtectableItem
IaaS VM workload-specific backup item representing the Azure Resource Manager VM.
-
-
Constructor Summary
Constructors Constructor Description AzureIaaSComputeVMProtectableItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate()
Validates the instance.AzureIaaSComputeVMProtectableItem
withBackupManagementType(String backupManagementType)
Set the backupManagementType property: Type of backup management to backup an item.AzureIaaSComputeVMProtectableItem
withFriendlyName(String friendlyName)
Set the friendlyName property: Friendly name of the backup item.AzureIaaSComputeVMProtectableItem
withProtectionState(ProtectionStatus protectionState)
Set the protectionState property: State of the back up item.AzureIaaSComputeVMProtectableItem
withResourceGroup(String resourceGroup)
Set the resourceGroup property: Resource group name of Recovery Services Vault.AzureIaaSComputeVMProtectableItem
withVirtualMachineId(String virtualMachineId)
Set the virtualMachineId property: Fully qualified ARM ID of the virtual machine.AzureIaaSComputeVMProtectableItem
withVirtualMachineVersion(String virtualMachineVersion)
Set the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.AzureIaaSComputeVMProtectableItem
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
-
-
-
-
Method Detail
-
withVirtualMachineId
public AzureIaaSComputeVMProtectableItem withVirtualMachineId(String virtualMachineId)
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
public AzureIaaSComputeVMProtectableItem withVirtualMachineVersion(String virtualMachineVersion)
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
public AzureIaaSComputeVMProtectableItem withResourceGroup(String resourceGroup)
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
public AzureIaaSComputeVMProtectableItem withBackupManagementType(String backupManagementType)
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
public AzureIaaSComputeVMProtectableItem withWorkloadType(String workloadType)
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
public AzureIaaSComputeVMProtectableItem withFriendlyName(String friendlyName)
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
public AzureIaaSComputeVMProtectableItem withProtectionState(ProtectionStatus protectionState)
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.
-
-