CopyAuthorization Class
- java.
lang. Object - com.
azure. ai. formrecognizer. training. models. CopyAuthorization
- com.
public final class CopyAuthorization
The CopyAuthorization model.
Constructor Summary
Constructor | Description |
---|---|
CopyAuthorization(String modelId, String accessToken, String resourceId, String resourceRegion, long expiresOn) |
Create a Copy |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Copy |
fromJson(String copyAuthorization)
Converts the json string representation to its equivalent Copy |
String |
getAccessToken()
Get the token claim used to authorize the request. |
Offset |
getExpiresOn()
Get the date-time when the access token expires. |
String |
getModelId()
Get the model |
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 Copy |
Methods inherited from java.lang.Object
Constructor Details
CopyAuthorization
public CopyAuthorization(String modelId, String accessToken, String resourceId, String resourceRegion, long expiresOn)
Create a CopyAuthorization object
Parameters:
Method Details
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:
Applies to
Azure SDK for Java