CopyAuthorization Class
- java.
lang. Object - com.
azure. ai. formrecognizer. training. models. CopyAuthorization
- com.
public final class CopyAuthorization
The CopyAuthorization model.
Constructor | Description |
---|---|
Copy |
Create a Copy |
Modifier and Type | Method and Description |
---|---|
static
Copy |
from Converts the json string representation to its equivalent Copy |
String |
get Get the token claim used to authorize the request. |
Offset |
get Get the date-time when the access token expires. |
String |
get Get the model |
String |
get Get the Azure Resource Id of the target Form Recognizer resource where the model will be copied to. |
String |
get Get the location of the target Form Recognizer resource. |
String |
to Converts the Copy |
Methods inherited from java.lang.Object
CopyAuthorization
public CopyAuthorization(String modelId, String accessToken, String resourceId, String resourceRegion, long expiresOn)
Create a CopyAuthorization object
Parameters:
fromJson
public static CopyAuthorization fromJson(String copyAuthorization)
Converts the json string representation to its equivalent CopyAuthorization object.
Parameters:
Returns:
getAccessToken
public String getAccessToken()
Get the token claim used to authorize the request.
Returns:
accessToken
value.getExpiresOn
public OffsetDateTime getExpiresOn()
Get the date-time when the access token expires.
Returns:
getModelId
public String getModelId()
Get the modelId property.
Returns:
modelId
value.getResourceId
public String getResourceId()
Get the Azure Resource Id of the target Form Recognizer resource where the model will be copied to.
Returns:
resourceId
value.getResourceRegion
public String getResourceRegion()
Get the location of the target Form Recognizer resource.
Returns:
resourceRegion
value.toJson
public String toJson()
Converts the CopyAuthorization object to its equivalent json string representation.
Returns: