Class DocumentUploadParams.Body.Builder
-
- All Implemented Interfaces:
public final class DocumentUploadParams.Body.BuilderA builder for Body.
-
-
Method Summary
Modifier and Type Method Description final DocumentUploadParams.Body.Builderfile(InputStream file)File to be uploaded. final DocumentUploadParams.Body.Builderfile(MultipartField<InputStream> file)Sets Builder.file to an arbitrary multipart value. final DocumentUploadParams.Body.Builderfile(ByteArray file)File to be uploaded. final DocumentUploadParams.Body.Builderfile(Path file)File to be uploaded. final DocumentUploadParams.Bodybuild()Returns an immutable instance of Body. -
-
Method Detail
-
file
final DocumentUploadParams.Body.Builder file(InputStream file)
File to be uploaded. Must be a valid image or PDF file (jpg, jpeg, png, pdf) less than 10MB in size.
-
file
final DocumentUploadParams.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 DocumentUploadParams.Body.Builder file(ByteArray file)
File to be uploaded. Must be a valid image or PDF file (jpg, jpeg, png, pdf) less than 10MB in size.
-
file
final DocumentUploadParams.Body.Builder file(Path file)
File to be uploaded. Must be a valid image or PDF file (jpg, jpeg, png, pdf) less than 10MB in size.
-
build
final DocumentUploadParams.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()
-
-
-
-