@PublicApi public class GraphQLInputObjectType extends java.lang.Object implements GraphQLType, GraphQLInputType, GraphQLUnmodifiedType, GraphQLNullableType, GraphQLInputFieldsContainer, GraphQLDirectiveContainer
Modifier and Type | Class and Description |
---|---|
static class |
GraphQLInputObjectType.Builder |
Constructor and Description |
---|
GraphQLInputObjectType(java.lang.String name,
java.lang.String description,
java.util.List<GraphQLInputObjectField> fields) |
GraphQLInputObjectType(java.lang.String name,
java.lang.String description,
java.util.List<GraphQLInputObjectField> fields,
java.util.List<GraphQLDirective> directives,
InputObjectTypeDefinition definition) |
Modifier and Type | Method and Description |
---|---|
InputObjectTypeDefinition |
getDefinition() |
java.lang.String |
getDescription() |
java.util.List<GraphQLDirective> |
getDirectives() |
GraphQLInputObjectField |
getField(java.lang.String name) |
GraphQLInputObjectField |
getFieldDefinition(java.lang.String name) |
java.util.List<GraphQLInputObjectField> |
getFieldDefinitions() |
java.util.List<GraphQLInputObjectField> |
getFields() |
java.lang.String |
getName() |
static GraphQLInputObjectType.Builder |
newInputObject() |
static GraphQLInputObjectType.Builder |
newInputObject(GraphQLInputObjectType existing) |
GraphQLInputObjectType |
transform(java.util.function.Consumer<GraphQLInputObjectType.Builder> builderConsumer)
This helps you transform the current GraphQLInputObjectType into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirective, getDirectivesByName
public GraphQLInputObjectType(java.lang.String name, java.lang.String description, java.util.List<GraphQLInputObjectField> fields)
public GraphQLInputObjectType(java.lang.String name, java.lang.String description, java.util.List<GraphQLInputObjectField> fields, java.util.List<GraphQLDirective> directives, InputObjectTypeDefinition definition)
public java.lang.String getName()
getName
in interface GraphQLType
[_A-Za-z][_0-9A-Za-z]*
public java.lang.String getDescription()
public java.util.List<GraphQLInputObjectField> getFields()
public GraphQLInputObjectField getField(java.lang.String name)
public java.util.List<GraphQLDirective> getDirectives()
getDirectives
in interface GraphQLDirectiveContainer
public GraphQLInputObjectField getFieldDefinition(java.lang.String name)
getFieldDefinition
in interface GraphQLInputFieldsContainer
public java.util.List<GraphQLInputObjectField> getFieldDefinitions()
getFieldDefinitions
in interface GraphQLInputFieldsContainer
public InputObjectTypeDefinition getDefinition()
public GraphQLInputObjectType transform(java.util.function.Consumer<GraphQLInputObjectType.Builder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformpublic static GraphQLInputObjectType.Builder newInputObject(GraphQLInputObjectType existing)
public static GraphQLInputObjectType.Builder newInputObject()