Class SmithyBuildConfig.Builder
java.lang.Object
software.amazon.smithy.build.model.SmithyBuildConfig.Builder
- All Implemented Interfaces:
- SmithyBuilder<SmithyBuildConfig>
- Enclosing class:
- SmithyBuildConfig
public static final class SmithyBuildConfig.Builder
extends Object
implements SmithyBuilder<SmithyBuildConfig>
Builder used to create a 
SmithyBuildConfig.- 
Method SummaryModifier and TypeMethodDescriptionbuild()Creates an immutable object that is created from the properties that have been set on the builder.ignoreMissingPlugins(boolean ignoreMissingPlugins) Logs instead of failing when a plugin can't be found by name.imports(Collection<String> imports) Replaces imports on the config.lastModifiedInMillis(long lastModifiedInMillis) Loads and merges the config file into the builder.maven(MavenConfig maven) merge(SmithyBuildConfig config) Updates this configuration with the configuration of another file.outputDirectory(String outputDirectory) Set a directory where the build artifacts are written.plugins(Map<String, ObjectNode> plugins) Replaces plugins on the config.projections(Map<String, ProjectionConfig> projections) Replaces projections on the config.sources(Collection<String> sources) Replaces sources on the config.Sets the builder config file version.
- 
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<SmithyBuildConfig>
- Returns:
- an instance of T
 
- 
versionSets the builder config file version.- Parameters:
- version- Version to set.
- Returns:
- Returns the builder.
 
- 
loadLoads and merges the config file into the builder.- Parameters:
- config- Config file to load, parse, and merge.
- Returns:
- Returns the updated builder.
 
- 
mergeUpdates this configuration with the configuration of another file.- Parameters:
- config- Config to update with.
- Returns:
- Returns the builder.
 
- 
outputDirectorySet a directory where the build artifacts are written.- Parameters:
- outputDirectory- Directory where artifacts are written.
- Returns:
- Returns the builder.
 
- 
importsReplaces imports on the config.- Parameters:
- imports- Imports to set.
- Returns:
- Returns the builder.
 
- 
sourcesReplaces sources on the config.- Parameters:
- sources- Sources to set.
- Returns:
- Returns the builder.
 
- 
projectionsReplaces projections on the config.- Parameters:
- projections- Projections to set.
- Returns:
- Returns the builder.
 
- 
pluginsReplaces plugins on the config.- Parameters:
- plugins- Plugins to set.
- Returns:
- Returns the builder.
 
- 
ignoreMissingPluginsLogs instead of failing when a plugin can't be found by name.- Parameters:
- ignoreMissingPlugins- Set to true to ignore missing plugins on the classpath.
- Returns:
- Returns the builder.
 
- 
maven
- 
lastModifiedInMillis
 
-