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
    Creates an instance of TargetDetails class.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.