@PublicApi public static class GraphQLInterfaceType.Builder extends GraphqlTypeBuilder
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLInterfaceType existing) |
public Builder()
public Builder(GraphQLInterfaceType existing)
public GraphQLInterfaceType.Builder name(java.lang.String name)
public GraphQLInterfaceType.Builder description(java.lang.String description)
public GraphQLInterfaceType.Builder comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry)
public GraphQLInterfaceType.Builder definition(InterfaceTypeDefinition definition)
public GraphQLInterfaceType.Builder extensionDefinitions(java.util.List<InterfaceTypeExtensionDefinition> extensionDefinitions)
public GraphQLInterfaceType.Builder field(GraphQLFieldDefinition fieldDefinition)
public GraphQLInterfaceType.Builder field(java.util.function.UnaryOperator<GraphQLFieldDefinition.Builder> builderFunction)
field(f -> f.name("fieldName"))
builderFunction
- a supplier for the builder implpublic GraphQLInterfaceType.Builder field(GraphQLFieldDefinition.Builder builder)
builder
- an un-built/incomplete GraphQLFieldDefinitionpublic GraphQLInterfaceType.Builder fields(java.util.List<GraphQLFieldDefinition> fieldDefinitions)
public GraphQLInterfaceType.Builder replaceFields(java.util.List<GraphQLFieldDefinition> fieldDefinitions)
public boolean hasField(java.lang.String fieldName)
public GraphQLInterfaceType.Builder clearFields()
@Deprecated public GraphQLInterfaceType.Builder typeResolver(TypeResolver typeResolver)
public GraphQLInterfaceType.Builder withDirectives(GraphQLDirective... directives)
public GraphQLInterfaceType.Builder withDirective(GraphQLDirective directive)
public GraphQLInterfaceType.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
public GraphQLInterfaceType.Builder withDirective(GraphQLDirective.Builder builder)
public GraphQLInterfaceType.Builder clearDirectives()
public GraphQLInterfaceType build()