Class TargetDetails
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.TargetDetails
-
public final class TargetDetails extends Object
Class encapsulating target details, used where the destination is not a datasource.
-
-
Constructor Summary
Constructors Constructor Description TargetDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
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.RestoreTargetLocationType
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}.String
url()
Get the url property: Url denoting the restore destination.void
validate()
Validates the instance.TargetDetails
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.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}.TargetDetails
withUrl(String url)
Set the url property: Url denoting the restore destination.
-
-
-
Method Detail
-
filePrefix
public String 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
public TargetDetails 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.- Parameters:
filePrefix
- the filePrefix value to set.- Returns:
- the TargetDetails object itself.
-
restoreTargetLocationType
public RestoreTargetLocationType 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
public String url()
Get the url property: Url denoting the restore destination. It can point to container / file share etc.- Returns:
- the url value.
-
withUrl
public TargetDetails withUrl(String url)
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.
-
-