+
+ public static class WriterParametersBuilder {
+ private Optional<Integer> depth = Optional.absent();
+ private boolean prettyPrint;
+
+ public WriterParametersBuilder() {
+ }
+
+ public Optional<Integer> getDepth() {
+ return depth;
+ }
+
+ public WriterParametersBuilder setDepth(final int depth) {
+ this.depth = Optional.of(depth);
+ return this;
+ }
+
+ public boolean isPrettyPrint() {
+ return prettyPrint;
+ }
+
+ public WriterParametersBuilder setPrettyPrint(final boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ return this;
+ }
+
+ public WriterParameters build() {
+ return new WriterParameters(this);
+ }
+ }