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 Object
implements SmithyBuilder<ProjectionResult>
Builds up a 
ProjectionResult.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddEvent(ValidationEvent event) Adds validation events to the result.addPluginManifest(String pluginName, FileManifest manifest) Adds a plugin result.build()Creates an immutable object that is created from the properties that have been set on the builder.events(List<ValidationEvent> events) Sets the validation events of the projection.Sets the required model that was projected.projectionName(String projectionName) Sets the required projection name.
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
buildDescription 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
 
- 
modelSets the required model that was projected.- Parameters:
- model- Model to set.
- Returns:
- Returns the builder.
 
- 
projectionNameSets the required projection name.- Parameters:
- projectionName- ProjectionConfig name to set.
- Returns:
- Returns the builder.
 
- 
addPluginManifestAdds a plugin result.- Parameters:
- pluginName- Name of the plugin.
- manifest- File manifest used by the plugin.
- Returns:
- Returns the builder.
 
- 
addEventAdds validation events to the result.- Parameters:
- event- Validation event to add.
- Returns:
- Returns the builder.
 
- 
eventsSets the validation events of the projection.- Parameters:
- events- Validation events to set.
- Returns:
- Returns the builder.
 
 
-