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