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 java.lang.Object implements SmithyBuilder<SmithyBuildResult>
Creates a SmithyBuildResult.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SmithyBuildResult.Builder
addProjectionResult(ProjectionResult result)
Adds a projection result to the builder.SmithyBuildResult
build()
Creates an immutable object that is created from the properties that have been set on the builder.
-
-
-
Method Detail
-
build
public SmithyBuildResult 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
public SmithyBuildResult.Builder addProjectionResult(ProjectionResult result)
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.
-
-