@PublicApi public class ExecutionInput extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionInput.Builder |
Constructor and Description |
---|
ExecutionInput(java.lang.String query,
java.lang.String operationName,
java.lang.Object context,
java.lang.Object root,
java.util.Map<java.lang.String,java.lang.Object> variables) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContext() |
java.lang.String |
getOperationName() |
java.lang.String |
getQuery() |
java.lang.Object |
getRoot() |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables() |
static ExecutionInput.Builder |
newExecutionInput() |
java.lang.String |
toString() |
ExecutionInput |
transform(java.util.function.Consumer<ExecutionInput.Builder> builderConsumer)
This helps you transform the current ExecutionInput object into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
public ExecutionInput(java.lang.String query, java.lang.String operationName, java.lang.Object context, java.lang.Object root, java.util.Map<java.lang.String,java.lang.Object> variables)
public java.lang.String getQuery()
public java.lang.String getOperationName()
public java.lang.Object getContext()
public java.lang.Object getRoot()
public java.util.Map<java.lang.String,java.lang.Object> getVariables()
public ExecutionInput transform(java.util.function.Consumer<ExecutionInput.Builder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformpublic java.lang.String toString()
toString
in class java.lang.Object
public static ExecutionInput.Builder newExecutionInput()