Class OpenApiFeatureConfig.Builder
java.lang.Object
io.helidon.openapi.OpenApiFeatureConfig.BuilderBase<OpenApiFeatureConfig.Builder, OpenApiFeatureConfig>
io.helidon.openapi.OpenApiFeatureConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<OpenApiFeatureConfig.Builder, OpenApiFeatureConfig>, Builder<OpenApiFeatureConfig.Builder, OpenApiFeature>, ConfigBuilderSupport.ConfiguredBuilder<OpenApiFeatureConfig.Builder, OpenApiFeatureConfig>, Supplier<OpenApiFeature>
- Enclosing interface:
OpenApiFeatureConfig
public static class OpenApiFeatureConfig.Builder
extends OpenApiFeatureConfig.BuilderBase<OpenApiFeatureConfig.Builder, OpenApiFeatureConfig>
implements Builder<OpenApiFeatureConfig.Builder, OpenApiFeature>
Fluent API builder for
OpenApiFeature.-
Nested Class Summary
Nested classes/interfaces inherited from class OpenApiFeatureConfig.BuilderBase
OpenApiFeatureConfig.BuilderBase.OpenApiFeatureConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class OpenApiFeatureConfig.BuilderBase
addGeneratedDocumentSource, addGeneratedDocumentSources, addGeneratedOperationIds, addRoles, addService, addServices, addSocket, addSockets, clearGeneratedDocumentSources, clearManager, clearOpenApiVersion, clearRoles, clearServices, clearSockets, clearStaticFile, config, config, from, from, generatedDocumentSources, generatedDocumentSources, generatedMode, generatedMode, generatedOperationIds, generatedOperationIds, generatedResolveConfigExpressions, generatedResolveConfigExpressions, isEnabled, isEnabled, manager, manager, managerDiscoverServices, managerDiscoverServices, name, name, openApiVersion, openApiVersion, openApiVersionDiscoverServices, openApiVersionDiscoverServices, permitAll, permitAll, preBuildPrototype, roles, roles, serviceRegistry, serviceRegistry, services, services, servicesDiscoverServices, servicesDiscoverServices, sockets, sockets, staticFile, staticFile, toString, validatePrototype, webContext, webContext, weight, weightModifier and TypeMethodDescriptionaddGeneratedDocumentSource(String generatedDocumentSource) Named generated document metadata sources to use, in the order configured.addGeneratedDocumentSources(List<String> generatedDocumentSources) Named generated document metadata sources to use, in the order configured.addGeneratedOperationIds(Map<String, String> generatedOperationIds) Operation ids to use for generated Java methods.Hints for role names the user is expected to be in.addService(OpenApiService service) OpenAPI services.addServices(List<? extends OpenApiService> services) OpenAPI services.List of sockets to register this feature on.addSockets(Set<String> sockets) List of sockets to register this feature on.Clear all generatedDocumentSources.Clear existing value of manager.Clear existing value of openApiVersion.Clear all roles.Clear all services.Clear all sockets.Clear existing value of staticFile.config()Configuration used to configure this instance.Update builder from configuration (node of this type).from(OpenApiFeatureConfig prototype) Update this builder from an existing prototype instance.from(OpenApiFeatureConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Named generated document metadata sources to use, in the order configured.generatedDocumentSources(List<String> generatedDocumentSources) Named generated document metadata sources to use, in the order configured.Generated document source handling mode.generatedMode(OpenApiGeneratedMode generatedMode) Generated document source handling mode.Operation ids to use for generated Java methods.generatedOperationIds(Map<String, String> generatedOperationIds) Operation ids to use for generated Java methods.booleanWhether generated document sources resolve annotation string values as Helidon config expressions at runtime.generatedResolveConfigExpressions(boolean generatedResolveConfigExpressions) Whether generated document sources resolve annotation string values as Helidon config expressions at runtime.booleanSets whether the feature should be enabled.isEnabled(boolean isEnabled) Sets whether the feature should be enabled.manager()OpenAPI manager.manager(OpenApiManager<?> manager) OpenAPI manager.booleanService discovery flag forOpenApiFeatureConfig.BuilderBase.manager().managerDiscoverServices(boolean managerDiscoverServices) Service discovery flag forOpenApiFeatureConfig.BuilderBase.manager().name()Name of this instance.Name of this instance.OpenAPI version implementation for rendered generated or merged documents.openApiVersion(OpenApiVersion openApiVersion) OpenAPI version implementation for rendered generated or merged documents.booleanService discovery flag forOpenApiFeatureConfig.BuilderBase.openApiVersion().openApiVersionDiscoverServices(boolean openApiVersionDiscoverServices) Service discovery flag forOpenApiFeatureConfig.BuilderBase.openApiVersion().booleanWhether to allow anybody to access the endpoint.permitAll(boolean permitAll) Whether to allow anybody to access the endpoint.protected voidHandles providers and decorators.roles()Hints for role names the user is expected to be in.Hints for role names the user is expected to be in.Service registry used to discover providers and services.serviceRegistry(ServiceRegistry serviceRegistry) Service registry used to discover providers and services.services()OpenAPI services.services(List<? extends OpenApiService> services) OpenAPI services.booleanService discovery flag forOpenApiFeatureConfig.BuilderBase.services().servicesDiscoverServices(boolean servicesDiscoverServices) Service discovery flag forOpenApiFeatureConfig.BuilderBase.services().sockets()List of sockets to register this feature on.List of sockets to register this feature on.Path of the static OpenAPI document file.staticFile(String staticFile) Path of the static OpenAPI document file.toString()protected voidValidates required properties.Web context path for the OpenAPI endpoint.webContext(String webContext) Web context path for the OpenAPI endpoint.doubleweight()Weight of the OpenAPI feature.weight(double weight) Weight of the OpenAPI feature.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault OpenApiFeatureget()default OpenApiFeatureConfig.Builderidentity()Instance of this builder as the correct type.default OpenApiFeatureConfig.Builderupdate(Consumer<OpenApiFeatureConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault OpenApiFeatureConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<OpenApiFeatureConfig.Builder, OpenApiFeatureConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<OpenApiFeatureConfig.Builder, OpenApiFeature>- Returns:
- instance of the built type
-