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