I want to turn this Java code into Clojure
S3Client.builder()
.serviceConfiguration(S3Configuration.builder()
.pathStyleAccessEnabled(true)
.build())
.build();
The Problem: .seviceConfiguration
takes a java.util.function.Conumser
.
default B serviceConfiguration(Consumer<S3Configuration.Builder> serviceConfiguration)
The .servcieConfiguration method
is defined here AWS SDK serviceConfiguration
I tried to use reify
without much luck.
Maybe someone can point me into the right direction, or has already used this specific part of the API.
And can someone tell me why, is an API design like this advantageous for Java Developers, what is the point of this Construct?