@PublicApi public static class GraphQLObjectType.Builder extends GraphqlDirectivesContainerTypeBuilder<GraphQLObjectType.Builder,GraphQLObjectType.Builder>
appliedDirectives, directives
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLObjectType existing) |
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectives
comparatorRegistry
public Builder()
public Builder(GraphQLObjectType existing)
public GraphQLObjectType.Builder definition(ObjectTypeDefinition definition)
public GraphQLObjectType.Builder extensionDefinitions(java.util.List<ObjectTypeExtensionDefinition> extensionDefinitions)
public GraphQLObjectType.Builder field(GraphQLFieldDefinition fieldDefinition)
public GraphQLObjectType.Builder field(java.util.function.UnaryOperator<GraphQLFieldDefinition.Builder> builderFunction)
field(f -> f.name("fieldName"))
builderFunction
- a supplier for the builder implpublic GraphQLObjectType.Builder field(GraphQLFieldDefinition.Builder builder)
builder
- an un-built/incomplete GraphQLFieldDefinitionpublic GraphQLObjectType.Builder fields(java.util.List<GraphQLFieldDefinition> fieldDefinitions)
public GraphQLObjectType.Builder replaceFields(java.util.List<GraphQLFieldDefinition> fieldDefinitions)
public GraphQLObjectType.Builder clearFields()
public boolean hasField(java.lang.String fieldName)
public GraphQLObjectType.Builder withInterface(GraphQLInterfaceType interfaceType)
public GraphQLObjectType.Builder replaceInterfaces(java.util.List<? extends GraphQLNamedOutputType> interfaces)
public GraphQLObjectType.Builder withInterface(GraphQLTypeReference reference)
public GraphQLObjectType.Builder withInterfaces(GraphQLInterfaceType... interfaceType)
public GraphQLObjectType.Builder withInterfaces(GraphQLTypeReference... references)
public GraphQLObjectType.Builder clearInterfaces()
public GraphQLObjectType.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
replaceDirectives
in class GraphqlDirectivesContainerTypeBuilder<GraphQLObjectType.Builder,GraphQLObjectType.Builder>
directives
- the list of directivespublic GraphQLObjectType.Builder withDirectives(GraphQLDirective... directives)
withDirectives
in class GraphqlDirectivesContainerTypeBuilder<GraphQLObjectType.Builder,GraphQLObjectType.Builder>
directives
- the variable args of directivespublic GraphQLObjectType.Builder withDirective(GraphQLDirective directive)
withDirective
in class GraphqlDirectivesContainerTypeBuilder<GraphQLObjectType.Builder,GraphQLObjectType.Builder>
directive
- the directive to addpublic GraphQLObjectType.Builder withDirective(GraphQLDirective.Builder builder)
withDirective
in class GraphqlDirectivesContainerTypeBuilder<GraphQLObjectType.Builder,GraphQLObjectType.Builder>
builder
- the directive builderpublic GraphQLObjectType.Builder clearDirectives()
GraphqlDirectivesContainerTypeBuilder
clearDirectives
in class GraphqlDirectivesContainerTypeBuilder<GraphQLObjectType.Builder,GraphQLObjectType.Builder>
public GraphQLObjectType.Builder name(java.lang.String name)
name
in class GraphqlTypeBuilder<GraphQLObjectType.Builder>
public GraphQLObjectType.Builder description(java.lang.String description)
description
in class GraphqlTypeBuilder<GraphQLObjectType.Builder>
public GraphQLObjectType build()