Package io.helidon.http.media.multipart
Class WriteableMultiPart.Builder
java.lang.Object
io.helidon.http.media.multipart.WriteableMultiPart.Builder
- All Implemented Interfaces:
Builder<WriteableMultiPart.Builder,
,WriteableMultiPart> Supplier<WriteableMultiPart>
- Enclosing interface:
WriteableMultiPart
public static class WriteableMultiPart.Builder
extends Object
implements Builder<WriteableMultiPart.Builder,WriteableMultiPart>
Fluent API builder for
WriteableMultiPart
.-
Method Summary
Modifier and TypeMethodDescriptionaddPart
(WriteablePart part) Add a new part.addPart
(Supplier<? extends WriteablePart> part) Add a new part.build()
Build the instance from this builder.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<WriteableMultiPart.Builder,
WriteableMultiPart> - Returns:
- instance of the built type
-
addPart
Add a new part.- Parameters:
part
- part to add- Returns:
- updated builder
-
addPart
Add a new part.- Parameters:
part
- part to add- Returns:
- updated builder
-