code: public Observable<ServiceResponse<String>> importMethodWithServiceResponseAsync(UUID appId, LuisApp luisApp, ImportMethodVersionsOptionalParameter importMethodOptionalParameter) {
          if (this.client.endpoint() == null) {
              throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
          }
          if (appId == null) {
              throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
          }
          if (luisApp == null) {
              throw new IllegalArgumentException("Parameter luisApp is required and cannot be null.");
          }
          Validator.validate(luisApp);
          final String versionId = importMethodOptionalParameter != null ? importMethodOptionalParameter.versionId() : null;
  
          return importMethodWithServiceResponseAsync(appId, luisApp, versionId);
      }
docs: Imports a new version into a LUIS application.
  
  @param appId The application ID.
  @param luisApp A LUIS application structure.
  @param importMethodOptionalParameter the object representing the optional parameters to be set before calling this API
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the String object