Builder

class Builder : AttributedSpec.Builder<EnumerationCaseSpec.Builder>

Functions

addAttribute
Link copied to clipboard
fun addAttribute(attribute: AttributeSpec): EnumerationCaseSpec.Builder
fun addAttribute(name: String, vararg arguments: String): EnumerationCaseSpec.Builder
addDoc
Link copied to clipboard
fun addDoc(block: CodeBlock): EnumerationCaseSpec.Builder
fun addDoc(format: String, vararg args: Any): EnumerationCaseSpec.Builder
build
Link copied to clipboard
fun build(): EnumerationCaseSpec
tag
Link copied to clipboard
fun <T : Any> tag(type: Class<T>, tag: T?): EnumerationCaseSpec.Builder
Attaches tag to the request using type as a key.
fun <T : Any> tag(type: KClass<T>, tag: T?): EnumerationCaseSpec.Builder
Attaches tag to the request using type as a key.

Properties

attributes
Link copied to clipboard
val attributes: MutableList<AttributeSpec>
Mutable list of the current attributes this builder contains.
tags
Link copied to clipboard
val tags: MutableMap<KClass<*>, Any>
Mutable map of the current tags this builder contains.

Extensions

tag
Link copied to clipboard
inline fun <T : Any> EnumerationCaseSpec.Builder.tag(tag: T?): EnumerationCaseSpec.Builder
Attaches tag to the request using T as a key.