CopyAuthorization Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. CopyAuthorization
- com.
Implements
public final class CopyAuthorization
implements JsonSerializable<CopyAuthorization>
Authorization to copy a document model to the specified target resource and modelId.
Constructor Summary
| Constructor | Description |
|---|---|
| CopyAuthorization(String targetResourceId, String targetResourceRegion, String targetModelId, String targetModelLocation, String accessToken, OffsetDateTime expirationDateTime) |
Creates an instance of Copy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Copy |
fromJson(JsonReader jsonReader)
Reads an instance of Copy |
| String |
getAccessToken()
Get the access |
|
Offset |
getExpirationDateTime()
Get the expiration |
| String |
getTargetModelId()
Get the target |
| String |
getTargetModelLocation()
Get the target |
| String |
getTargetResourceId()
Get the target |
| String |
getTargetResourceRegion()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
CopyAuthorization
public CopyAuthorization(String targetResourceId, String targetResourceRegion, String targetModelId, String targetModelLocation, String accessToken, OffsetDateTime expirationDateTime)
Creates an instance of CopyAuthorization class.
Parameters:
Method Details
fromJson
public static CopyAuthorization fromJson(JsonReader jsonReader)
Reads an instance of CopyAuthorization from the JsonReader.
Parameters:
Returns:
Throws:
getAccessToken
public String getAccessToken()
Get the accessToken property: Token used to authorize the request.
Returns:
getExpirationDateTime
public OffsetDateTime getExpirationDateTime()
Get the expirationDateTime property: Date/time when the access token expires.
Returns:
getTargetModelId
public String getTargetModelId()
Get the targetModelId property: Identifier of the target document model.
Returns:
getTargetModelLocation
public String getTargetModelLocation()
Get the targetModelLocation property: URL of the copied document model in the target account.
Returns:
getTargetResourceId
public String getTargetResourceId()
Get the targetResourceId property: ID of the target Azure resource where the document model should be copied to.
Returns:
getTargetResourceRegion
public String getTargetResourceRegion()
Get the targetResourceRegion property: Location of the target Azure resource where the document model should be copied to.
Returns: