@PublicApi public static class GraphQLObjectType.Builder extends GraphqlTypeBuilder
comparatorRegistry, description, name
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 comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry)
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)
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()