public static class ExecutionResultImpl.Builder extends java.lang.Object implements ExecutionResult.Builder<ExecutionResultImpl.Builder>
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExecutionResultImpl.Builder |
addError(GraphQLError error)
Adds the error to any existing the errors for this builder
|
ExecutionResultImpl.Builder |
addErrors(java.util.List<GraphQLError> errors)
Adds the error list to any existing the errors for this builder
|
ExecutionResultImpl.Builder |
addExtension(java.lang.String key,
java.lang.Object value)
Adds a new entry into the extensions map for this builder
|
ExecutionResult |
build() |
ExecutionResultImpl.Builder |
data(java.lang.Object data)
Sets new data into the builder
|
ExecutionResultImpl.Builder |
errors(java.util.List<GraphQLError> errors)
Sets error list as the errors for this builder
|
ExecutionResultImpl.Builder |
extensions(java.util.Map<java.lang.Object,java.lang.Object> extensions)
Sets the extension map for this builder
|
ExecutionResultImpl.Builder |
from(ExecutionResult executionResult)
Sets values into the builder based on a previous
ExecutionResult |
public ExecutionResultImpl.Builder from(ExecutionResult executionResult)
ExecutionResult.BuilderExecutionResultfrom in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>executionResult - the previous ExecutionResultpublic ExecutionResultImpl.Builder data(java.lang.Object data)
ExecutionResult.Builderdata in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>data - the data to usepublic ExecutionResultImpl.Builder errors(java.util.List<GraphQLError> errors)
ExecutionResult.Buildererrors in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>errors - the errors to usepublic ExecutionResultImpl.Builder addErrors(java.util.List<GraphQLError> errors)
ExecutionResult.BuilderaddErrors in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>errors - the errors to addpublic ExecutionResultImpl.Builder addError(GraphQLError error)
ExecutionResult.BuilderaddError in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>error - the error to addpublic ExecutionResultImpl.Builder extensions(java.util.Map<java.lang.Object,java.lang.Object> extensions)
ExecutionResult.Builderextensions in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>extensions - the extensions to usepublic ExecutionResultImpl.Builder addExtension(java.lang.String key, java.lang.Object value)
ExecutionResult.BuilderaddExtension in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>key - the key of the extension entryvalue - the value of the extension entrypublic ExecutionResult build()
build in interface ExecutionResult.Builder<ExecutionResultImpl.Builder>ExecutionResult