public static class GraphQLDirective.Builder extends GraphqlTypeBuilder
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLDirective existing) |
Modifier and Type | Method and Description |
---|---|
GraphQLDirective.Builder |
argument(GraphQLArgument.Builder builder)
Same effect as the argument(GraphQLArgument).
|
GraphQLDirective.Builder |
argument(GraphQLArgument argument) |
GraphQLDirective.Builder |
argument(java.util.function.UnaryOperator<GraphQLArgument.Builder> builderFunction)
Take an argument builder in a function definition and apply.
|
GraphQLDirective |
build() |
GraphQLDirective.Builder |
clearArguments()
This is used to clear all the arguments in the builder so far.
|
GraphQLDirective.Builder |
clearValidLocations() |
GraphQLDirective.Builder |
comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry) |
GraphQLDirective.Builder |
description(java.lang.String description) |
GraphQLDirective.Builder |
name(java.lang.String name) |
GraphQLDirective.Builder |
onField(boolean onField)
Deprecated.
Use
graphql.schema.GraphQLDirective.Builder#validLocations(DirectiveLocation...) |
GraphQLDirective.Builder |
onFragment(boolean onFragment)
Deprecated.
Use
graphql.schema.GraphQLDirective.Builder#validLocations(DirectiveLocation...) |
GraphQLDirective.Builder |
onOperation(boolean onOperation)
Deprecated.
Use
graphql.schema.GraphQLDirective.Builder#validLocations(DirectiveLocation...) |
GraphQLDirective.Builder |
replaceArguments(java.util.List<GraphQLArgument> arguments) |
GraphQLDirective.Builder |
validLocation(Introspection.DirectiveLocation validLocation) |
GraphQLDirective.Builder |
validLocations(Introspection.DirectiveLocation... validLocations) |
public Builder()
public Builder(GraphQLDirective existing)
public GraphQLDirective.Builder name(java.lang.String name)
public GraphQLDirective.Builder description(java.lang.String description)
public GraphQLDirective.Builder comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry)
public GraphQLDirective.Builder validLocations(Introspection.DirectiveLocation... validLocations)
public GraphQLDirective.Builder validLocation(Introspection.DirectiveLocation validLocation)
public GraphQLDirective.Builder clearValidLocations()
public GraphQLDirective.Builder argument(GraphQLArgument argument)
public GraphQLDirective.Builder replaceArguments(java.util.List<GraphQLArgument> arguments)
public GraphQLDirective.Builder argument(java.util.function.UnaryOperator<GraphQLArgument.Builder> builderFunction)
argument(a -> a.name("argumentName"))
builderFunction
- a supplier for the builder implpublic GraphQLDirective.Builder argument(GraphQLArgument.Builder builder)
builder
- an un-built/incomplete GraphQLArgumentpublic GraphQLDirective.Builder clearArguments()
@Deprecated public GraphQLDirective.Builder onOperation(boolean onOperation)
graphql.schema.GraphQLDirective.Builder#validLocations(DirectiveLocation...)
onOperation
- onOperation@Deprecated public GraphQLDirective.Builder onFragment(boolean onFragment)
graphql.schema.GraphQLDirective.Builder#validLocations(DirectiveLocation...)
onFragment
- onFragment@Deprecated public GraphQLDirective.Builder onField(boolean onField)
graphql.schema.GraphQLDirective.Builder#validLocations(DirectiveLocation...)
onField
- onFieldpublic GraphQLDirective build()