Class ProjectionConfig.Builder
- java.lang.Object
-
- software.amazon.smithy.build.model.ProjectionConfig.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ProjectionConfig>
- Enclosing class:
- ProjectionConfig
public static final class ProjectionConfig.Builder extends java.lang.Object implements SmithyBuilder<ProjectionConfig>
Builds aProjectionConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectionConfig
build()
Builds the projection.ProjectionConfig.Builder
imports(java.util.Collection<java.lang.String> imports)
Replaces the imports of the projection.ProjectionConfig.Builder
plugins(java.util.Map<java.lang.String,ObjectNode> plugins)
Replaces the plugins of the projection.ProjectionConfig.Builder
setAbstract(boolean isAbstract)
Sets theabstract
property of the projection.ProjectionConfig.Builder
transforms(java.util.Collection<TransformConfig> transforms)
Replaces the transforms of the projection.
-
-
-
Method Detail
-
build
public ProjectionConfig build()
Builds the projection.- Specified by:
build
in interfaceSmithyBuilder<ProjectionConfig>
- Returns:
- Returns the created projection.
-
setAbstract
public ProjectionConfig.Builder setAbstract(boolean isAbstract)
Sets theabstract
property of the projection.Abstract projections do not directly create any artifacts.
- Parameters:
isAbstract
- Set to true to mark as abstract.- Returns:
- Returns the builder.
-
imports
public ProjectionConfig.Builder imports(java.util.Collection<java.lang.String> imports)
Replaces the imports of the projection.- Parameters:
imports
- Imports to set.- Returns:
- Returns the builder.
-
transforms
public ProjectionConfig.Builder transforms(java.util.Collection<TransformConfig> transforms)
Replaces the transforms of the projection.- Parameters:
transforms
- Transform to set.- Returns:
- Returns the builder.
-
plugins
public ProjectionConfig.Builder plugins(java.util.Map<java.lang.String,ObjectNode> plugins)
Replaces the plugins of the projection.- Parameters:
plugins
- Map of plugin name to plugin settings.- Returns:
- Returns the builder.
-
-