Package com.openai.models.uploads.parts
Class PartCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class PartCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
Modifier and Type Method Description final PartCreateParams.Body.Builderdata(InputStream data)The chunk of bytes for this Part. final PartCreateParams.Body.Builderdata(MultipartField<InputStream> data)Sets Builder.data to an arbitrary multipart value. final PartCreateParams.Body.Builderdata(ByteArray data)The chunk of bytes for this Part. final PartCreateParams.Body.Builderdata(Path data)The chunk of bytes for this Part. final PartCreateParams.Bodybuild()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()
-
-
-
-