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 Map<String, JsonValue>_additionalProperties()final FileUploadParams.Body.BuildertoBuilder()final FileUploadParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FileUploadParams.Body.Builder toBuilder()
-
validate
final FileUploadParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static FileUploadParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.file()
-
-
-
-