code: public Observable<ServiceResponse<OrderInner>> createOrUpdateWithServiceResponseAsync(String deviceName, String resourceGroupName, OrderInner order) {
          if (deviceName == null) {
              throw new IllegalArgumentException("Parameter deviceName 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 (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (order == null) {
              throw new IllegalArgumentException("Parameter order is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          Validator.validate(order);
          Observable<Response<ResponseBody>> observable = service.createOrUpdate(deviceName, this.client.subscriptionId(), resourceGroupName, order, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<OrderInner>() { }.getType());
      }
docs: Creates or updates an order.
  
  @param deviceName The device name.
  @param resourceGroupName The resource group name.
  @param order The order to be created or updated.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request