code: public Observable<ServiceResponse<RouteFilterRuleInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String routeFilterName, String ruleName, RouteFilterRuleInner routeFilterRuleParameters) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (routeFilterName == null) {
              throw new IllegalArgumentException("Parameter routeFilterName is required and cannot be null.");
          }
          if (ruleName == null) {
              throw new IllegalArgumentException("Parameter ruleName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (routeFilterRuleParameters == null) {
              throw new IllegalArgumentException("Parameter routeFilterRuleParameters is required and cannot be null.");
          }
          Validator.validate(routeFilterRuleParameters);
          final String apiVersion = "2018-04-01";
          Observable<Response<ResponseBody>> observable = service.createOrUpdate(resourceGroupName, routeFilterName, ruleName, this.client.subscriptionId(), routeFilterRuleParameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<RouteFilterRuleInner>() { }.getType());
      }
docs: Creates or updates a route in the specified route filter.
  
  @param resourceGroupName The name of the resource group.
  @param routeFilterName The name of the route filter.
  @param ruleName The name of the route filter rule.
  @param routeFilterRuleParameters Parameters supplied to the create or update route filter rule operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request