Class DefaultRetrieveConnectionModelRetVal.Builder<ConnectionConfig>
- java.lang.Object
-
- de.xima.fc.prompt.service.defaults.DefaultRetrieveConnectionModelRetVal.Builder<ConnectionConfig>
-
- Type Parameters:
ConnectionConfig- Type of the configuration object that is used to store the connection's properties.
- All Implemented Interfaces:
IRetrieveConnectionModelRetVal<ConnectionConfig>
- Enclosing class:
- DefaultRetrieveConnectionModelRetVal
public static final class DefaultRetrieveConnectionModelRetVal.Builder<ConnectionConfig> extends Object implements IRetrieveConnectionModelRetVal<ConnectionConfig>
A builder forDefaultRetrieveConnectionModelRetVal.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRetrieveConnectionModelRetVal<ConnectionConfig>build()Creates a new retrieve connection model parameters instance with the current configuration.ConnectionConfigconnectionConfig()The model to use, or null to use the current model.<C> DefaultRetrieveConnectionModelRetVal.Builder<C>connectionConfig(C connectionConfig)Sets the connection configuration.
-
-
-
Method Detail
-
build
public IRetrieveConnectionModelRetVal<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:IRetrieveConnectionModelRetValThe 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:
connectionConfigin interfaceIRetrieveConnectionModelRetVal<ConnectionConfig>- Returns:
- The model to use, or null to use the current model.
-
connectionConfig
public <C> DefaultRetrieveConnectionModelRetVal.Builder<C> connectionConfig(C connectionConfig)
Sets the connection configuration.- Parameters:
connectionConfig- The connection configuration.- Returns:
- The builder instance for chaining method calls.
-
-