Class AlterationsImpl

  • All Implemented Interfaces:
    Alterations

    public class AlterationsImpl
    extends Object
    implements Alterations
    An instance of this class provides access to all the operations defined in Alterations.
    • Constructor Detail

      • AlterationsImpl

        public AlterationsImpl​(retrofit2.Retrofit retrofit,
                               QnAMakerClientImpl client)
        Initializes an instance of AlterationsImpl.
        Parameters:
        retrofit - the Retrofit instance built from a Retrofit Builder.
        client - the instance of the service client containing this operation class.
    • Method Detail

      • getAsync

        public com.microsoft.rest.ServiceFuture<WordAlterationsDTO> getAsync​(com.microsoft.rest.ServiceCallback<WordAlterationsDTO> serviceCallback)
        Download alterations from runtime.
        Parameters:
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getWithServiceResponseAsync

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

        public com.microsoft.rest.ServiceFuture<Void> replaceAsync​(List<AlterationsDTO> wordAlterations,
                                                                   com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Replace alterations data.
        Parameters:
        wordAlterations - Collection of word alterations.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • replaceAsync

        public rx.Observable<Void> replaceAsync​(List<AlterationsDTO> wordAlterations)
        Replace alterations data.
        Specified by:
        replaceAsync in interface Alterations
        Parameters:
        wordAlterations - Collection of word alterations.
        Returns:
        the ServiceResponse object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • replaceWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<Void>> replaceWithServiceResponseAsync​(List<AlterationsDTO> wordAlterations)
        Replace alterations data.
        Parameters:
        wordAlterations - Collection of word alterations.
        Returns:
        the ServiceResponse object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getAlterationsForKbAsync

        public com.microsoft.rest.ServiceFuture<WordAlterationsDTO> getAlterationsForKbAsync​(String kbId,
                                                                                             com.microsoft.rest.ServiceCallback<WordAlterationsDTO> serviceCallback)
        Download alterations per Knowledgebase (QnAMaker Managed).
        Parameters:
        kbId - Knowledgebase id.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getAlterationsForKbWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<WordAlterationsDTO>> getAlterationsForKbWithServiceResponseAsync​(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
      • replaceAlterationsForKbAsync

        public com.microsoft.rest.ServiceFuture<Void> replaceAlterationsForKbAsync​(String kbId,
                                                                                   List<AlterationsDTO> wordAlterations,
                                                                                   com.microsoft.rest.ServiceCallback<Void> serviceCallback)
        Replace alterations data per Knowledgebase (QnAMaker Managed).
        Parameters:
        kbId - Knowledgebase id.
        wordAlterations - Collection of word alterations.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • replaceAlterationsForKbAsync

        public rx.Observable<Void> replaceAlterationsForKbAsync​(String kbId,
                                                                List<AlterationsDTO> wordAlterations)
        Replace alterations data per Knowledgebase (QnAMaker Managed).
        Specified by:
        replaceAlterationsForKbAsync in interface Alterations
        Parameters:
        kbId - Knowledgebase id.
        wordAlterations - Collection of word alterations.
        Returns:
        the ServiceResponse object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • replaceAlterationsForKbWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<Void>> replaceAlterationsForKbWithServiceResponseAsync​(String kbId,
                                                                                                                       List<AlterationsDTO> wordAlterations)
        Replace alterations data per Knowledgebase (QnAMaker Managed).
        Parameters:
        kbId - Knowledgebase id.
        wordAlterations - Collection of word alterations.
        Returns:
        the ServiceResponse object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation