Package graphql.schema
Class GraphQLEnumValueDefinition.Builder
- java.lang.Object
-
- graphql.schema.GraphqlTypeBuilder<BASE>
-
- graphql.schema.GraphqlDirectivesContainerTypeBuilder<GraphQLEnumValueDefinition.Builder,GraphQLEnumValueDefinition.Builder>
-
- graphql.schema.GraphQLEnumValueDefinition.Builder
-
- Enclosing class:
- GraphQLEnumValueDefinition
@PublicApi public static class GraphQLEnumValueDefinition.Builder extends GraphqlDirectivesContainerTypeBuilder<GraphQLEnumValueDefinition.Builder,GraphQLEnumValueDefinition.Builder>
-
-
Field Summary
-
Fields inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
appliedDirectives, directives
-
Fields inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GraphQLEnumValueDefinition existing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLEnumValueDefinition
build()
GraphQLEnumValueDefinition.Builder
clearDirectives()
This is used to clear all the directives in the builder so far.GraphQLEnumValueDefinition.Builder
definition(EnumValueDefinition definition)
GraphQLEnumValueDefinition.Builder
deprecationReason(java.lang.String deprecationReason)
GraphQLEnumValueDefinition.Builder
description(java.lang.String description)
GraphQLEnumValueDefinition.Builder
name(java.lang.String name)
GraphQLEnumValueDefinition.Builder
replaceDirectives(java.util.List<GraphQLDirective> directives)
GraphQLEnumValueDefinition.Builder
value(java.lang.Object value)
GraphQLEnumValueDefinition.Builder
withDirective(GraphQLDirective directive)
GraphQLEnumValueDefinition.Builder
withDirective(GraphQLDirective.Builder builder)
GraphQLEnumValueDefinition.Builder
withDirectives(GraphQLDirective... directives)
-
Methods inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectives
-
Methods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry
-
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GraphQLEnumValueDefinition existing)
-
-
Method Detail
-
value
public GraphQLEnumValueDefinition.Builder value(java.lang.Object value)
-
deprecationReason
public GraphQLEnumValueDefinition.Builder deprecationReason(java.lang.String deprecationReason)
-
definition
public GraphQLEnumValueDefinition.Builder definition(EnumValueDefinition definition)
-
replaceDirectives
public GraphQLEnumValueDefinition.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
- Overrides:
replaceDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumValueDefinition.Builder,GraphQLEnumValueDefinition.Builder>
- Parameters:
directives
- the list of directives- Returns:
- this builder
-
withDirectives
public GraphQLEnumValueDefinition.Builder withDirectives(GraphQLDirective... directives)
- Overrides:
withDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumValueDefinition.Builder,GraphQLEnumValueDefinition.Builder>
- Parameters:
directives
- the variable args of directives- Returns:
- this builder
-
withDirective
public GraphQLEnumValueDefinition.Builder withDirective(GraphQLDirective directive)
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumValueDefinition.Builder,GraphQLEnumValueDefinition.Builder>
- Parameters:
directive
- the directive to add- Returns:
- this builder
-
withDirective
public GraphQLEnumValueDefinition.Builder withDirective(GraphQLDirective.Builder builder)
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumValueDefinition.Builder,GraphQLEnumValueDefinition.Builder>
- Parameters:
builder
- the directive builder- Returns:
- this builder
-
clearDirectives
public GraphQLEnumValueDefinition.Builder clearDirectives()
Description copied from class:GraphqlDirectivesContainerTypeBuilder
This is used to clear all the directives in the builder so far.- Overrides:
clearDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLEnumValueDefinition.Builder,GraphQLEnumValueDefinition.Builder>
- Returns:
- the builder
-
name
public GraphQLEnumValueDefinition.Builder name(java.lang.String name)
- Overrides:
name
in classGraphqlTypeBuilder<GraphQLEnumValueDefinition.Builder>
-
description
public GraphQLEnumValueDefinition.Builder description(java.lang.String description)
- Overrides:
description
in classGraphqlTypeBuilder<GraphQLEnumValueDefinition.Builder>
-
build
public GraphQLEnumValueDefinition build()
-
-