Package graphql.schema
Class GraphQLInputObjectField.Builder
- java.lang.Object
-
- graphql.schema.GraphqlTypeBuilder<BASE>
-
- graphql.schema.GraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder>
-
- graphql.schema.GraphQLInputObjectField.Builder
-
- Enclosing class:
- GraphQLInputObjectField
@PublicApi public static class GraphQLInputObjectField.Builder extends GraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.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(GraphQLInputObjectField existing)
-
Method Summary
-
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(GraphQLInputObjectField existing)
-
-
Method Detail
-
definition
public GraphQLInputObjectField.Builder definition(InputValueDefinition definition)
-
deprecate
public GraphQLInputObjectField.Builder deprecate(java.lang.String deprecationReason)
-
type
public GraphQLInputObjectField.Builder type(GraphQLInputObjectType.Builder type)
-
type
public GraphQLInputObjectField.Builder type(GraphQLInputType type)
-
defaultValue
@Deprecated public GraphQLInputObjectField.Builder defaultValue(java.lang.Object defaultValue)
Deprecated.A legacy method for setting a default value- Parameters:
defaultValue
- the value to set- Returns:
- this builder
-
defaultValueLiteral
public GraphQLInputObjectField.Builder defaultValueLiteral(Value defaultValue)
-
defaultValueProgrammatic
public GraphQLInputObjectField.Builder defaultValueProgrammatic(java.lang.Object defaultValue)
-
clearDefaultValue
public GraphQLInputObjectField.Builder clearDefaultValue()
-
replaceDirectives
public GraphQLInputObjectField.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
- Overrides:
replaceDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder>
- Parameters:
directives
- the list of directives- Returns:
- this builder
-
withDirectives
public GraphQLInputObjectField.Builder withDirectives(GraphQLDirective... directives)
- Overrides:
withDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder>
- Parameters:
directives
- the variable args of directives- Returns:
- this builder
-
withDirective
public GraphQLInputObjectField.Builder withDirective(GraphQLDirective directive)
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder>
- Parameters:
directive
- the directive to add- Returns:
- this builder
-
withDirective
public GraphQLInputObjectField.Builder withDirective(GraphQLDirective.Builder builder)
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder>
- Parameters:
builder
- the directive builder- Returns:
- this builder
-
clearDirectives
public GraphQLInputObjectField.Builder clearDirectives()
Description copied from class:GraphqlDirectivesContainerTypeBuilder
This is used to clear all the directives in the builder so far.- Overrides:
clearDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder>
- Returns:
- the builder
-
name
public GraphQLInputObjectField.Builder name(java.lang.String name)
- Overrides:
name
in classGraphqlTypeBuilder<GraphQLInputObjectField.Builder>
-
description
public GraphQLInputObjectField.Builder description(java.lang.String description)
- Overrides:
description
in classGraphqlTypeBuilder<GraphQLInputObjectField.Builder>
-
build
public GraphQLInputObjectField build()
-
-