public final <O> @NonNull MappedAggregateParserBuilder<C, O> withMapper(
            final @NonNull Class<O> valueType,
            final @NonNull AggregateResultMapper<C, O> mapper
    ) {
        return new MappedAggregateParserBuilder<>(this.components(), TypeToken.get(valueType), mapper);
    }
Returns a new builder with the given {@code mapper}.

@param <O>       the type produced by the mapper
@param valueType the type produced by the mapper
@param mapper    the mapper
@return the new builder
cloud-core/src/main/java/org/incendo/cloud/parser/aggregate/AggregateParserBuilder.java