Package graphql.scalars.alias
Class AliasedScalar.Builder
- java.lang.Object
-
- graphql.scalars.alias.AliasedScalar.Builder
-
- Enclosing class:
- AliasedScalar
public static class AliasedScalar.Builder extends java.lang.Object
A builder forAliasedScalar
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AliasedScalar.Builder
aliasedScalar(graphql.schema.GraphQLScalarType aliasedScalar)
Sets the scalar that is to be aliasedgraphql.schema.GraphQLScalarType
build()
AliasedScalar.Builder
description(java.lang.String description)
Sets the description of the aliased scalarAliasedScalar.Builder
name(java.lang.String name)
Sets the name of the aliased scalar
-
-
-
Method Detail
-
name
public AliasedScalar.Builder name(java.lang.String name)
Sets the name of the aliased scalar- Parameters:
name
- the name of the aliased scalar- Returns:
- this builder
-
description
public AliasedScalar.Builder description(java.lang.String description)
Sets the description of the aliased scalar- Parameters:
description
- the description of the aliased scalar- Returns:
- this builder
-
aliasedScalar
public AliasedScalar.Builder aliasedScalar(graphql.schema.GraphQLScalarType aliasedScalar)
Sets the scalar that is to be aliased- Parameters:
aliasedScalar
- the scalar that is to be aliased- Returns:
- this builder
-
build
public graphql.schema.GraphQLScalarType build()
- Returns:
- the built
AliasedScalar
-
-