Class EndpointSettingsImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.implementation.EndpointSettingsImpl
-
- All Implemented Interfaces:
EndpointSettings
public class EndpointSettingsImpl extends Object implements EndpointSettings
An instance of this class provides access to all the operations defined in EndpointSettings.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.cognitiveservices.knowledge.qnamaker.EndpointSettings
EndpointSettings.EndpointSettingsUpdateSettingsDefinition, EndpointSettings.EndpointSettingsUpdateSettingsDefinitionStages
-
-
Constructor Summary
Constructors Constructor Description EndpointSettingsImpl(retrofit2.Retrofit retrofit, QnAMakerClientImpl client)Initializes an instance of EndpointSettingsImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointSettingsDTOgetSettings()Gets endpoint settings for an endpoint.rx.Observable<EndpointSettingsDTO>getSettingsAsync()Gets endpoint settings for an endpoint.com.microsoft.rest.ServiceFuture<EndpointSettingsDTO>getSettingsAsync(com.microsoft.rest.ServiceCallback<EndpointSettingsDTO> serviceCallback)Gets endpoint settings for an endpoint.rx.Observable<com.microsoft.rest.ServiceResponse<EndpointSettingsDTO>>getSettingsWithServiceResponseAsync()Gets endpoint settings for an endpoint.com.microsoft.azure.cognitiveservices.knowledge.qnamaker.implementation.EndpointSettingsImpl.EndpointSettingsUpdateSettingsParametersupdateSettings()Updates endpoint settings for an endpoint.voidupdateSettings(UpdateSettingsOptionalParameter updateSettingsOptionalParameter)Updates endpoint settings for an endpoint.rx.Observable<Void>updateSettingsAsync(UpdateSettingsOptionalParameter updateSettingsOptionalParameter)Updates endpoint settings for an endpoint.com.microsoft.rest.ServiceFuture<Void>updateSettingsAsync(UpdateSettingsOptionalParameter updateSettingsOptionalParameter, com.microsoft.rest.ServiceCallback<Void> serviceCallback)Updates endpoint settings for an endpoint.rx.Observable<com.microsoft.rest.ServiceResponse<Void>>updateSettingsWithServiceResponseAsync(EndpointSettingsDTOActiveLearning activeLearning)Updates endpoint settings for an endpoint.rx.Observable<com.microsoft.rest.ServiceResponse<Void>>updateSettingsWithServiceResponseAsync(UpdateSettingsOptionalParameter updateSettingsOptionalParameter)Updates endpoint settings for an endpoint.
-
-
-
Constructor Detail
-
EndpointSettingsImpl
public EndpointSettingsImpl(retrofit2.Retrofit retrofit, QnAMakerClientImpl client)Initializes an instance of EndpointSettingsImpl.- Parameters:
retrofit- the Retrofit instance built from a Retrofit Builder.client- the instance of the service client containing this operation class.
-
-
Method Detail
-
getSettings
public EndpointSettingsDTO getSettings()
Gets endpoint settings for an endpoint.- Specified by:
getSettingsin interfaceEndpointSettings- Returns:
- the EndpointSettingsDTO 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
-
getSettingsAsync
public com.microsoft.rest.ServiceFuture<EndpointSettingsDTO> getSettingsAsync(com.microsoft.rest.ServiceCallback<EndpointSettingsDTO> serviceCallback)
Gets endpoint settings for an endpoint.- Parameters:
serviceCallback- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFutureobject - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
getSettingsAsync
public rx.Observable<EndpointSettingsDTO> getSettingsAsync()
Gets endpoint settings for an endpoint.- Specified by:
getSettingsAsyncin interfaceEndpointSettings- Returns:
- the observable to the EndpointSettingsDTO object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
getSettingsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<EndpointSettingsDTO>> getSettingsWithServiceResponseAsync()
Gets endpoint settings for an endpoint.- Returns:
- the observable to the EndpointSettingsDTO object
- Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
updateSettings
public void updateSettings(UpdateSettingsOptionalParameter updateSettingsOptionalParameter)
Updates endpoint settings for an endpoint.- Specified by:
updateSettingsin interfaceEndpointSettings- Parameters:
updateSettingsOptionalParameter- the object representing the optional parameters to be set before calling this API- 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
-
updateSettingsAsync
public com.microsoft.rest.ServiceFuture<Void> updateSettingsAsync(UpdateSettingsOptionalParameter updateSettingsOptionalParameter, com.microsoft.rest.ServiceCallback<Void> serviceCallback)
Updates endpoint settings for an endpoint.- Parameters:
updateSettingsOptionalParameter- the object representing the optional parameters to be set before calling this APIserviceCallback- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFutureobject - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
updateSettingsAsync
public rx.Observable<Void> updateSettingsAsync(UpdateSettingsOptionalParameter updateSettingsOptionalParameter)
Updates endpoint settings for an endpoint.- Specified by:
updateSettingsAsyncin interfaceEndpointSettings- Parameters:
updateSettingsOptionalParameter- the object representing the optional parameters to be set before calling this API- Returns:
- the
ServiceResponseobject if successful. - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
updateSettingsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<Void>> updateSettingsWithServiceResponseAsync(UpdateSettingsOptionalParameter updateSettingsOptionalParameter)
Updates endpoint settings for an endpoint.- Parameters:
updateSettingsOptionalParameter- the object representing the optional parameters to be set before calling this API- Returns:
- the
ServiceResponseobject if successful. - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
updateSettingsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<Void>> updateSettingsWithServiceResponseAsync(EndpointSettingsDTOActiveLearning activeLearning)
Updates endpoint settings for an endpoint.- Parameters:
activeLearning- Active Learning settings of the endpoint.- Returns:
- the
ServiceResponseobject if successful. - Throws:
IllegalArgumentException- thrown if parameters fail the validation
-
updateSettings
public com.microsoft.azure.cognitiveservices.knowledge.qnamaker.implementation.EndpointSettingsImpl.EndpointSettingsUpdateSettingsParameters updateSettings()
Description copied from interface:EndpointSettingsUpdates endpoint settings for an endpoint.- Specified by:
updateSettingsin interfaceEndpointSettings- Returns:
- the first stage of the updateSettings call
-
-