build

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

Builds a TextPart instance with the configured properties.

Return

A new TextPart instance

Parameters

validate

Whether to validate required properties

Throws

if validation fails