code: public Observable<ServiceResponse<BuildInner>> beginQueueBuildWithServiceResponseAsync(String resourceGroupName, String registryName, QueueBuildRequest buildRequest) {
          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 (registryName == null) {
              throw new IllegalArgumentException("Parameter registryName is required and cannot be null.");
          }
          if (buildRequest == null) {
              throw new IllegalArgumentException("Parameter buildRequest is required and cannot be null.");
          }
          Validator.validate(buildRequest);
          final String apiVersion = "2018-02-01-preview";
          return service.beginQueueBuild(this.client.subscriptionId(), resourceGroupName, registryName, apiVersion, buildRequest, this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<BuildInner>>>() {
                  @Override
                  public Observable<ServiceResponse<BuildInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<BuildInner> clientResponse = beginQueueBuildDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Creates a new build based on the request parameters and add it to the build queue.
  
  @param resourceGroupName The name of the resource group to which the container registry belongs.
  @param registryName The name of the container registry.
  @param buildRequest The parameters of a build that needs to queued.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the BuildInner object