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)
The chunk of bytes for this Part. 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)
The chunk of bytes for this Part.
-
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()
-
-
-
-