TextPartBuilder

Builder for creating TextPart instances with a fluent DSL.

Example usage:

val textPart = TextPartBuilder().apply {
text = "Hello, world!"
metadata {
// configure metadata
}
}.create()

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
var text: String?

Functions

Link copied to clipboard
fun build(validate: Boolean = false): TextPart

Builds a TextPart instance with the configured properties.

Link copied to clipboard

Sets the metadata.

Link copied to clipboard

Sets the text content.