Class ItemPathBasedRestoreCriteria

java.lang.Object
com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria
com.azure.resourcemanager.dataprotection.models.ItemPathBasedRestoreCriteria

public final class ItemPathBasedRestoreCriteria extends ItemLevelRestoreCriteria
Prefix criteria to be used to during restore.
  • Constructor Details

    • ItemPathBasedRestoreCriteria

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

    • itemPath

      public String itemPath()
      Get the itemPath property: The path of the item to be restored. It could be the full path of the item or the path relative to the backup item.
      Returns:
      the itemPath value.
    • withItemPath

      public ItemPathBasedRestoreCriteria withItemPath(String itemPath)
      Set the itemPath property: The path of the item to be restored. It could be the full path of the item or the path relative to the backup item.
      Parameters:
      itemPath - the itemPath value to set.
      Returns:
      the ItemPathBasedRestoreCriteria object itself.
    • isPathRelativeToBackupItem

      public boolean isPathRelativeToBackupItem()
      Get the isPathRelativeToBackupItem property: Flag to specify if the path is relative to backup item or full path.
      Returns:
      the isPathRelativeToBackupItem value.
    • withIsPathRelativeToBackupItem

      public ItemPathBasedRestoreCriteria withIsPathRelativeToBackupItem(boolean isPathRelativeToBackupItem)
      Set the isPathRelativeToBackupItem property: Flag to specify if the path is relative to backup item or full path.
      Parameters:
      isPathRelativeToBackupItem - the isPathRelativeToBackupItem value to set.
      Returns:
      the ItemPathBasedRestoreCriteria object itself.
    • subItemPathPrefix

      public List<String> subItemPathPrefix()
      Get the subItemPathPrefix property: The list of prefix strings to be used as filter criteria during restore. These are relative to the item path specified.
      Returns:
      the subItemPathPrefix value.
    • withSubItemPathPrefix

      public ItemPathBasedRestoreCriteria withSubItemPathPrefix(List<String> subItemPathPrefix)
      Set the subItemPathPrefix property: The list of prefix strings to be used as filter criteria during restore. These are relative to the item path specified.
      Parameters:
      subItemPathPrefix - the subItemPathPrefix value to set.
      Returns:
      the ItemPathBasedRestoreCriteria object itself.
    • validate

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