Class FileCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class FileCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
Modifier and Type Method Description final FileCreateParams.Body.Builderfile(InputStream file)The File object (not file name) to be uploaded. final FileCreateParams.Body.Builderfile(MultipartField<InputStream> file)Sets Builder.file to an arbitrary multipart value. final FileCreateParams.Body.Builderfile(ByteArray file)The File object (not file name) to be uploaded. final FileCreateParams.Body.Builderfile(Path file)The File object (not file name) to be uploaded. final FileCreateParams.Body.BuilderfileId(String fileId)Name of the file to create. final FileCreateParams.Body.BuilderfileId(MultipartField<String> fileId)Sets Builder.fileId to an arbitrary multipart value. final FileCreateParams.Bodybuild()Returns an immutable instance of Body. -
-
Method Detail
-
file
final FileCreateParams.Body.Builder file(InputStream file)
The File object (not file name) to be uploaded.
-
file
final FileCreateParams.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 FileCreateParams.Body.Builder file(ByteArray file)
The File object (not file name) to be uploaded.
-
file
final FileCreateParams.Body.Builder file(Path file)
The File object (not file name) to be uploaded.
-
fileId
final FileCreateParams.Body.Builder fileId(String fileId)
Name of the file to create.
-
fileId
final FileCreateParams.Body.Builder fileId(MultipartField<String> fileId)
Sets Builder.fileId to an arbitrary multipart value.
You should usually call Builder.fileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
build
final FileCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-