docs: public void setFilter(ReplicationFilter filter) {
          if (filter == null) {
              throw new IllegalArgumentException(
                      "Filter cannot be null for a replication rule");
          }
          if (prefix != null) {
              throw new IllegalArgumentException(
                      "You cannot use both prefix and filter at the same time in a replication rule");
          }
          this.filter = filter;
      }