T
- the type that the builder will build (this)B
- the builder typepublic interface ToCopyableBuilder<B extends CopyableBuilder<B,T>,T extends ToCopyableBuilder<B,T>>
CopyableBuilder
. This allows
modification of an otherwise immutable object using the source object as a base.Modifier and Type | Method and Description |
---|---|
default T |
copy(Consumer<? super B> modifier)
A convenience method for calling
toBuilder() , updating the returned builder and then calling
SdkBuilder.build() . |
B |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
B toBuilder()
default T copy(Consumer<? super B> modifier)
toBuilder()
, updating the returned builder and then calling
SdkBuilder.build()
. This is useful for making small modifications to the existing object.modifier
- A function that mutates this immutable object using the provided builder.Copyright © 2020. All rights reserved.