Class FileUploadParams.Body.Builder
-
- All Implemented Interfaces:
public final class FileUploadParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
file
final FileUploadParams.Body.Builder file(InputStream file)
The file to upload. Only the final path component of the part's
filenameis kept; an absent or emptyfilenameis replaced withunnamedplus the extension for the file's storedmime_type, when known.
-
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. Only the final path component of the part's
filenameis kept; an absent or emptyfilenameis replaced withunnamedplus the extension for the file's storedmime_type, when known.
-
file
final FileUploadParams.Body.Builder file(Path path)
The file to upload. Only the final path component of the part's
filenameis kept; an absent or emptyfilenameis replaced withunnamedplus the extension for the file's storedmime_type, when known.
-
expiresInSeconds
final FileUploadParams.Body.Builder expiresInSeconds(Long expiresInSeconds)
Seconds from upload until the file expires and its bytes become permanently unavailable. Must be between 3600 (one hour) and 7776000 (ninety days).
-
expiresInSeconds
final FileUploadParams.Body.Builder expiresInSeconds(MultipartField<Long> expiresInSeconds)
Sets Builder.expiresInSeconds to an arbitrary multipart value.
You should usually call Builder.expiresInSeconds with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final FileUploadParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FileUploadParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FileUploadParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FileUploadParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FileUploadParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
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()
-
-
-
-