Class AzureIaaSComputeVMContainer
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmContainer
com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMContainer
IaaS VM workload-specific backup item representing an Azure Resource Manager virtual machine.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureIaaSComputeVMContainer class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withBackupManagementType
(BackupManagementType backupManagementType) Set the backupManagementType property: Type of backup management for the container.withFriendlyName
(String friendlyName) Set the friendlyName property: Friendly name of the container.withHealthStatus
(String healthStatus) Set the healthStatus property: Status of health of the container.withProtectableObjectType
(String protectableObjectType) Set the protectableObjectType property: Type of the protectable object associated with this container.withRegistrationStatus
(String registrationStatus) Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.withResourceGroup
(String resourceGroup) Set the resourceGroup property: Resource group name of Recovery Services Vault.withVirtualMachineId
(String virtualMachineId) Set the virtualMachineId property: Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container.withVirtualMachineVersion
(String virtualMachineVersion) Set the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmContainer
resourceGroup, virtualMachineId, virtualMachineVersion
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer
backupManagementType, friendlyName, healthStatus, protectableObjectType, registrationStatus
-
Constructor Details
-
AzureIaaSComputeVMContainer
public AzureIaaSComputeVMContainer()Creates an instance of AzureIaaSComputeVMContainer class.
-
-
Method Details
-
withVirtualMachineId
Set the virtualMachineId property: Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container.- Overrides:
withVirtualMachineId
in classIaaSvmContainer
- Parameters:
virtualMachineId
- the virtualMachineId value to set.- Returns:
- the IaaSvmContainer object itself.
-
withVirtualMachineVersion
Set the virtualMachineVersion property: Specifies whether the container represents a Classic or an Azure Resource Manager VM.- Overrides:
withVirtualMachineVersion
in classIaaSvmContainer
- Parameters:
virtualMachineVersion
- the virtualMachineVersion value to set.- Returns:
- the IaaSvmContainer object itself.
-
withResourceGroup
Set the resourceGroup property: Resource group name of Recovery Services Vault.- Overrides:
withResourceGroup
in classIaaSvmContainer
- Parameters:
resourceGroup
- the resourceGroup value to set.- Returns:
- the IaaSvmContainer object itself.
-
withFriendlyName
Set the friendlyName property: Friendly name of the container.- Overrides:
withFriendlyName
in classIaaSvmContainer
- Parameters:
friendlyName
- the friendlyName value to set.- Returns:
- the ProtectionContainer object itself.
-
withBackupManagementType
public AzureIaaSComputeVMContainer withBackupManagementType(BackupManagementType backupManagementType) Set the backupManagementType property: Type of backup management for the container.- Overrides:
withBackupManagementType
in classIaaSvmContainer
- Parameters:
backupManagementType
- the backupManagementType value to set.- Returns:
- the ProtectionContainer object itself.
-
withRegistrationStatus
Set the registrationStatus property: Status of registration of the container with the Recovery Services Vault.- Overrides:
withRegistrationStatus
in classIaaSvmContainer
- Parameters:
registrationStatus
- the registrationStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
withHealthStatus
Set the healthStatus property: Status of health of the container.- Overrides:
withHealthStatus
in classIaaSvmContainer
- Parameters:
healthStatus
- the healthStatus value to set.- Returns:
- the ProtectionContainer object itself.
-
withProtectableObjectType
Set the protectableObjectType property: Type of the protectable object associated with this container.- Overrides:
withProtectableObjectType
in classIaaSvmContainer
- Parameters:
protectableObjectType
- the protectableObjectType value to set.- Returns:
- the ProtectionContainer object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classIaaSvmContainer
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-