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 classUploadCompleteParams.Bodypublic final classUploadCompleteParams.BuilderA builder for UploadCompleteParams.
-
Method Summary
Modifier and Type Method Description final StringuploadId()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 StringgetPathParam(Integer index)final UploadCompleteParams.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UploadCompleteParams.Builderbuilder()Returns a mutable builder for constructing an instance of UploadCompleteParams. -
-
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()
Returns a mutable builder for constructing an instance of UploadCompleteParams.
The following fields are required:
.uploadId() .partIds()
-
-
-
-