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 Details

    • TargetDetails

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

    • 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.
    • targetResourceArmId

      public String 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

      public TargetDetails withTargetResourceArmId(String targetResourceArmId)
      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.