Class DefaultPromptQueryExportSpec.Builder

  • Enclosing class:
    DefaultPromptQueryExportSpec

    public static final class DefaultPromptQueryExportSpec.Builder
    extends Object
    A builder for a prompt query export specification.
    Since:
    8.5.0
    • Method Detail

      • build

        public IPromptQueryExportSpec 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 directly or 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

        @CanIgnoreReturnValue
        public DefaultPromptQueryExportSpec.Builder password​(char[] 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

        @CanIgnoreReturnValue
        public DefaultPromptQueryExportSpec.Builder password​(String 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.