public final class CopyAuthorization extends Object
| Constructor and Description |
|---|
CopyAuthorization(String modelId,
String accessToken,
String resourceId,
String resourceRegion,
long expiresOn)
Create a CopyAuthorization object
|
| Modifier and Type | Method and Description |
|---|---|
static CopyAuthorization |
fromJson(String copyAuthorization)
Converts the json string representation to its equivalent CopyAuthorization object.
|
String |
getAccessToken()
Get the token claim used to authorize the request.
|
OffsetDateTime |
getExpiresOn()
Get the date-time when the access token expires.
|
String |
getModelId()
Get the modelId property.
|
String |
getResourceId()
Get the Azure Resource Id of the target Form Recognizer resource
where the model will be copied to.
|
String |
getResourceRegion()
Get the location of the target Form Recognizer resource.
|
String |
toJson()
Converts the CopyAuthorization object to its equivalent json string representation.
|
public CopyAuthorization(String modelId, String accessToken, String resourceId, String resourceRegion, long expiresOn)
modelId - The model identifieraccessToken - The token used to authorize the requestresourceId - The resource identifierresourceRegion - The region of the resourceexpiresOn - The expiry time of the tokenpublic String getModelId()
modelId value.public String getAccessToken()
accessToken value.public OffsetDateTime getExpiresOn()
public String getResourceId()
resourceId value.public String getResourceRegion()
resourceRegion value.public String toJson()
IllegalStateException - exception if the serialization failedpublic static CopyAuthorization fromJson(String copyAuthorization)
copyAuthorization - the json string representation of the object.IllegalStateException - exception if the deserialization failedCopyright © 2021 Microsoft Corporation. All rights reserved.