Delen via


DocumentModelCopyAuthorization Class

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

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.

OffsetDateTime 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:

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

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.

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.

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.

Applies to