Interface Alterations

  • All Known Implementing Classes:
    AlterationsImpl

    public interface Alterations
    An instance of this class provides access to all the operations defined in Alterations.
    • Method Detail

      • getAsync

        rx.Observable<WordAlterationsDTO> getAsync()
        Download alterations from runtime.
        Returns:
        the observable to the WordAlterationsDTO object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • replaceAsync

        rx.Observable<Void> replaceAsync​(List<AlterationsDTO> wordAlterations)
        Replace alterations data.
        Parameters:
        wordAlterations - Collection of word alterations.
        Returns:
        a representation of the deferred computation of this call if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getAlterationsForKb

        WordAlterationsDTO getAlterationsForKb​(String kbId)
        Download alterations per Knowledgebase (QnAMaker Managed).
        Parameters:
        kbId - Knowledgebase id.
        Returns:
        the WordAlterationsDTO object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • getAlterationsForKbAsync

        rx.Observable<WordAlterationsDTO> getAlterationsForKbAsync​(String kbId)
        Download alterations per Knowledgebase (QnAMaker Managed).
        Parameters:
        kbId - Knowledgebase id.
        Returns:
        the observable to the WordAlterationsDTO object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • replaceAlterationsForKb

        void replaceAlterationsForKb​(String kbId,
                                     List<AlterationsDTO> wordAlterations)
        Replace alterations data per Knowledgebase (QnAMaker Managed).
        Parameters:
        kbId - Knowledgebase id.
        wordAlterations - Collection of word alterations.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • replaceAlterationsForKbAsync

        rx.Observable<Void> replaceAlterationsForKbAsync​(String kbId,
                                                         List<AlterationsDTO> wordAlterations)
        Replace alterations data per Knowledgebase (QnAMaker Managed).
        Parameters:
        kbId - Knowledgebase id.
        wordAlterations - Collection of word alterations.
        Returns:
        a representation of the deferred computation of this call if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation