Package software.amazon.smithy.build
Class SmithyBuildResult
java.lang.Object
software.amazon.smithy.build.SmithyBuildResult
Encapsulates the result of running SmithyBuild.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Creates a SmithyBuildResult. -
Method Summary
Modifier and TypeMethodDescriptionGets all of the artifacts written during the build.Gets all of the manifests that were used in the build.boolean
Returns true if any projected models contain error or danger events.static SmithyBuildResult.Builder
builder()
Creates a builder used to build SmithyBuildResult.getProjectionResult
(String projectionName) Gets a projection result by name.Gets all of the projection results as an unmodifiable list.Gets all of the projection results as a map of projection name toProjectionResult
.boolean
isEmpty()
Checks if the results is empty.int
size()
Gets the number of projection results in the map.
-
Method Details
-
builder
Creates a builder used to build SmithyBuildResult.- Returns:
- Returns the builder.
-
anyBroken
public boolean anyBroken()Returns true if any projected models contain error or danger events.- Returns:
- Returns true if any are broken.
-
allArtifacts
Gets all of the artifacts written during the build.- Returns:
- Returns a stream of paths to artifacts.
-
allManifests
Gets all of the manifests that were used in the build.- Returns:
- Returns a stream of the manifests.
-
getProjectionResult
Gets a projection result by name.- Parameters:
projectionName
- ProjectionConfig name to get.- Returns:
- Returns the optionally found result.
-
getProjectionResults
Gets all of the projection results as an unmodifiable list.- Returns:
- Returns the projection results.
-
getProjectionResultsMap
Gets all of the projection results as a map of projection name toProjectionResult
.- Returns:
- Returns the projection results as a map.
-
size
public int size()Gets the number of projection results in the map.- Returns:
- Returns the number of results.
-
isEmpty
public boolean isEmpty()Checks if the results is empty.- Returns:
- Returns true if there are no results.
-