Class PartCreateParams.Builder
-
- All Implemented Interfaces:
public final class PartCreateParams.Builder
A builder for PartCreateParams.
-
-
Method Summary
-
-
Method Detail
-
uploadId
final PartCreateParams.Builder uploadId(String uploadId)
-
uploadId
final PartCreateParams.Builder uploadId(Optional<String> uploadId)
Alias for calling Builder.uploadId with
uploadId.orElse(null)
.
-
body
final PartCreateParams.Builder body(PartCreateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
data
final PartCreateParams.Builder data(InputStream data)
The chunk of bytes for this Part.
-
data
final PartCreateParams.Builder data(MultipartField<InputStream> data)
Sets Builder.data to an arbitrary multipart value.
You should usually call Builder.data with a well-typed InputStream value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
data
final PartCreateParams.Builder data(ByteArray data)
The chunk of bytes for this Part.
-
data
final PartCreateParams.Builder data(Path data)
The chunk of bytes for this Part.
-
additionalHeaders
final PartCreateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final PartCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final PartCreateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final PartCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final PartCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final PartCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final PartCreateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final PartCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final PartCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final PartCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final PartCreateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final PartCreateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final PartCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final PartCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final PartCreateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final PartCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final PartCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final PartCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final PartCreateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final PartCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final PartCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final PartCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final PartCreateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final PartCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final PartCreateParams build()
Returns an immutable instance of PartCreateParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data()
-
-
-
-