Package com.azure.ai.openai.models
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
ConstructorsConstructorDescriptionCompleteUploadRequest(List<String> partIds) Creates an instance of CompleteUploadRequest class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompleteUploadRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CompleteUploadRequest from the JsonReader.getMd5()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CompleteUploadRequest
Creates an instance of CompleteUploadRequest class.- Parameters:
partIds- the partIds value to set.
-
-
Method Details
-
getPartIds
Get the partIds property: The ordered list of Part IDs.- Returns:
- the partIds value.
-
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
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
- Specified by:
toJsonin interfacecom.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.
-