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}.Get the targetResourceArmId property: Full ARM Id denoting the restore destination.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}.withTargetResourceArmId
(String targetResourceArmId) Set the targetResourceArmId property: Full ARM Id denoting the restore destination.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.
-
targetResourceArmId
Get the targetResourceArmId property: Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share This is optional if the target subscription can be identified with the URL field. If not then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states.- Returns:
- the targetResourceArmId value.
-
withTargetResourceArmId
Set the targetResourceArmId property: Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share This is optional if the target subscription can be identified with the URL field. If not then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states.- Parameters:
targetResourceArmId
- the targetResourceArmId value to set.- Returns:
- the TargetDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-