public static class GraphQLArgument.Builder extends GraphqlTypeBuilder
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLArgument existing) |
public Builder()
public Builder(GraphQLArgument existing)
public GraphQLArgument.Builder name(java.lang.String name)
public GraphQLArgument.Builder description(java.lang.String description)
public GraphQLArgument.Builder comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry)
public GraphQLArgument.Builder definition(InputValueDefinition definition)
public GraphQLArgument.Builder deprecate(java.lang.String deprecationReason)
public GraphQLArgument.Builder type(GraphQLInputType type)
@Deprecated public GraphQLArgument.Builder defaultValue(java.lang.Object defaultValue)
defaultValueLiteral(Value)
or defaultValueProgrammatic(Object)
defaultValue
- a default valuepublic GraphQLArgument.Builder defaultValueLiteral(@NotNull @NotNull Value defaultValue)
defaultValue
- can't be null as a `null` is represented a @NullValue
Literalpublic GraphQLArgument.Builder defaultValueProgrammatic(@Nullable @Nullable java.lang.Object defaultValue)
defaultValue
- Can be null to represent null valuepublic GraphQLArgument.Builder clearDefaultValue()
@Deprecated public GraphQLArgument.Builder value(@Nullable @Nullable java.lang.Object value)
valueLiteral(Value)
or valueProgrammatic(Object)
value
- the argument valuepublic GraphQLArgument.Builder valueLiteral(@NotNull @NotNull Value value)
value
- can't be null as a `null` is represented a @NullValue
Literalpublic GraphQLArgument.Builder valueProgrammatic(@Nullable @Nullable java.lang.Object value)
value
- values can be null to represent null valuepublic GraphQLArgument.Builder clearValue()
public GraphQLArgument.Builder withDirectives(GraphQLDirective... directives)
public GraphQLArgument.Builder withDirective(GraphQLDirective directive)
public GraphQLArgument.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
public GraphQLArgument.Builder withDirective(GraphQLDirective.Builder builder)
public GraphQLArgument.Builder clearDirectives()
public GraphQLArgument build()