Package com.linecorp.armeria.server.docs
Class FieldInfoBuilder
java.lang.Object
com.linecorp.armeria.server.docs.FieldInfoBuilder
@UnstableApi public final class FieldInfoBuilder extends Object
Creates a new
FieldInfo
using the builder pattern.-
Method Summary
Modifier and Type Method Description FieldInfo
build()
Returns a newly-createdFieldInfo
based on the properties of this builder.FieldInfoBuilder
docString(String docString)
Sets the documentation string of the field.FieldInfoBuilder
location(FieldLocation location)
Sets theFieldLocation
of the field.FieldInfoBuilder
requirement(FieldRequirement requirement)
Sets theFieldRequirement
of the field.String
toString()
-
Method Details
-
requirement
Sets theFieldRequirement
of the field. -
location
Sets theFieldLocation
of the field. -
docString
Sets the documentation string of the field. -
build
Returns a newly-createdFieldInfo
based on the properties of this builder. -
toString
-