Class DefaultRetrieveQueryModelParams.Builder<QueryConfig>
java.lang.Object
de.xima.fc.prompt.service.defaults.DefaultRetrieveQueryModelParams.Builder<QueryConfig>
- Type Parameters:
QueryConfig- Type of the configuration object that is used to store the query's properties.
- All Implemented Interfaces:
IRetrieveQueryModelParams<QueryConfig>
- Enclosing class:
DefaultRetrieveQueryModelParams
public static final class DefaultRetrieveQueryModelParams.Builder<QueryConfig>
extends Object
implements IRetrieveQueryModelParams<QueryConfig>
A builder for
DefaultRetrieveQueryModelParams.- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new retrieve query model parameters instance with the current configuration.The current model, the same instance that was passed toprepareViewForQuery.queryConfig(Q queryConfig) Sets the query configuration.
-
Method Details
-
build
Creates a new retrieve query model parameters instance with the current configuration.- Returns:
- A new retrieve query model parameters instance.
-
queryConfig
Description copied from interface:IRetrieveQueryModelParamsThe current model, the same instance that was passed toprepareViewForQuery. You may save a reference to this model in your bean and mutate it in-place.- Specified by:
queryConfigin interfaceIRetrieveQueryModelParams<QueryConfig>- Returns:
- The current model.
-
queryConfig
Sets the query configuration.- Parameters:
queryConfig- The query configuration.- Returns:
- The builder instance for chaining method calls.
-