code: public Observable<ServiceResponse<ProtectionContainerResourceInner>> registerWithServiceResponseAsync(String vaultName, String resourceGroupName, String fabricName, String containerName, ProtectionContainerResourceInner parameters) {
          if (vaultName == null) {
              throw new IllegalArgumentException("Parameter vaultName is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName 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 (fabricName == null) {
              throw new IllegalArgumentException("Parameter fabricName is required and cannot be null.");
          }
          if (containerName == null) {
              throw new IllegalArgumentException("Parameter containerName is required and cannot be null.");
          }
          if (parameters == null) {
              throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
          }
          Validator.validate(parameters);
          final String apiVersion = "2016-12-01";
          return service.register(vaultName, resourceGroupName, this.client.subscriptionId(), fabricName, containerName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ProtectionContainerResourceInner>>>() {
                  @Override
                  public Observable<ServiceResponse<ProtectionContainerResourceInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<ProtectionContainerResourceInner> clientResponse = registerDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Registers the container with Recovery Services vault.
  This is an asynchronous operation. To track the operation status, use location header to call get latest status of the operation.
  
  @param vaultName The name of the recovery services vault.
  @param resourceGroupName The name of the resource group where the recovery services vault is present.
  @param fabricName Fabric name associated with the container.
  @param containerName Name of the container to be registered.
  @param parameters Request body for operation
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ProtectionContainerResourceInner object