Class SettingsImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.SettingsImpl
-
-
Constructor Summary
Constructors Constructor Description SettingsImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of SettingsImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AppVersionSettingObject>
list(UUID appId, String versionId)
Gets the settings in a version of the application.rx.Observable<List<AppVersionSettingObject>>
listAsync(UUID appId, String versionId)
Gets the settings in a version of the application.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.rx.Observable<com.microsoft.rest.ServiceResponse<List<AppVersionSettingObject>>>
listWithServiceResponseAsync(UUID appId, String versionId)
Gets the settings in a version of the application.OperationStatus
update(UUID appId, String versionId, List<AppVersionSettingObject> listOfAppVersionSettingObject)
Updates the settings in a version of the application.rx.Observable<OperationStatus>
updateAsync(UUID appId, String versionId, List<AppVersionSettingObject> listOfAppVersionSettingObject)
Updates the settings in a version of the application.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.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
updateWithServiceResponseAsync(UUID appId, String versionId, List<AppVersionSettingObject> listOfAppVersionSettingObject)
Updates the settings in a version of the application.
-
-
-
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
-
list
public List<AppVersionSettingObject> list(UUID appId, String versionId)
Gets the settings in a version of the application.- Specified by:
list
in interfaceSettings
- Parameters:
appId
- The application ID.versionId
- The version ID.- Returns:
- the List<AppVersionSettingObject> 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
-
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 interfaceSettings
- 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 interfaceSettings
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 interfaceSettings
- 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
-
-