public static final class ProjectionResult.Builder extends java.lang.Object implements SmithyBuilder<ProjectionResult>
ProjectionResult
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProjectionResult.Builder |
addEvent(ValidationEvent event)
Adds validation events to the result.
|
ProjectionResult.Builder |
addPluginManifest(java.lang.String pluginName,
FileManifest manifest)
Adds a plugin result.
|
ProjectionResult |
build()
Creates an immutable object that is created from the properties
that have been set on the builder.
|
ProjectionResult.Builder |
events(java.util.List<ValidationEvent> events)
Sets the validation events of the projection.
|
ProjectionResult.Builder |
model(Model model)
Sets the required model that was projected.
|
ProjectionResult.Builder |
projectionName(java.lang.String projectionName)
Sets the required projection name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requiredState
public ProjectionResult build()
SmithyBuilder
build
in interface SmithyBuilder<ProjectionResult>
public ProjectionResult.Builder model(Model model)
model
- Model to set.public ProjectionResult.Builder projectionName(java.lang.String projectionName)
projectionName
- ProjectionConfig name to set.public ProjectionResult.Builder addPluginManifest(java.lang.String pluginName, FileManifest manifest)
pluginName
- Name of the plugin.manifest
- File manifest used by the plugin.public ProjectionResult.Builder addEvent(ValidationEvent event)
event
- Validation event to add.public ProjectionResult.Builder events(java.util.List<ValidationEvent> events)
events
- Validation events to set.