public static class GraphQLEnumType.Builder extends GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
appliedDirectives, directives
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLEnumType existing) |
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectives
comparatorRegistry
public Builder()
public Builder(GraphQLEnumType existing)
public GraphQLEnumType.Builder definition(EnumTypeDefinition definition)
public GraphQLEnumType.Builder extensionDefinitions(java.util.List<EnumTypeExtensionDefinition> extensionDefinitions)
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 values(java.util.List<GraphQLEnumValueDefinition> valueDefinitions)
public GraphQLEnumType.Builder replaceValues(java.util.List<GraphQLEnumValueDefinition> valueDefinitions)
public GraphQLEnumType.Builder value(GraphQLEnumValueDefinition enumValueDefinition)
public boolean hasValue(java.lang.String name)
public GraphQLEnumType.Builder clearValues()
public GraphQLEnumType.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
replaceDirectives
in class GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
directives
- the list of directivespublic GraphQLEnumType.Builder withDirectives(GraphQLDirective... directives)
withDirectives
in class GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
directives
- the variable args of directivespublic GraphQLEnumType.Builder withDirective(GraphQLDirective directive)
withDirective
in class GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
directive
- the directive to addpublic GraphQLEnumType.Builder withDirective(GraphQLDirective.Builder builder)
withDirective
in class GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
builder
- the directive builderpublic GraphQLEnumType.Builder clearDirectives()
GraphqlDirectivesContainerTypeBuilder
clearDirectives
in class GraphqlDirectivesContainerTypeBuilder<GraphQLEnumType.Builder,GraphQLEnumType.Builder>
public GraphQLEnumType.Builder name(java.lang.String name)
name
in class GraphqlTypeBuilder<GraphQLEnumType.Builder>
public GraphQLEnumType.Builder description(java.lang.String description)
description
in class GraphqlTypeBuilder<GraphQLEnumType.Builder>
public GraphQLEnumType build()