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