Package graphql.schema
Class GraphQLAppliedDirective.Builder
java.lang.Object
graphql.schema.GraphqlTypeBuilder<GraphQLAppliedDirective.Builder>
graphql.schema.GraphQLAppliedDirective.Builder
- Enclosing class:
GraphQLAppliedDirective
public static class GraphQLAppliedDirective.Builder
extends GraphqlTypeBuilder<GraphQLAppliedDirective.Builder>
-
Field Summary
Fields inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargument
(GraphQLAppliedDirectiveArgument argument) Same effect as the argument(GraphQLAppliedDirectiveArgument).argument
(UnaryOperator<GraphQLAppliedDirectiveArgument.Builder> builderFunction) Take an argument builder in a function definition and apply.build()
This is used to clear all the arguments in the builder so far.definition
(Directive definition) replaceArguments
(List<GraphQLAppliedDirectiveArgument> arguments) Methods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry, description, name
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
argument
-
replaceArguments
public GraphQLAppliedDirective.Builder replaceArguments(List<GraphQLAppliedDirectiveArgument> arguments) -
argument
public GraphQLAppliedDirective.Builder argument(UnaryOperator<GraphQLAppliedDirectiveArgument.Builder> builderFunction) Take an argument builder in a function definition and apply. Can be used in a jdk8 lambda e.g.:argument(a -> a.name("argumentName"))
- Parameters:
builderFunction
- a supplier for the builder impl- Returns:
- this
-
argument
Same effect as the argument(GraphQLAppliedDirectiveArgument). Builder.build() is called from within- Parameters:
builder
- an un-built/incomplete GraphQLAppliedDirectiveArgument- Returns:
- this
-
clearArguments
This is used to clear all the arguments in the builder so far.- Returns:
- the builder
-
definition
-
build
-