Package graphql.schema
Class GraphQLEnumType.Builder
java.lang.Object
graphql.schema.GraphqlTypeBuilder<GraphQLEnumType.Builder>
graphql.schema.GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
graphql.schema.GraphQLEnumType.Builder
- Enclosing class:
GraphQLEnumType
public static class GraphQLEnumType.Builder
extends GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
-
Field Summary
Fields inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
appliedDirectives, directivesFields inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()This is used to clear all the directives in the builder so far.This is used to clear all the values in the builder so far.definition(EnumTypeDefinition definition) description(String description) extensionDefinitions(List<EnumTypeExtensionDefinition> extensionDefinitions) booleanreplaceDirectives(List<GraphQLDirective> directives) replaceValues(List<GraphQLEnumValueDefinition> valueDefinitions) value(GraphQLEnumValueDefinition enumValueDefinition) values(List<GraphQLEnumValueDefinition> valueDefinitions) withDirective(GraphQLDirective directive) withDirective(GraphQLDirective.Builder builder) withDirectives(GraphQLDirective... directives) Methods inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectivesMethods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
definition
-
extensionDefinitions
public GraphQLEnumType.Builder extensionDefinitions(List<EnumTypeExtensionDefinition> extensionDefinitions) -
value
public GraphQLEnumType.Builder value(String name, Object value, String description, String deprecationReason) -
value
-
value
-
value
-
values
-
replaceValues
-
value
-
hasValue
-
clearValues
This is used to clear all the values in the builder so far.- Returns:
- the builder
-
replaceDirectives
- Overrides:
replaceDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder> - Parameters:
directives- the list of directives- Returns:
- this builder
-
withDirectives
- Overrides:
withDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder> - Parameters:
directives- the variable args of directives- Returns:
- this builder
-
withDirective
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder> - Parameters:
directive- the directive to add- Returns:
- this builder
-
withDirective
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder> - Parameters:
builder- the directive builder- Returns:
- this builder
-
clearDirectives
Description copied from class:GraphqlDirectivesContainerTypeBuilderThis is used to clear all the directives in the builder so far.- Overrides:
clearDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder> - Returns:
- the builder
-
name
- Overrides:
namein classGraphqlTypeBuilder<GraphQLEnumType.Builder>
-
description
- Overrides:
descriptionin classGraphqlTypeBuilder<GraphQLEnumType.Builder>
-
build
-