@PublicApi public static class GraphQLUnionType.Builder extends GraphqlTypeBuilder
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLUnionType existing) |
public Builder()
public Builder(GraphQLUnionType existing)
public GraphQLUnionType.Builder name(java.lang.String name)
public GraphQLUnionType.Builder description(java.lang.String description)
public GraphQLUnionType.Builder comparatorRegistry(GraphqlTypeComparatorRegistry comparatorRegistry)
public GraphQLUnionType.Builder definition(UnionTypeDefinition definition)
public GraphQLUnionType.Builder extensionDefinitions(java.util.List<UnionTypeExtensionDefinition> extensionDefinitions)
@Deprecated public GraphQLUnionType.Builder typeResolver(TypeResolver typeResolver)
public GraphQLUnionType.Builder possibleType(GraphQLObjectType type)
public GraphQLUnionType.Builder possibleType(GraphQLTypeReference reference)
public GraphQLUnionType.Builder possibleTypes(GraphQLObjectType... type)
public GraphQLUnionType.Builder replacePossibleTypes(java.util.List<? extends GraphQLNamedOutputType> types)
public GraphQLUnionType.Builder possibleTypes(GraphQLTypeReference... references)
public GraphQLUnionType.Builder clearPossibleTypes()
public boolean containType(java.lang.String name)
public GraphQLUnionType.Builder withDirectives(GraphQLDirective... directives)
public GraphQLUnionType.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
public GraphQLUnionType.Builder withDirective(GraphQLDirective directive)
public GraphQLUnionType.Builder withDirective(GraphQLDirective.Builder builder)
public GraphQLUnionType.Builder clearDirectives()
public GraphQLUnionType build()