Class ClassifierCopyAuthorization
java.lang.Object
com.azure.ai.documentintelligence.models.ClassifierCopyAuthorization
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClassifierCopyAuthorization>
public final class ClassifierCopyAuthorization
extends Object
implements com.azure.json.JsonSerializable<ClassifierCopyAuthorization>
Authorization to copy a document classifier to the specified target resource and
classifierId.
-
Constructor Summary
ConstructorDescriptionClassifierCopyAuthorization
(String targetResourceId, String targetResourceRegion, String targetClassifierId, String targetClassifierLocation, String accessToken, OffsetDateTime expirationDateTime) Creates an instance of ClassifierCopyAuthorization class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassifierCopyAuthorization
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ClassifierCopyAuthorization from the JsonReader.Get the accessToken property: Token used to authorize the request.Get the expirationDateTime property: Date/time when the access token expires.Get the targetClassifierId property: Identifier of the target document classifier.Get the targetClassifierLocation property: URL of the copied document classifier in the target account.Get the targetResourceId property: ID of the target Azure resource where the document classifier should be copied to.Get the targetResourceRegion property: Location of the target Azure resource where the document classifier should be copied to.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ClassifierCopyAuthorization
public ClassifierCopyAuthorization(String targetResourceId, String targetResourceRegion, String targetClassifierId, String targetClassifierLocation, String accessToken, OffsetDateTime expirationDateTime) Creates an instance of ClassifierCopyAuthorization class.- Parameters:
targetResourceId
- the targetResourceId value to set.targetResourceRegion
- the targetResourceRegion value to set.targetClassifierId
- the targetClassifierId value to set.targetClassifierLocation
- the targetClassifierLocation value to set.accessToken
- the accessToken value to set.expirationDateTime
- the expirationDateTime value to set.
-
-
Method Details
-
getTargetResourceId
Get the targetResourceId property: ID of the target Azure resource where the document classifier should be copied to.- Returns:
- the targetResourceId value.
-
getTargetResourceRegion
Get the targetResourceRegion property: Location of the target Azure resource where the document classifier should be copied to.- Returns:
- the targetResourceRegion value.
-
getTargetClassifierId
Get the targetClassifierId property: Identifier of the target document classifier.- Returns:
- the targetClassifierId value.
-
getTargetClassifierLocation
Get the targetClassifierLocation property: URL of the copied document classifier in the target account.- Returns:
- the targetClassifierLocation value.
-
getAccessToken
Get the accessToken property: Token used to authorize the request.- Returns:
- the accessToken value.
-
getExpirationDateTime
Get the expirationDateTime property: Date/time when the access token expires.- Returns:
- the expirationDateTime value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ClassifierCopyAuthorization>
- Throws:
IOException
-
fromJson
public static ClassifierCopyAuthorization fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClassifierCopyAuthorization from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ClassifierCopyAuthorization if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the ClassifierCopyAuthorization.
-