build

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

Builds a FileContent instance with the configured properties.

Return

A new FileContent instance

Parameters

validate

Whether to validate that either bytes or uri is set, but not both

Throws

if validation fails