Package graphql.language
Class VariableDefinition.Builder
- java.lang.Object
-
- graphql.language.VariableDefinition.Builder
-
- All Implemented Interfaces:
NodeBuilder
,NodeDirectivesBuilder
- Enclosing class:
- VariableDefinition
public static final class VariableDefinition.Builder extends java.lang.Object implements NodeDirectivesBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableDefinition.Builder
additionalData(java.lang.String key, java.lang.String value)
VariableDefinition.Builder
additionalData(java.util.Map<java.lang.String,java.lang.String> additionalData)
VariableDefinition
build()
VariableDefinition.Builder
comments(java.util.List<Comment> comments)
VariableDefinition.Builder
defaultValue(Value defaultValue)
VariableDefinition.Builder
directive(Directive directive)
VariableDefinition.Builder
directives(java.util.List<Directive> directives)
VariableDefinition.Builder
ignoredChars(IgnoredChars ignoredChars)
VariableDefinition.Builder
name(java.lang.String name)
VariableDefinition.Builder
sourceLocation(SourceLocation sourceLocation)
VariableDefinition.Builder
type(Type type)
-
-
-
Method Detail
-
sourceLocation
public VariableDefinition.Builder sourceLocation(SourceLocation sourceLocation)
- Specified by:
sourceLocation
in interfaceNodeBuilder
-
name
public VariableDefinition.Builder name(java.lang.String name)
-
comments
public VariableDefinition.Builder comments(java.util.List<Comment> comments)
- Specified by:
comments
in interfaceNodeBuilder
-
type
public VariableDefinition.Builder type(Type type)
-
defaultValue
public VariableDefinition.Builder defaultValue(Value defaultValue)
-
directives
public VariableDefinition.Builder directives(java.util.List<Directive> directives)
- Specified by:
directives
in interfaceNodeDirectivesBuilder
-
directive
public VariableDefinition.Builder directive(Directive directive)
- Specified by:
directive
in interfaceNodeDirectivesBuilder
-
ignoredChars
public VariableDefinition.Builder ignoredChars(IgnoredChars ignoredChars)
- Specified by:
ignoredChars
in interfaceNodeBuilder
-
additionalData
public VariableDefinition.Builder additionalData(java.util.Map<java.lang.String,java.lang.String> additionalData)
- Specified by:
additionalData
in interfaceNodeBuilder
-
additionalData
public VariableDefinition.Builder additionalData(java.lang.String key, java.lang.String value)
- Specified by:
additionalData
in interfaceNodeBuilder
-
build
public VariableDefinition build()
-
-