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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WordAlterationsDTO
get()
Download alterations from runtime.WordAlterationsDTO
getAlterationsForKb(String kbId)
Download alterations per Knowledgebase (QnAMaker Managed).rx.Observable<WordAlterationsDTO>
getAlterationsForKbAsync(String kbId)
Download alterations per Knowledgebase (QnAMaker Managed).rx.Observable<WordAlterationsDTO>
getAsync()
Download alterations from runtime.void
replace(List<AlterationsDTO> wordAlterations)
Replace alterations data.void
replaceAlterationsForKb(String kbId, List<AlterationsDTO> wordAlterations)
Replace alterations data per Knowledgebase (QnAMaker Managed).rx.Observable<Void>
replaceAlterationsForKbAsync(String kbId, List<AlterationsDTO> wordAlterations)
Replace alterations data per Knowledgebase (QnAMaker Managed).rx.Observable<Void>
replaceAsync(List<AlterationsDTO> wordAlterations)
Replace alterations data.
-
-
-
Method Detail
-
get
WordAlterationsDTO get()
Download alterations from runtime.- Returns:
- the WordAlterationsDTO object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
getAsync
rx.Observable<WordAlterationsDTO> getAsync()
Download alterations from runtime.- Returns:
- the observable to the WordAlterationsDTO object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
replace
void replace(List<AlterationsDTO> wordAlterations)
Replace alterations data.- Parameters:
wordAlterations
- Collection of word alterations.- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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
-
-