Class AuthorizeCopyRequest

java.lang.Object
com.azure.ai.documentintelligence.models.AuthorizeCopyRequest
All Implemented Interfaces:
com.azure.json.JsonSerializable<AuthorizeCopyRequest>

public final class AuthorizeCopyRequest extends Object implements com.azure.json.JsonSerializable<AuthorizeCopyRequest>
Request body to authorize document model copy.
  • Constructor Details

    • AuthorizeCopyRequest

      public AuthorizeCopyRequest(String modelId)
      Creates an instance of AuthorizeCopyRequest class.
      Parameters:
      modelId - the modelId value to set.
  • Method Details

    • getModelId

      public String getModelId()
      Get the modelId property: Unique document model name.
      Returns:
      the modelId value.
    • getDescription

      public String getDescription()
      Get the description property: Document model description.
      Returns:
      the description value.
    • setDescription

      public AuthorizeCopyRequest setDescription(String description)
      Set the description property: Document model description.
      Parameters:
      description - the description value to set.
      Returns:
      the AuthorizeCopyRequest object itself.
    • getTags

      public Map<String,String> getTags()
      Get the tags property: List of key-value tag attributes associated with the document model.
      Returns:
      the tags value.
    • setTags

      public AuthorizeCopyRequest setTags(Map<String,String> tags)
      Set the tags property: List of key-value tag attributes associated with the document model.
      Parameters:
      tags - the tags value to set.
      Returns:
      the AuthorizeCopyRequest object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AuthorizeCopyRequest>
      Throws:
      IOException
    • fromJson

      public static AuthorizeCopyRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AuthorizeCopyRequest from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AuthorizeCopyRequest 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 AuthorizeCopyRequest.