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