Class 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.
    • 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

      • 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 ServiceFuture 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
      • 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 API
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updateSettingsAsync

        public rx.Observable<Void> updateSettingsAsync​(UpdateSettingsOptionalParameter updateSettingsOptionalParameter)
        Updates endpoint settings for an endpoint.
        Specified by:
        updateSettingsAsync in interface EndpointSettings
        Parameters:
        updateSettingsOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the ServiceResponse object 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 ServiceResponse object 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 ServiceResponse object 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: EndpointSettings
        Updates endpoint settings for an endpoint.
        Specified by:
        updateSettings in interface EndpointSettings
        Returns:
        the first stage of the updateSettings call