build

fun build(validate: Boolean = false): FilePart(source)

Builds a FilePart instance with the configured properties.

Return

A new FilePart instance

Parameters

validate

Whether to validate required properties

Throws

if validation fails