Class DefaultRetrieveQueryModelRetVal.Builder<QueryConfig>
java.lang.Object
de.xima.fc.prompt.service.defaults.DefaultRetrieveQueryModelRetVal.Builder<QueryConfig>
- Type Parameters:
QueryConfig- Type of the configuration object that is used to store the query's properties.
- All Implemented Interfaces:
IRetrieveQueryModelRetVal<QueryConfig>
- Enclosing class:
DefaultRetrieveQueryModelRetVal
public static final class DefaultRetrieveQueryModelRetVal.Builder<QueryConfig>
extends Object
implements IRetrieveQueryModelRetVal<QueryConfig>
A builder for
DefaultRetrieveQueryModelRetVal.- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new retrieve query model parameters instance with the current configuration.The model to use, or null to use the current model.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:IRetrieveQueryModelRetValThe model to use, or null to use the current model. You can either mutate the current model in-place or create a new instance.- Specified by:
queryConfigin interfaceIRetrieveQueryModelRetVal<QueryConfig>- Returns:
- The model to use, or null to use the current model.
-
queryConfig
Sets the query configuration.- Parameters:
queryConfig- The query configuration.- Returns:
- The builder instance for chaining method calls.
-