Package software.amazon.smithy.build
Class PluginContext.Builder
java.lang.Object
software.amazon.smithy.build.PluginContext.Builder
- All Implemented Interfaces:
- SmithyBuilder<PluginContext>
- Enclosing class:
- PluginContext
public static final class PluginContext.Builder
extends Object
implements SmithyBuilder<PluginContext>
Builds a 
PluginContext.- 
Method SummaryModifier and TypeMethodDescriptionbuild()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 that occurred after projecting the model.fileManifest(FileManifest fileManifest) Sets the requiredFileManifestto use in the plugin.Sets the required model that is being built.originalModel(Model originalModel) Sets the model that is being built before it was transformed in the projection.pluginClassLoader(ClassLoader pluginClassLoader) Sets a ClassLoader that should be used by build plugins when loading services.projection(String name, ProjectionConfig projection) Sets the projection that the plugin belongs to.settings(ObjectNode settings) Sets the settings of the plugin.sources(Collection<Path> sources) Replaces the path to models that are considered "source" models of the package being built.
- 
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<PluginContext>
- Returns:
- an instance of T
 
- 
fileManifestSets the requiredFileManifestto use in the plugin.- Parameters:
- fileManifest- FileManifest to use.
- Returns:
- Returns the builder.
 
- 
modelSets the required model that is being built.- Parameters:
- model- Model to set.
- Returns:
- Returns the builder.
 
- 
projectionSets the projection that the plugin belongs to.- Parameters:
- name- Name of the projection.
- projection- ProjectionConfig to set.
- Returns:
- Returns the builder.
 
- 
originalModelSets the model that is being built before it was transformed in the projection.- Parameters:
- originalModel- Original Model to set.
- Returns:
- Returns the builder.
 
- 
eventsSets the validation events that occurred after projecting the model.- Parameters:
- events- Validation events to set.
- Returns:
- Returns the builder.
 
- 
settingsSets the settings of the plugin.- Parameters:
- settings- Settings to set.
- Returns:
- Returns the builder.
 
- 
pluginClassLoaderSets a ClassLoader that should be used by build plugins when loading services.- Parameters:
- pluginClassLoader- ClassLoader to use in build plugins.
- Returns:
- Retruns the builder.
 
- 
sourcesReplaces the path to models that are considered "source" models of the package being built.- Parameters:
- sources- Source models to set.
- Returns:
- Returns the builder.
 
 
-