@PublicApi public static class GraphQLObjectType.Builder extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(GraphQLObjectType existing) |
public Builder()
public Builder(GraphQLObjectType existing)
public GraphQLObjectType.Builder name(java.lang.String name)
public GraphQLObjectType.Builder description(java.lang.String description)
public GraphQLObjectType.Builder definition(ObjectTypeDefinition definition)
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 clearFields()
public boolean hasField(java.lang.String fieldName)
public GraphQLObjectType.Builder withInterface(GraphQLInterfaceType interfaceType)
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 withDirectives(GraphQLDirective... directives)
public GraphQLObjectType.Builder withDirective(GraphQLDirective directive)
public GraphQLObjectType.Builder withDirective(GraphQLDirective.Builder builder)
public GraphQLObjectType.Builder clearDirectives()
public GraphQLObjectType build()