DataPartBuilder

Builder for creating DataPart instances with a fluent DSL.

Example usage:

val dataPart = DataPartBuilder().apply {
data = mapOf("key" to "value", "nested" to mapOf("inner" to 42))
}.create()

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard

Functions

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

Builds a DataPart instance with the configured properties.

Link copied to clipboard

Sets the metadata for the data part.

Link copied to clipboard
fun put(key: String, value: Any): DataPartBuilder

Adds a key-value pair to the data map.

Link copied to clipboard

Adds all entries from the provided map to the data map.