Class CompleteUploadRequest

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

public final class CompleteUploadRequest extends Object implements com.azure.json.JsonSerializable<CompleteUploadRequest>
The request body of an upload completion request.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of CompleteUploadRequest class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CompleteUploadRequest from the JsonReader.
    Get the md5 property: The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.
    Get the partIds property: The ordered list of Part IDs.
    Set the md5 property: The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.
    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

    • CompleteUploadRequest

      public CompleteUploadRequest(List<String> partIds)
      Creates an instance of CompleteUploadRequest class.
      Parameters:
      partIds - the partIds value to set.
  • Method Details

    • getPartIds

      public List<String> getPartIds()
      Get the partIds property: The ordered list of Part IDs.
      Returns:
      the partIds value.
    • getMd5

      public String getMd5()
      Get the md5 property: The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.
      Returns:
      the md5 value.
    • setMd5

      public CompleteUploadRequest setMd5(String md5)
      Set the md5 property: The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.
      Parameters:
      md5 - the md5 value to set.
      Returns:
      the CompleteUploadRequest 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<CompleteUploadRequest>
      Throws:
      IOException
    • fromJson

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