Class DefaultPromptQueryExportSpec.Builder
java.lang.Object
de.xima.fc.prompt.mgmt.defaults.DefaultPromptQueryExportSpec.Builder
- Enclosing class:
DefaultPromptQueryExportSpec
A builder for a prompt query export specification.
- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the prompt query export specification with the provided data.exportConnection(boolean exportConnection) Optional flag to export the associated connection as well.password(char[] password) Sets the password to encrypt the exported prompt data.Sets the password to encrypt the exported prompt data, as a string.promptQueryId(PromptObjectIdentifier promptQueryId) Sets the identifier of the prompt query to export.
-
Method Details
-
build
Builds the prompt query export specification with the provided data.- Returns:
- The built prompt query export specification.
-
exportConnection
@CanIgnoreReturnValue public DefaultPromptQueryExportSpec.Builder exportConnection(boolean exportConnection) Optional flag to export the associated connection as well.ATTENTION: Enabling this option may lead to security risks if the connection contains sensitive information. Therefore, ensure that the exported data is
encrypted directlyor part of an encrypted archive (e.g. encrypted project export) when using this option.- Parameters:
exportConnection- true to export the associated connection, false to only export the prompt query.- Returns:
- This builder for chaining.
-
password
Sets the password to encrypt the exported prompt data. May be null or empty, in which case no encryption is applied.- Parameters:
password- The password to encrypt the exported prompt data.- Returns:
- This builder for chaining.
-
password
Sets the password to encrypt the exported prompt data, as a string. May be null or empty, in which case no encryption is applied.- Parameters:
password- The password to encrypt the exported prompt data.- Returns:
- This builder for chaining.
-
promptQueryId
@CanIgnoreReturnValue public DefaultPromptQueryExportSpec.Builder promptQueryId(PromptObjectIdentifier promptQueryId) Sets the identifier of the prompt query to export.- Parameters:
promptQueryId- The identifier of the prompt query to export. Must not be null.- Returns:
- This builder for chaining.
-