Package software.amazon.smithy.build
Class ProjectionResult.Builder
- java.lang.Object
- 
- software.amazon.smithy.build.ProjectionResult.Builder
 
- 
- All Implemented Interfaces:
- SmithyBuilder<ProjectionResult>
 - Enclosing class:
- ProjectionResult
 
 public static final class ProjectionResult.Builder extends java.lang.Object implements SmithyBuilder<ProjectionResult> Builds up aProjectionResult.
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectionResult.BuilderaddEvent(ValidationEvent event)Adds validation events to the result.ProjectionResult.BuilderaddPluginManifest(java.lang.String artifactName, FileManifest manifest)Adds an artifact result for a plugin.ProjectionResultbuild()Creates an immutable object that is created from the properties that have been set on the builder.ProjectionResult.Builderevents(java.util.List<ValidationEvent> events)Sets the validation events of the projection.ProjectionResult.Buildermodel(Model model)Sets the required model that was projected.ProjectionResult.BuilderprojectionName(java.lang.String projectionName)Sets the required projection name.
 
- 
- 
- 
Method Detail- 
buildpublic ProjectionResult build() Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Specified by:
- buildin interface- SmithyBuilder<ProjectionResult>
- Returns:
- an instance of T
 
 - 
modelpublic ProjectionResult.Builder model(Model model) Sets the required model that was projected.- Parameters:
- model- Model to set.
- Returns:
- Returns the builder.
 
 - 
projectionNamepublic ProjectionResult.Builder projectionName(java.lang.String projectionName) Sets the required projection name.- Parameters:
- projectionName- ProjectionConfig name to set.
- Returns:
- Returns the builder.
 
 - 
addPluginManifestpublic ProjectionResult.Builder addPluginManifest(java.lang.String artifactName, FileManifest manifest) Adds an artifact result for a plugin.If no artifact name is configured for a plugin in smithy-build.json (e.g., "plugin::artifact"), the artifact name defaults to the plugin name. - Parameters:
- artifactName- Name of the plugin artifact to set.
- manifest- File manifest used by the plugin.
- Returns:
- Returns the builder.
 
 - 
addEventpublic ProjectionResult.Builder addEvent(ValidationEvent event) Adds validation events to the result.- Parameters:
- event- Validation event to add.
- Returns:
- Returns the builder.
 
 - 
eventspublic ProjectionResult.Builder events(java.util.List<ValidationEvent> events) Sets the validation events of the projection.- Parameters:
- events- Validation events to set.
- Returns:
- Returns the builder.
 
 
- 
 
-