oneOf

Restricts non-nullable string option to one of the specified allowed values.


fun OptionBuilder<String?>.oneOf(vararg allowed: String, ignoreCase: Boolean = true): OptionBuilder<String?>(source)

Restricts string option to one of the specified allowed values.