@PublicApi public class GraphQLEnumValueDefinition extends java.lang.Object implements GraphQLDirectiveContainer
GraphQLEnumType
Modifier and Type | Class and Description |
---|---|
static class |
GraphQLEnumValueDefinition.Builder |
Constructor and Description |
---|
GraphQLEnumValueDefinition(java.lang.String name,
java.lang.String description,
java.lang.Object value) |
GraphQLEnumValueDefinition(java.lang.String name,
java.lang.String description,
java.lang.Object value,
java.lang.String deprecationReason) |
GraphQLEnumValueDefinition(java.lang.String name,
java.lang.String description,
java.lang.Object value,
java.lang.String deprecationReason,
java.util.List<GraphQLDirective> directives) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeprecationReason() |
java.lang.String |
getDescription() |
GraphQLDirective |
getDirective(java.lang.String directiveName)
Returns a named directive
|
java.util.List<GraphQLDirective> |
getDirectives() |
java.util.Map<java.lang.String,GraphQLDirective> |
getDirectivesByName() |
java.lang.String |
getName() |
java.lang.Object |
getValue() |
boolean |
isDeprecated() |
static GraphQLEnumValueDefinition.Builder |
newEnumValueDefinition() |
static GraphQLEnumValueDefinition.Builder |
newEnumValueDefinition(GraphQLEnumValueDefinition existing) |
GraphQLEnumValueDefinition |
transform(java.util.function.Consumer<GraphQLEnumValueDefinition.Builder> builderConsumer)
This helps you transform the current GraphQLEnumValueDefinition into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
public GraphQLEnumValueDefinition(java.lang.String name, java.lang.String description, java.lang.Object value)
public GraphQLEnumValueDefinition(java.lang.String name, java.lang.String description, java.lang.Object value, java.lang.String deprecationReason)
public GraphQLEnumValueDefinition(java.lang.String name, java.lang.String description, java.lang.Object value, java.lang.String deprecationReason, java.util.List<GraphQLDirective> directives)
public java.lang.String getName()
getName
in interface GraphQLType
[_A-Za-z][_0-9A-Za-z]*
public java.lang.String getDescription()
public java.lang.Object getValue()
public boolean isDeprecated()
public java.lang.String getDeprecationReason()
public java.util.List<GraphQLDirective> getDirectives()
getDirectives
in interface GraphQLDirectiveContainer
public java.util.Map<java.lang.String,GraphQLDirective> getDirectivesByName()
getDirectivesByName
in interface GraphQLDirectiveContainer
public GraphQLDirective getDirective(java.lang.String directiveName)
GraphQLDirectiveContainer
getDirective
in interface GraphQLDirectiveContainer
directiveName
- the name of the directive to retrievepublic GraphQLEnumValueDefinition transform(java.util.function.Consumer<GraphQLEnumValueDefinition.Builder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformpublic static GraphQLEnumValueDefinition.Builder newEnumValueDefinition()
public static GraphQLEnumValueDefinition.Builder newEnumValueDefinition(GraphQLEnumValueDefinition existing)