Package com.openai.models.uploads.parts
Class PartCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class PartCreateParams.Body.Builder
A builder for Body.
-
-
Method Summary
Modifier and Type Method Description final PartCreateParams.Body.Builder
data(InputStream data)
The chunk of bytes for this Part. final PartCreateParams.Body.Builder
data(MultipartField<InputStream> data)
Sets Builder.data to an arbitrary multipart value. final PartCreateParams.Body.Builder
data(ByteArray data)
The chunk of bytes for this Part. final PartCreateParams.Body.Builder
data(Path data)
The chunk of bytes for this Part. final PartCreateParams.Body
build()
Returns an immutable instance of Body. -
-
Method Detail
-
data
final PartCreateParams.Body.Builder data(InputStream data)
The chunk of bytes for this Part.
-
data
final PartCreateParams.Body.Builder data(MultipartField<InputStream> data)
Sets Builder.data to an arbitrary multipart value.
You should usually call Builder.data with a well-typed InputStream value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
data
final PartCreateParams.Body.Builder data(ByteArray data)
The chunk of bytes for this Part.
-
data
final PartCreateParams.Body.Builder data(Path data)
The chunk of bytes for this Part.
-
build
final PartCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data()
-
-
-
-