Class SettingsImpl

  • All Implemented Interfaces:
    Settings

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

      • SettingsImpl

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

      • listAsync

        public com.microsoft.rest.ServiceFuture<List<AppVersionSettingObject>> listAsync​(UUID appId,
                                                                                         String versionId,
                                                                                         com.microsoft.rest.ServiceCallback<List<AppVersionSettingObject>> serviceCallback)
        Gets the settings in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listAsync

        public rx.Observable<List<AppVersionSettingObject>> listAsync​(UUID appId,
                                                                      String versionId)
        Gets the settings in a version of the application.
        Specified by:
        listAsync in interface Settings
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the List<AppVersionSettingObject> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<List<AppVersionSettingObject>>> listWithServiceResponseAsync​(UUID appId,
                                                                                                                             String versionId)
        Gets the settings in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the List<AppVersionSettingObject> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • update

        public OperationStatus update​(UUID appId,
                                      String versionId,
                                      List<AppVersionSettingObject> listOfAppVersionSettingObject)
        Updates the settings in a version of the application.
        Specified by:
        update in interface Settings
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listOfAppVersionSettingObject - A list of the updated application version settings.
        Returns:
        the OperationStatus object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • updateAsync

        public com.microsoft.rest.ServiceFuture<OperationStatus> updateAsync​(UUID appId,
                                                                             String versionId,
                                                                             List<AppVersionSettingObject> listOfAppVersionSettingObject,
                                                                             com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
        Updates the settings in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listOfAppVersionSettingObject - A list of the updated application version settings.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updateAsync

        public rx.Observable<OperationStatus> updateAsync​(UUID appId,
                                                          String versionId,
                                                          List<AppVersionSettingObject> listOfAppVersionSettingObject)
        Updates the settings in a version of the application.
        Specified by:
        updateAsync in interface Settings
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listOfAppVersionSettingObject - A list of the updated application version settings.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updateWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> updateWithServiceResponseAsync​(UUID appId,
                                                                                                                 String versionId,
                                                                                                                 List<AppVersionSettingObject> listOfAppVersionSettingObject)
        Updates the settings in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        listOfAppVersionSettingObject - A list of the updated application version settings.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation