Class UploadCompleteParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class UploadCompleteParams implements Params
Completes the Upload.
Within the returned Upload object, there is a nested File object that is ready to use in the rest of the platform.
You can specify the order of the Parts by passing in an ordered list of the Part IDs.
The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
UploadCompleteParams.Body
public final class
UploadCompleteParams.Builder
A builder for UploadCompleteParams.
-
Method Summary
Modifier and Type Method Description final String
uploadId()
final List<String>
partIds()
The ordered list of Part IDs. final Optional<String>
md5()
The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect. final JsonField<List<String>>
_partIds()
The ordered list of Part IDs. final JsonField<String>
_md5()
The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect. final Map<String, JsonValue>
_additionalBodyProperties()
final Headers
_additionalHeaders()
final QueryParams
_additionalQueryParams()
Headers
_headers()
The full set of headers in the parameters, including both fixed and additional headers. QueryParams
_queryParams()
The full set of query params in the parameters, including both fixed and additional query params. final String
getPathParam(Integer index)
final UploadCompleteParams.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static UploadCompleteParams.Builder
builder()
-
-
Method Detail
-
md5
final Optional<String> md5()
The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.
-
_md5
final JsonField<String> _md5()
The optional md5 checksum for the file contents to verify if the bytes uploaded matches what you expect.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
getPathParam
final String getPathParam(Integer index)
-
toBuilder
final UploadCompleteParams.Builder toBuilder()
-
builder
final static UploadCompleteParams.Builder builder()
-
-
-
-