Class AlterationsImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.implementation.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 Summary
Constructors Constructor Description AlterationsImpl(retrofit2.Retrofit retrofit, QnAMakerClientImpl client)
Initializes an instance of AlterationsImpl.
-
Method Summary
All Methods Instance Methods Concrete 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).com.microsoft.rest.ServiceFuture<WordAlterationsDTO>
getAlterationsForKbAsync(String kbId, com.microsoft.rest.ServiceCallback<WordAlterationsDTO> serviceCallback)
Download alterations per Knowledgebase (QnAMaker Managed).rx.Observable<com.microsoft.rest.ServiceResponse<WordAlterationsDTO>>
getAlterationsForKbWithServiceResponseAsync(String kbId)
Download alterations per Knowledgebase (QnAMaker Managed).rx.Observable<WordAlterationsDTO>
getAsync()
Download alterations from runtime.com.microsoft.rest.ServiceFuture<WordAlterationsDTO>
getAsync(com.microsoft.rest.ServiceCallback<WordAlterationsDTO> serviceCallback)
Download alterations from runtime.rx.Observable<com.microsoft.rest.ServiceResponse<WordAlterationsDTO>>
getWithServiceResponseAsync()
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).com.microsoft.rest.ServiceFuture<Void>
replaceAlterationsForKbAsync(String kbId, List<AlterationsDTO> wordAlterations, com.microsoft.rest.ServiceCallback<Void> serviceCallback)
Replace alterations data per Knowledgebase (QnAMaker Managed).rx.Observable<com.microsoft.rest.ServiceResponse<Void>>
replaceAlterationsForKbWithServiceResponseAsync(String kbId, List<AlterationsDTO> wordAlterations)
Replace alterations data per Knowledgebase (QnAMaker Managed).rx.Observable<Void>
replaceAsync(List<AlterationsDTO> wordAlterations)
Replace alterations data.com.microsoft.rest.ServiceFuture<Void>
replaceAsync(List<AlterationsDTO> wordAlterations, com.microsoft.rest.ServiceCallback<Void> serviceCallback)
Replace alterations data.rx.Observable<com.microsoft.rest.ServiceResponse<Void>>
replaceWithServiceResponseAsync(List<AlterationsDTO> wordAlterations)
Replace alterations data.
-
-
-
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
-
get
public WordAlterationsDTO get()
Download alterations from runtime.- Specified by:
get
in interfaceAlterations
- 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
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
-
getAsync
public rx.Observable<WordAlterationsDTO> getAsync()
Download alterations from runtime.- Specified by:
getAsync
in interfaceAlterations
- Returns:
- the observable to the WordAlterationsDTO 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
-
replace
public void replace(List<AlterationsDTO> wordAlterations)
Replace alterations data.- Specified by:
replace
in interfaceAlterations
- 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
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 interfaceAlterations
- 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
-
getAlterationsForKb
public WordAlterationsDTO getAlterationsForKb(String kbId)
Download alterations per Knowledgebase (QnAMaker Managed).- Specified by:
getAlterationsForKb
in interfaceAlterations
- 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
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
-
getAlterationsForKbAsync
public rx.Observable<WordAlterationsDTO> getAlterationsForKbAsync(String kbId)
Download alterations per Knowledgebase (QnAMaker Managed).- Specified by:
getAlterationsForKbAsync
in interfaceAlterations
- Parameters:
kbId
- Knowledgebase id.- Returns:
- the observable to the WordAlterationsDTO 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
-
replaceAlterationsForKb
public void replaceAlterationsForKb(String kbId, List<AlterationsDTO> wordAlterations)
Replace alterations data per Knowledgebase (QnAMaker Managed).- Specified by:
replaceAlterationsForKb
in interfaceAlterations
- 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
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 interfaceAlterations
- 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
-
-