Class DocumentModelCopyAuthorization

java.lang.Object
com.azure.ai.formrecognizer.documentanalysis.administration.models.DocumentModelCopyAuthorization

public final class DocumentModelCopyAuthorization extends Object
Authorization to copy a document model to the specified target resource and modelId.
  • Constructor Details

    • DocumentModelCopyAuthorization

      public DocumentModelCopyAuthorization(String targetResourceId, String targetResourceRegion, String targetModelId, String targetModelLocation, String accessToken, OffsetDateTime expiresOn)
      Creates an instance of a DocumentModelCopyAuthorization model.
      Parameters:
      targetResourceId - the identifier of the target Azure resource where the model should be copied to.
      targetResourceRegion - the location of the target Azure resource where the model should be copied to.
      targetModelId - the identifier of the target model.
      targetModelLocation - the URL of the copied model in the target account.
      accessToken - the token used to authorize the request.
      expiresOn - the Date/time when the access token expires.
  • Method Details

    • getTargetResourceId

      public String getTargetResourceId()
      Get the identifier of the target Azure resource where the document model should be copied to.
      Returns:
      the targetResourceId value.
    • getTargetResourceRegion

      public String getTargetResourceRegion()
      Get the location of the target Azure resource where the document model should be copied to.
      Returns:
      the targetResourceRegion value.
    • getTargetModelId

      public String getTargetModelId()
      Get the identifier of the target document model.
      Returns:
      the targetModelId value.
    • getTargetModelLocation

      public String getTargetModelLocation()
      Get the URL of the copied document model in the target account.
      Returns:
      the targetModelLocation value.
    • getAccessToken

      public String getAccessToken()
      Get the token used to authorize the request.
      Returns:
      the accessToken value.
    • getExpiresOn

      public OffsetDateTime getExpiresOn()
      Get the Date/time when the access token expires.
      Returns:
      the expiresOn value.