public static class GraphQLEnumType.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(GraphQLEnumType existing) |
Modifier and Type | Method and Description |
---|---|
GraphQLEnumType |
build() |
GraphQLEnumType.Builder |
clearDirectives()
This is used to clear all the directives in the builder so far.
|
GraphQLEnumType.Builder |
clearValues()
This is used to clear all the values in the builder so far.
|
GraphQLEnumType.Builder |
definition(EnumTypeDefinition definition) |
GraphQLEnumType.Builder |
description(java.lang.String description) |
boolean |
hasValue(java.lang.String name) |
GraphQLEnumType.Builder |
name(java.lang.String name) |
GraphQLEnumType.Builder |
value(GraphQLEnumValueDefinition enumValueDefinition) |
GraphQLEnumType.Builder |
value(java.lang.String name) |
GraphQLEnumType.Builder |
value(java.lang.String name,
java.lang.Object value) |
GraphQLEnumType.Builder |
value(java.lang.String name,
java.lang.Object value,
java.lang.String description) |
GraphQLEnumType.Builder |
value(java.lang.String name,
java.lang.Object value,
java.lang.String description,
java.lang.String deprecationReason) |
GraphQLEnumType.Builder |
withDirective(GraphQLDirective.Builder builder) |
GraphQLEnumType.Builder |
withDirective(GraphQLDirective directive) |
GraphQLEnumType.Builder |
withDirectives(GraphQLDirective... directives) |
public Builder()
public Builder(GraphQLEnumType existing)
public GraphQLEnumType.Builder name(java.lang.String name)
public GraphQLEnumType.Builder description(java.lang.String description)
public GraphQLEnumType.Builder definition(EnumTypeDefinition definition)
public GraphQLEnumType.Builder value(java.lang.String name, java.lang.Object value, java.lang.String description, java.lang.String deprecationReason)
public GraphQLEnumType.Builder value(java.lang.String name, java.lang.Object value, java.lang.String description)
public GraphQLEnumType.Builder value(java.lang.String name, java.lang.Object value)
public GraphQLEnumType.Builder value(java.lang.String name)
public GraphQLEnumType.Builder value(GraphQLEnumValueDefinition enumValueDefinition)
public boolean hasValue(java.lang.String name)
public GraphQLEnumType.Builder clearValues()
public GraphQLEnumType.Builder withDirectives(GraphQLDirective... directives)
public GraphQLEnumType.Builder withDirective(GraphQLDirective directive)
public GraphQLEnumType.Builder withDirective(GraphQLDirective.Builder builder)
public GraphQLEnumType.Builder clearDirectives()
public GraphQLEnumType build()