Package graphql.schema
Class GraphQLInputObjectField.Builder
java.lang.Object
graphql.schema.GraphqlTypeBuilder<GraphQLInputObjectField.Builder>
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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()
This is used to clear all the directives in the builder so far.defaultValue
(Object defaultValue) Deprecated.defaultValueLiteral
(Value defaultValue) defaultValueProgrammatic
(Object defaultValue) definition
(InputValueDefinition definition) description
(String description) replaceDirectives
(List<GraphQLDirective> directives) type
(GraphQLInputType type) withDirective
(GraphQLDirective directive) withDirective
(GraphQLDirective.Builder builder) withDirectives
(GraphQLDirective... directives) Methods inherited from class graphql.schema.GraphqlDirectivesContainerTypeBuilder
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectives
Methods inherited from class graphql.schema.GraphqlTypeBuilder
comparatorRegistry
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
definition
-
deprecate
-
type
-
type
-
defaultValue
@Deprecated(since="2021-05-10") public GraphQLInputObjectField.Builder defaultValue(Object defaultValue) Deprecated.A legacy method for setting a default value- Parameters:
defaultValue
- the value to set- Returns:
- this builder
-
defaultValueLiteral
-
defaultValueProgrammatic
-
clearDefaultValue
-
replaceDirectives
- Overrides:
replaceDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,
GraphQLInputObjectField.Builder> - Parameters:
directives
- the list of directives- Returns:
- this builder
-
withDirectives
- Overrides:
withDirectives
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,
GraphQLInputObjectField.Builder> - Parameters:
directives
- the variable args of directives- Returns:
- this builder
-
withDirective
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,
GraphQLInputObjectField.Builder> - Parameters:
directive
- the directive to add- Returns:
- this builder
-
withDirective
- Overrides:
withDirective
in classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,
GraphQLInputObjectField.Builder> - Parameters:
builder
- the directive builder- Returns:
- this 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
- Overrides:
name
in classGraphqlTypeBuilder<GraphQLInputObjectField.Builder>
-
description
- Overrides:
description
in classGraphqlTypeBuilder<GraphQLInputObjectField.Builder>
-
build
-
defaultValueLiteral(Value)