Class TargetDetails
java.lang.Object
com.azure.resourcemanager.dataprotection.models.TargetDetails
Class encapsulating target details, used where the destination is not a datasource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the filePrefix property: Restore operation may create multiple files inside location pointed by Url Below will be the common prefix for all of them.Get the restoreTargetLocationType property: Denotes the target location where the data will be restored, string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}.url()
Get the url property: Url denoting the restore destination.void
validate()
Validates the instance.withFilePrefix
(String filePrefix) Set the filePrefix property: Restore operation may create multiple files inside location pointed by Url Below will be the common prefix for all of them.withRestoreTargetLocationType
(RestoreTargetLocationType restoreTargetLocationType) Set the restoreTargetLocationType property: Denotes the target location where the data will be restored, string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}.Set the url property: Url denoting the restore destination.
-
Constructor Details
-
TargetDetails
public TargetDetails()Creates an instance of TargetDetails class.
-
-
Method Details
-
filePrefix
Get the filePrefix property: Restore operation may create multiple files inside location pointed by Url Below will be the common prefix for all of them.- Returns:
- the filePrefix value.
-
withFilePrefix
Set the filePrefix property: Restore operation may create multiple files inside location pointed by Url Below will be the common prefix for all of them.- Parameters:
filePrefix
- the filePrefix value to set.- Returns:
- the TargetDetails object itself.
-
restoreTargetLocationType
Get the restoreTargetLocationType property: Denotes the target location where the data will be restored, string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}.- Returns:
- the restoreTargetLocationType value.
-
withRestoreTargetLocationType
public TargetDetails withRestoreTargetLocationType(RestoreTargetLocationType restoreTargetLocationType) Set the restoreTargetLocationType property: Denotes the target location where the data will be restored, string value for the enum {Microsoft.Internal.AzureBackup.DataProtection.Common.Interface.RestoreTargetLocationType}.- Parameters:
restoreTargetLocationType
- the restoreTargetLocationType value to set.- Returns:
- the TargetDetails object itself.
-
url
Get the url property: Url denoting the restore destination. It can point to container / file share etc.- Returns:
- the url value.
-
withUrl
Set the url property: Url denoting the restore destination. It can point to container / file share etc.- Parameters:
url
- the url value to set.- Returns:
- the TargetDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-