ModelCopyAuthorization Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. ModelCopyAuthorization
- com.
Implements
public final class ModelCopyAuthorization
implements JsonSerializable<ModelCopyAuthorization>
Authorization to copy a document model to the specified target resource and modelId.
Constructor Summary
Constructor | Description |
---|---|
ModelCopyAuthorization(String targetResourceId, String targetResourceRegion, String targetModelId, String targetModelLocation, String accessToken, OffsetDateTime expiresOn) |
Creates an instance of Model |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Model |
fromJson(JsonReader jsonReader)
Reads an instance of Model |
String |
getAccessToken()
Get the access |
Offset |
getExpiresOn()
Get the expires |
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
ModelCopyAuthorization
public ModelCopyAuthorization(String targetResourceId, String targetResourceRegion, String targetModelId, String targetModelLocation, String accessToken, OffsetDateTime expiresOn)
Creates an instance of ModelCopyAuthorization class.
Parameters:
Method Details
fromJson
public static ModelCopyAuthorization fromJson(JsonReader jsonReader)
Reads an instance of ModelCopyAuthorization from the JsonReader.
Parameters:
Returns:
Throws:
getAccessToken
public String getAccessToken()
Get the accessToken property: Token used to authorize the request.
Returns:
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the expiresOn 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:
toJson
Applies to
Azure SDK for Java