Class DocumentModelCopyAuthorization
java.lang.Object
com.azure.ai.formrecognizer.documentanalysis.administration.models.DocumentModelCopyAuthorization
Authorization to copy a document model to the specified target resource and modelId.
-
Constructor Summary
ConstructorDescriptionDocumentModelCopyAuthorization
(String targetResourceId, String targetResourceRegion, String targetModelId, String targetModelLocation, String accessToken, OffsetDateTime expiresOn) Creates an instance of aDocumentModelCopyAuthorization
model. -
Method Summary
Modifier and TypeMethodDescriptionGet the token used to authorize the request.Get the Date/time when the access token expires.Get the identifier of the target document model.Get the URL of the copied document model in the target account.Get the identifier of the target Azure resource where the document model should be copied to.Get the location of the target Azure resource where the document model should be copied to.
-
Constructor Details
-
DocumentModelCopyAuthorization
public DocumentModelCopyAuthorization(String targetResourceId, String targetResourceRegion, String targetModelId, String targetModelLocation, String accessToken, OffsetDateTime expiresOn) Creates an instance of aDocumentModelCopyAuthorization
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
Get the identifier of the target Azure resource where the document model should be copied to.- Returns:
- the targetResourceId value.
-
getTargetResourceRegion
Get the location of the target Azure resource where the document model should be copied to.- Returns:
- the targetResourceRegion value.
-
getTargetModelId
Get the identifier of the target document model.- Returns:
- the targetModelId value.
-
getTargetModelLocation
Get the URL of the copied document model in the target account.- Returns:
- the targetModelLocation value.
-
getAccessToken
Get the token used to authorize the request.- Returns:
- the accessToken value.
-
getExpiresOn
Get the Date/time when the access token expires.- Returns:
- the expiresOn value.
-