Class ItemPathBasedRestoreCriteria
java.lang.Object
com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria
com.azure.resourcemanager.dataprotection.models.ItemPathBasedRestoreCriteria
Prefix criteria to be used to during restore.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ItemPathBasedRestoreCriteria class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the isPathRelativeToBackupItem property: Flag to specify if the path is relative to backup item or full path.itemPath()
Get the itemPath property: The path of the item to be restored.Get the subItemPathPrefix property: The list of prefix strings to be used as filter criteria during restore.void
validate()
Validates the instance.withIsPathRelativeToBackupItem
(boolean isPathRelativeToBackupItem) Set the isPathRelativeToBackupItem property: Flag to specify if the path is relative to backup item or full path.withItemPath
(String itemPath) Set the itemPath property: The path of the item to be restored.withSubItemPathPrefix
(List<String> subItemPathPrefix) Set the subItemPathPrefix property: The list of prefix strings to be used as filter criteria during restore.
-
Constructor Details
-
ItemPathBasedRestoreCriteria
public ItemPathBasedRestoreCriteria()Creates an instance of ItemPathBasedRestoreCriteria class.
-
-
Method Details
-
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
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
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
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 classItemLevelRestoreCriteria
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-