Package software.amazon.smithy.build
Class SmithyBuildResult
- java.lang.Object
- 
- software.amazon.smithy.build.SmithyBuildResult
 
- 
 public final class SmithyBuildResult extends java.lang.ObjectEncapsulates the result of running SmithyBuild.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSmithyBuildResult.BuilderCreates a SmithyBuildResult.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.stream.Stream<java.nio.file.Path>allArtifacts()Gets all of the artifacts written during the build.java.util.stream.Stream<FileManifest>allManifests()Gets all of the manifests that were used in the build.booleananyBroken()Returns true if any projected models contain error or danger events.static SmithyBuildResult.Builderbuilder()Creates a builder used to build SmithyBuildResult.java.util.Optional<ProjectionResult>getProjectionResult(java.lang.String projectionName)Gets a projection result by name.java.util.List<ProjectionResult>getProjectionResults()Gets all of the projection results as an unmodifiable list.java.util.Map<java.lang.String,ProjectionResult>getProjectionResultsMap()Gets all of the projection results as a map of projection name toProjectionResult.booleanisEmpty()Checks if the results is empty.intsize()Gets the number of projection results in the map.
 
- 
- 
- 
Method Detail- 
builderpublic static SmithyBuildResult.Builder builder() Creates a builder used to build SmithyBuildResult.- Returns:
- Returns the builder.
 
 - 
anyBrokenpublic boolean anyBroken() Returns true if any projected models contain error or danger events.- Returns:
- Returns true if any are broken.
 
 - 
allArtifactspublic java.util.stream.Stream<java.nio.file.Path> allArtifacts() Gets all of the artifacts written during the build.- Returns:
- Returns a stream of paths to artifacts.
 
 - 
allManifestspublic java.util.stream.Stream<FileManifest> allManifests() Gets all of the manifests that were used in the build.- Returns:
- Returns a stream of the manifests.
 
 - 
getProjectionResultpublic java.util.Optional<ProjectionResult> getProjectionResult(java.lang.String projectionName) Gets a projection result by name.- Parameters:
- projectionName- ProjectionConfig name to get.
- Returns:
- Returns the optionally found result.
 
 - 
getProjectionResultspublic java.util.List<ProjectionResult> getProjectionResults() Gets all of the projection results as an unmodifiable list.- Returns:
- Returns the projection results.
 
 - 
getProjectionResultsMappublic java.util.Map<java.lang.String,ProjectionResult> getProjectionResultsMap() Gets all of the projection results as a map of projection name toProjectionResult.- Returns:
- Returns the projection results as a map.
 
 - 
sizepublic int size() Gets the number of projection results in the map.- Returns:
- Returns the number of results.
 
 - 
isEmptypublic boolean isEmpty() Checks if the results is empty.- Returns:
- Returns true if there are no results.
 
 
- 
 
-