Package software.amazon.smithy.utils
Interface ToSmithyBuilder<T>
- Type Parameters:
T- the type that the builder will build (this)
public interface ToSmithyBuilder<T>
Provides a way to get from an instance of T to a
SmithyBuilder.
This allows modification of an otherwise immutable object using the source object as a base.
-
Method Summary
Modifier and TypeMethodDescriptionTake this object and create a builder that contains all of the current property values of this object.
-
Method Details
-
toBuilder
SmithyBuilder<T> toBuilder()Take this object and create a builder that contains all of the current property values of this object.- Returns:
- a builder for type T
-