public static final class PluginContext.Builder extends java.lang.Object implements SmithyBuilder<PluginContext>
PluginContext
.Modifier and Type | Method and Description |
---|---|
PluginContext |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
PluginContext.Builder |
events(java.util.List<ValidationEvent> events)
Sets the validation events that occurred after projecting the model.
|
PluginContext.Builder |
fileManifest(FileManifest fileManifest)
Sets the required
FileManifest to use
in the plugin. |
PluginContext.Builder |
model(Model model)
Sets the required model that is being built.
|
PluginContext.Builder |
originalModel(Model originalModel)
Sets the model that is being built before it was transformed in
the projection.
|
PluginContext.Builder |
pluginClassLoader(java.lang.ClassLoader pluginClassLoader)
Sets a ClassLoader that should be used by build plugins when loading
services.
|
PluginContext.Builder |
projection(java.lang.String name,
ProjectionConfig projection)
Sets the projection that the plugin belongs to.
|
PluginContext.Builder |
settings(ObjectNode settings)
Sets the settings of the plugin.
|
PluginContext.Builder |
sources(java.util.Collection<java.nio.file.Path> sources)
Replaces the path to models that are considered "source" models of the
package being built.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public PluginContext build()
SmithyBuilder
build
in interface SmithyBuilder<PluginContext>
public PluginContext.Builder fileManifest(FileManifest fileManifest)
FileManifest
to use
in the plugin.fileManifest
- FileManifest to use.public PluginContext.Builder model(Model model)
model
- Model to set.public PluginContext.Builder projection(java.lang.String name, ProjectionConfig projection)
name
- Name of the projection.projection
- ProjectionConfig to set.public PluginContext.Builder originalModel(Model originalModel)
originalModel
- Original Model to set.public PluginContext.Builder events(java.util.List<ValidationEvent> events)
events
- Validation events to set.public PluginContext.Builder settings(ObjectNode settings)
settings
- Settings to set.public PluginContext.Builder pluginClassLoader(java.lang.ClassLoader pluginClassLoader)
pluginClassLoader
- ClassLoader to use in build plugins.public PluginContext.Builder sources(java.util.Collection<java.nio.file.Path> sources)
sources
- Source models to set.