public static class GraphQLDirective.Builder extends GraphqlTypeBuilder<GraphQLDirective.Builder>
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLDirective existing) |
comparatorRegistry
public Builder()
public Builder(GraphQLDirective existing)
public GraphQLDirective.Builder repeatable(boolean repeatable)
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()
public GraphQLDirective.Builder definition(DirectiveDefinition definition)
public GraphQLDirective.Builder name(java.lang.String name)
name
in class GraphqlTypeBuilder<GraphQLDirective.Builder>
public GraphQLDirective.Builder description(java.lang.String description)
description
in class GraphqlTypeBuilder<GraphQLDirective.Builder>
public GraphQLDirective build()