Partager via


ClassifierCopyAuthorization Class

  • java.lang.Object
    • com.azure.ai.documentintelligence.models.ClassifierCopyAuthorization

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 ClassifierCopyAuthorization class.

Method Summary

Modifier and Type Method and Description
static ClassifierCopyAuthorization fromJson(JsonReader jsonReader)

Reads an instance of ClassifierCopyAuthorization from the JsonReader.

String getAccessToken()

Get the accessToken property: Token used to authorize the request.

OffsetDateTime getExpiresOn()

Get the expiresOn property: Date/time when the access token expires.

String getTargetClassifierId()

Get the targetClassifierId property: Identifier of the target document classifier.

String getTargetClassifierLocation()

Get the targetClassifierLocation property: URL of the copied document classifier in the target account.

String getTargetResourceId()

Get the targetResourceId property: ID of the target Azure resource where the document classifier should be copied to.

String getTargetResourceRegion()

Get the targetResourceRegion property: Location of the target Azure resource where the document classifier should be copied to.

JsonWriter 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:

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.
expiresOn - the expiresOn value to set.

Method Details

fromJson

public static ClassifierCopyAuthorization fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getAccessToken

public String getAccessToken()

Get the accessToken property: Token used to authorize the request.

Returns:

the accessToken value.

getExpiresOn

public OffsetDateTime getExpiresOn()

Get the expiresOn property: Date/time when the access token expires.

Returns:

the expiresOn value.

getTargetClassifierId

public String getTargetClassifierId()

Get the targetClassifierId property: Identifier of the target document classifier.

Returns:

the targetClassifierId value.

getTargetClassifierLocation

public String getTargetClassifierLocation()

Get the targetClassifierLocation property: URL of the copied document classifier in the target account.

Returns:

the targetClassifierLocation value.

getTargetResourceId

public String getTargetResourceId()

Get the targetResourceId property: ID of the target Azure resource where the document classifier should be copied to.

Returns:

the targetResourceId value.

getTargetResourceRegion

public String getTargetResourceRegion()

Get the targetResourceRegion property: Location of the target Azure resource where the document classifier should be copied to.

Returns:

the targetResourceRegion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to