@PublicApi public static class GraphQLScalarType.Builder extends GraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
appliedDirectives, directives
comparatorRegistry, description, name
Constructor and Description |
---|
Builder() |
Builder(GraphQLScalarType existing) |
Modifier and Type | Method and Description |
---|---|
GraphQLScalarType |
build() |
GraphQLScalarType.Builder |
clearDirectives()
This is used to clear all the directives in the builder so far.
|
GraphQLScalarType.Builder |
coercing(Coercing<?,?> coercing) |
GraphQLScalarType.Builder |
definition(ScalarTypeDefinition definition) |
GraphQLScalarType.Builder |
description(java.lang.String description) |
GraphQLScalarType.Builder |
extensionDefinitions(java.util.List<ScalarTypeExtensionDefinition> extensionDefinitions) |
GraphQLScalarType.Builder |
name(java.lang.String name) |
GraphQLScalarType.Builder |
replaceDirectives(java.util.List<GraphQLDirective> directives) |
GraphQLScalarType.Builder |
specifiedByUrl(java.lang.String specifiedByUrl) |
GraphQLScalarType.Builder |
withDirective(GraphQLDirective.Builder builder) |
GraphQLScalarType.Builder |
withDirective(GraphQLDirective directive) |
GraphQLScalarType.Builder |
withDirectives(GraphQLDirective... directives) |
copyExistingDirectives, replaceAppliedDirectives, withAppliedDirective, withAppliedDirective, withAppliedDirectives
comparatorRegistry
public Builder()
public Builder(GraphQLScalarType existing)
public GraphQLScalarType.Builder specifiedByUrl(java.lang.String specifiedByUrl)
public GraphQLScalarType.Builder definition(ScalarTypeDefinition definition)
public GraphQLScalarType.Builder extensionDefinitions(java.util.List<ScalarTypeExtensionDefinition> extensionDefinitions)
public GraphQLScalarType.Builder coercing(Coercing<?,?> coercing)
public GraphQLScalarType.Builder replaceDirectives(java.util.List<GraphQLDirective> directives)
public GraphQLScalarType.Builder withDirectives(GraphQLDirective... directives)
public GraphQLScalarType.Builder withDirective(GraphQLDirective directive)
public GraphQLScalarType.Builder withDirective(GraphQLDirective.Builder builder)
public GraphQLScalarType.Builder clearDirectives()
GraphqlDirectivesContainerTypeBuilder
clearDirectives
in class GraphqlDirectivesContainerTypeBuilder<GraphQLScalarType.Builder,GraphQLScalarType.Builder>
public GraphQLScalarType.Builder name(java.lang.String name)
name
in class GraphqlTypeBuilder<GraphQLScalarType.Builder>
public GraphQLScalarType.Builder description(java.lang.String description)
description
in class GraphqlTypeBuilder<GraphQLScalarType.Builder>
public GraphQLScalarType build()