code: public Observable<ServiceResponse<ReplicationInner>> updateWithServiceResponseAsync(String resourceGroupName, String registryName, String replicationName) {
          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 (replicationName == null) {
              throw new IllegalArgumentException("Parameter replicationName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          final Map<String, String> tags = null;
          ReplicationUpdateParameters replicationUpdateParameters = new ReplicationUpdateParameters();
          replicationUpdateParameters.withTags(null);
          Observable<Response<ResponseBody>> observable = service.update(this.client.subscriptionId(), resourceGroupName, registryName, replicationName, this.client.apiVersion(), this.client.acceptLanguage(), replicationUpdateParameters, this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<ReplicationInner>() { }.getType());
      }
docs: Updates a replication for a container registry with the specified parameters.
  
  @param resourceGroupName The name of the resource group to which the container registry belongs.
  @param registryName The name of the container registry.
  @param replicationName The name of the replication.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request