@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:24.841Z") @Stability(value=Experimental) public class InputType extends software.amazon.jsii.JsiiObject implements IIntermediateType
They are used in arguments to represent
Example:
GraphqlApi api;
InputType review = InputType.Builder.create("Review")
.definition(Map.of(
"stars", GraphqlType.int(BaseTypeOptions.builder().isRequired(true).build()),
"commentary", GraphqlType.string()))
.build();
api.addType(review);
| Modifier and Type | Class and Description |
|---|---|
static class |
InputType.Builder
(experimental) A fluent builder for
InputType. |
software.amazon.jsii.JsiiObject.InitializationModeIIntermediateType.Jsii$Default, IIntermediateType.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
InputType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
InputType(software.amazon.jsii.JsiiObjectRef objRef) |
|
InputType(String name,
IntermediateTypeOptions props) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(AddFieldOptions options)
(experimental) Add a field to this Input Type.
|
GraphqlType |
attribute()
(experimental) Create a GraphQL Type representing this Input Type.
|
GraphqlType |
attribute(BaseTypeOptions options)
(experimental) Create a GraphQL Type representing this Input Type.
|
Map<String,IField> |
getDefinition()
(experimental) the attributes of this type.
|
protected List<AuthorizationType> |
getModes()
(experimental) the authorization modes for this intermediate type.
|
String |
getName()
(experimental) the name of this type.
|
protected void |
setModes(List<AuthorizationType> value)
(experimental) the authorization modes for this intermediate type.
|
String |
toString()
(experimental) Generate the string of this input type.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDirectives, getInterfaceTypes, getIntermediateType, getResolvers, setResolversprotected InputType(software.amazon.jsii.JsiiObjectRef objRef)
protected InputType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public InputType(@NotNull
String name,
@NotNull
IntermediateTypeOptions props)
name - This parameter is required.props - This parameter is required.@Stability(value=Experimental)
public void addField(@NotNull
AddFieldOptions options)
Input Types must have both fieldName and field options.
addField in interface IIntermediateTypeoptions - the options to add a field. This parameter is required.@Stability(value=Experimental) @NotNull public GraphqlType attribute(@Nullable BaseTypeOptions options)
attribute in interface IIntermediateTypeoptions - the options to configure this attribute.@Stability(value=Experimental) @NotNull public GraphqlType attribute()
attribute in interface IIntermediateType@Stability(value=Experimental) @NotNull public String toString()
toString in interface IIntermediateTypetoString in class Object@Stability(value=Experimental) @NotNull public Map<String,IField> getDefinition()
getDefinition in interface IIntermediateType@Stability(value=Experimental) @NotNull public String getName()
getName in interface IIntermediateType@Stability(value=Experimental) @Nullable protected List<AuthorizationType> getModes()
@Stability(value=Experimental)
protected void setModes(@Nullable
List<AuthorizationType> value)
Copyright © 2022. All rights reserved.