Class AuthorizeClassifierCopyRequest
java.lang.Object
com.azure.ai.documentintelligence.models.AuthorizeClassifierCopyRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthorizeClassifierCopyRequest>
public final class AuthorizeClassifierCopyRequest
extends Object
implements com.azure.json.JsonSerializable<AuthorizeClassifierCopyRequest>
Request body to authorize document classifier copy.
-
Constructor Summary
ConstructorDescriptionAuthorizeClassifierCopyRequest
(String classifierId) Creates an instance of AuthorizeClassifierCopyRequest class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AuthorizeClassifierCopyRequest from the JsonReader.Get the classifierId property: Unique document classifier name.Get the description property: Document classifier description.getTags()
Get the tags property: List of key-value tag attributes associated with the document classifier.setDescription
(String description) Set the description property: Document classifier description.Set the tags property: List of key-value tag attributes associated with the document classifier.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
-
AuthorizeClassifierCopyRequest
Creates an instance of AuthorizeClassifierCopyRequest class.- Parameters:
classifierId
- the classifierId value to set.
-
-
Method Details
-
getClassifierId
Get the classifierId property: Unique document classifier name.- Returns:
- the classifierId value.
-
getDescription
Get the description property: Document classifier description.- Returns:
- the description value.
-
setDescription
Set the description property: Document classifier description.- Parameters:
description
- the description value to set.- Returns:
- the AuthorizeClassifierCopyRequest object itself.
-
getTags
Get the tags property: List of key-value tag attributes associated with the document classifier.- Returns:
- the tags value.
-
setTags
Set the tags property: List of key-value tag attributes associated with the document classifier.- Parameters:
tags
- the tags value to set.- Returns:
- the AuthorizeClassifierCopyRequest object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AuthorizeClassifierCopyRequest>
- Throws:
IOException
-
fromJson
public static AuthorizeClassifierCopyRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AuthorizeClassifierCopyRequest from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AuthorizeClassifierCopyRequest 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 AuthorizeClassifierCopyRequest.
-