Class DefaultRetrieveConnectionModelParams.Builder<ConnectionConfig>
- java.lang.Object
-
- de.xima.fc.prompt.service.defaults.DefaultRetrieveConnectionModelParams.Builder<ConnectionConfig>
-
- Type Parameters:
ConnectionConfig- Type of the configuration object that is used to store the connection's properties.
- All Implemented Interfaces:
IRetrieveConnectionModelParams<ConnectionConfig>
- Enclosing class:
- DefaultRetrieveConnectionModelParams
public static final class DefaultRetrieveConnectionModelParams.Builder<ConnectionConfig> extends Object implements IRetrieveConnectionModelParams<ConnectionConfig>
A builder forDefaultRetrieveConnectionModelParams.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRetrieveConnectionModelParams<ConnectionConfig>build()Creates a new retrieve connection model parameters instance with the current configuration.ConnectionConfigconnectionConfig()The current model, the same instance that was passed toprepareViewForConnection.<C> DefaultRetrieveConnectionModelParams.Builder<C>connectionConfig(C connectionConfig)Sets the connection configuration.
-
-
-
Method Detail
-
build
public IRetrieveConnectionModelParams<ConnectionConfig> build()
Creates a new retrieve connection model parameters instance with the current configuration.- Returns:
- A new retrieve connection model parameters instance.
-
connectionConfig
public ConnectionConfig connectionConfig()
Description copied from interface:IRetrieveConnectionModelParamsThe current model, the same instance that was passed toprepareViewForConnection. You may save a reference to this model in your bean and mutate it in-place.- Specified by:
connectionConfigin interfaceIRetrieveConnectionModelParams<ConnectionConfig>- Returns:
- The current model.
-
connectionConfig
public <C> DefaultRetrieveConnectionModelParams.Builder<C> connectionConfig(C connectionConfig)
Sets the connection configuration.- Parameters:
connectionConfig- The connection configuration.- Returns:
- The builder instance for chaining method calls.
-
-