ClassifierCopyAuthorization Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. ClassifierCopyAuthorization
- com.
Implements
public final class ClassifierCopyAuthorization
implements JsonSerializable<ClassifierCopyAuthorization>
Authorization to copy a document classifier to the specified target resource and classifierId.
Constructor Summary
Constructor | Description |
---|---|
ClassifierCopyAuthorization(String targetResourceId, String targetResourceRegion, String targetClassifierId, String targetClassifierLocation, String accessToken, OffsetDateTime expiresOn) |
Creates an instance of Classifier |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Classifier |
fromJson(JsonReader jsonReader)
Reads an instance of Classifier |
String |
getAccessToken()
Get the access |
Offset |
getExpiresOn()
Get the expires |
String |
getTargetClassifierId()
Get the target |
String |
getTargetClassifierLocation()
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
ClassifierCopyAuthorization
public ClassifierCopyAuthorization(String targetResourceId, String targetResourceRegion, String targetClassifierId, String targetClassifierLocation, String accessToken, OffsetDateTime expiresOn)
Creates an instance of ClassifierCopyAuthorization class.
Parameters:
Method Details
fromJson
public static ClassifierCopyAuthorization fromJson(JsonReader jsonReader)
Reads an instance of ClassifierCopyAuthorization 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:
getTargetClassifierId
public String getTargetClassifierId()
Get the targetClassifierId property: Identifier of the target document classifier.
Returns:
getTargetClassifierLocation
public String getTargetClassifierLocation()
Get the targetClassifierLocation property: URL of the copied document classifier in the target account.
Returns:
getTargetResourceId
public String getTargetResourceId()
Get the targetResourceId property: ID of the target Azure resource where the document classifier should be copied to.
Returns:
getTargetResourceRegion
public String getTargetResourceRegion()
Get the targetResourceRegion property: Location of the target Azure resource where the document classifier should be copied to.
Returns:
toJson
Applies to
Azure SDK for Java