Package software.amazon.smithy.build
Class ProjectionResult.Builder
- java.lang.Object
-
- software.amazon.smithy.build.ProjectionResult.Builder
-
- All Implemented Interfaces:
software.amazon.smithy.utils.SmithyBuilder<ProjectionResult>
- Enclosing class:
- ProjectionResult
public static final class ProjectionResult.Builder extends java.lang.Object implements software.amazon.smithy.utils.SmithyBuilder<ProjectionResult>
Builds up aProjectionResult
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectionResult.Builder
addEvent(software.amazon.smithy.model.validation.ValidationEvent event)
Adds validation events to the result.ProjectionResult.Builder
addPluginManifest(java.lang.String pluginName, FileManifest manifest)
Adds a plugin result.ProjectionResult
build()
ProjectionResult.Builder
events(java.util.List<software.amazon.smithy.model.validation.ValidationEvent> events)
Sets the validation events of the projection.ProjectionResult.Builder
model(software.amazon.smithy.model.Model model)
Sets the required model that was projected.ProjectionResult.Builder
projectionName(java.lang.String projectionName)
Sets the required projection name.
-
-
-
Method Detail
-
build
public ProjectionResult build()
- Specified by:
build
in interfacesoftware.amazon.smithy.utils.SmithyBuilder<ProjectionResult>
-
model
public ProjectionResult.Builder model(software.amazon.smithy.model.Model model)
Sets the required model that was projected.- Parameters:
model
- Model to set.- Returns:
- Returns the builder.
-
projectionName
public ProjectionResult.Builder projectionName(java.lang.String projectionName)
Sets the required projection name.- Parameters:
projectionName
- ProjectionConfig name to set.- Returns:
- Returns the builder.
-
addPluginManifest
public ProjectionResult.Builder addPluginManifest(java.lang.String pluginName, FileManifest manifest)
Adds a plugin result.- Parameters:
pluginName
- Name of the plugin.manifest
- File manifest used by the plugin.- Returns:
- Returns the builder.
-
addEvent
public ProjectionResult.Builder addEvent(software.amazon.smithy.model.validation.ValidationEvent event)
Adds validation events to the result.- Parameters:
event
- Validation event to add.- Returns:
- Returns the builder.
-
events
public ProjectionResult.Builder events(java.util.List<software.amazon.smithy.model.validation.ValidationEvent> events)
Sets the validation events of the projection.- Parameters:
events
- Validation events to set.- Returns:
- Returns the builder.
-
-