Class AzureResourceProtectionIntent

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent
com.azure.resourcemanager.recoveryservicesbackup.models.AzureResourceProtectionIntent

public final class AzureResourceProtectionIntent extends ProtectionIntent
IaaS VM specific backup protection intent item.
  • Constructor Details

    • AzureResourceProtectionIntent

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

    • friendlyName

      public String friendlyName()
      Get the friendlyName property: Friendly name of the VM represented by this backup item.
      Returns:
      the friendlyName value.
    • withFriendlyName

      public AzureResourceProtectionIntent withFriendlyName(String friendlyName)
      Set the friendlyName property: Friendly name of the VM represented by this backup item.
      Parameters:
      friendlyName - the friendlyName value to set.
      Returns:
      the AzureResourceProtectionIntent object itself.
    • withBackupManagementType

      public AzureResourceProtectionIntent withBackupManagementType(BackupManagementType backupManagementType)
      Set the backupManagementType property: Type of backup management for the backed up item.
      Overrides:
      withBackupManagementType in class ProtectionIntent
      Parameters:
      backupManagementType - the backupManagementType value to set.
      Returns:
      the ProtectionIntent object itself.
    • withSourceResourceId

      public AzureResourceProtectionIntent withSourceResourceId(String sourceResourceId)
      Set the sourceResourceId property: ARM ID of the resource to be backed up.
      Overrides:
      withSourceResourceId in class ProtectionIntent
      Parameters:
      sourceResourceId - the sourceResourceId value to set.
      Returns:
      the ProtectionIntent object itself.
    • withItemId

      public AzureResourceProtectionIntent withItemId(String itemId)
      Set the itemId property: ID of the item which is getting protected, In case of Azure Vm , it is ProtectedItemId.
      Overrides:
      withItemId in class ProtectionIntent
      Parameters:
      itemId - the itemId value to set.
      Returns:
      the ProtectionIntent object itself.
    • withPolicyId

      public AzureResourceProtectionIntent withPolicyId(String policyId)
      Set the policyId property: ID of the backup policy with which this item is backed up.
      Overrides:
      withPolicyId in class ProtectionIntent
      Parameters:
      policyId - the policyId value to set.
      Returns:
      the ProtectionIntent object itself.
    • withProtectionState

      public AzureResourceProtectionIntent withProtectionState(ProtectionStatus protectionState)
      Set the protectionState property: Backup state of this backup item.
      Overrides:
      withProtectionState in class ProtectionIntent
      Parameters:
      protectionState - the protectionState value to set.
      Returns:
      the ProtectionIntent object itself.
    • validate

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