Package software.amazon.smithy.build
Class SmithyBuildResult.Builder
java.lang.Object
software.amazon.smithy.build.SmithyBuildResult.Builder
- All Implemented Interfaces:
SmithyBuilder<SmithyBuildResult>
- Enclosing class:
- SmithyBuildResult
public static final class SmithyBuildResult.Builder
extends Object
implements SmithyBuilder<SmithyBuildResult>
Creates a SmithyBuildResult.
-
Method Summary
Modifier and TypeMethodDescriptionaddProjectionResult
(ProjectionResult result) Adds a projection result to the builder.build()
Creates an immutable object that is created from the properties that have been set on the builder.
-
Method Details
-
build
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<SmithyBuildResult>
- Returns:
- an instance of T
-
addProjectionResult
Adds a projection result to the builder.This method is thread-safe as a synchronized list is updated each time this is called.
- Parameters:
result
- Result to add.- Returns:
- Returns the builder.
-