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, directivesFields 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, withAppliedDirectivesMethods 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:
replaceDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder> - Parameters:
directives- the list of directives- Returns:
- this builder
-
withDirectives
- Overrides:
withDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder> - Parameters:
directives- the variable args of directives- Returns:
- this builder
-
withDirective
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder> - Parameters:
directive- the directive to add- Returns:
- this builder
-
withDirective
- Overrides:
withDirectivein classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder> - Parameters:
builder- the directive builder- Returns:
- this builder
-
clearDirectives
Description copied from class:GraphqlDirectivesContainerTypeBuilderThis is used to clear all the directives in the builder so far.- Overrides:
clearDirectivesin classGraphqlDirectivesContainerTypeBuilder<GraphQLInputObjectField.Builder,GraphQLInputObjectField.Builder> - Returns:
- the builder
-
name
- Overrides:
namein classGraphqlTypeBuilder<GraphQLInputObjectField.Builder>
-
description
- Overrides:
descriptionin classGraphqlTypeBuilder<GraphQLInputObjectField.Builder>
-
build
-
defaultValueLiteral(Value)