T - the type that the builder will buildB - the builder type (this)public interface SdkBuilder<B extends SdkBuilder<B,T>,T>
| Modifier and Type | Method and Description | 
|---|---|
| default B | applyMutation(Consumer<B> mutator)A convenience operator that takes something that will
 mutate the builder in some way and allows inclusion of it
 in chaining operations. | 
| T | build()An immutable object that is created from the
 properties that have been set on the builder. | 
T build()
default B applyMutation(Consumer<B> mutator)
 Builder builder = ClassBeingBuilt.builder();
 builder = Util.addSomeDetailToTheBuilder(builder);
 ClassBeingBuilt clz = builder.build();
 This can be done in a statement:
 ClassBeingBuilt = ClassBeingBuilt.builder().applyMutation(Util::addSomeDetailToTheBuilder).build();
 mutator - the function that mutates the builderCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.