Builder

class Builder

Fluent builder for Choice, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): Choice
Link copied to clipboard
Link copied to clipboard
fun criterion(label: String, description: ClassifierContent? = null): Choice.Builder

Adds or replaces one label in Choice.criteria; a null description, which Map.of rejects, means none.

fun criterion(label: String, description: String?): Choice.Builder

Adds or replaces one label in Choice.criteria with a plain-text description, or none if null.

Link copied to clipboard

fun instructions(instructions: String?): Choice.Builder

Sets plain-text instructions, or clears them if null.