Package com.openai.models.uploads
Class UploadCreateParams.Body
-
- All Implemented Interfaces:
public final class UploadCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUploadCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Longbytes()The number of bytes in the file you are uploading. final Stringfilename()The name of the file to upload. final StringmimeType()The MIME type of the file. final FilePurposepurpose()The intended purpose of the uploaded file. final JsonField<Long>_bytes()The number of bytes in the file you are uploading. final JsonField<String>_filename()The name of the file to upload. final JsonField<String>_mimeType()The MIME type of the file. final JsonField<FilePurpose>_purpose()The intended purpose of the uploaded file. final Map<String, JsonValue>_additionalProperties()final UploadCreateParams.Bodyvalidate()final UploadCreateParams.Body.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UploadCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
mimeType
final String mimeType()
The MIME type of the file.
This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.
-
purpose
final FilePurpose purpose()
The intended purpose of the uploaded file.
See the documentation on File purposes.
-
_mimeType
final JsonField<String> _mimeType()
The MIME type of the file.
This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.
-
_purpose
final JsonField<FilePurpose> _purpose()
The intended purpose of the uploaded file.
See the documentation on File purposes.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final UploadCreateParams.Body validate()
-
toBuilder
final UploadCreateParams.Body.Builder toBuilder()
-
builder
final static UploadCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.bytes() .filename() .mimeType() .purpose()
-
-
-
-