Package com.anthropic.models.beta.files
Class FileUploadParams.Body
-
- All Implemented Interfaces:
public final class FileUploadParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileUploadParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final InputStreamfile()The file to upload final MultipartField<InputStream>_file()Returns the raw multipart value of file. final FileUploadParams.Body.BuildertoBuilder()final FileUploadParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileUploadParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
file
final InputStream file()
The file to upload
-
_file
final MultipartField<InputStream> _file()
Returns the raw multipart value of file.
Unlike file, this method doesn't throw if the multipart field has an unexpected type.
-
toBuilder
final FileUploadParams.Body.Builder toBuilder()
-
validate
final FileUploadParams.Body validate()
-
builder
final static FileUploadParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.file()
-
-
-
-