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 Details

    • IaaSvmProtectableItem

      public IaaSvmProtectableItem()
      Creates an instance of IaaSvmProtectableItem class.
  • Method Details

    • 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 class WorkloadProtectableItem
      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 class WorkloadProtectableItem
      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 class WorkloadProtectableItem
      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 class WorkloadProtectableItem
      Parameters:
      protectionState - the protectionState value to set.
      Returns:
      the WorkloadProtectableItem object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class WorkloadProtectableItem
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.