Class InputType
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appsync.InputType
- All Implemented Interfaces:
IIntermediateType
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.520Z")
@Stability(Experimental)
public class InputType
extends software.amazon.jsii.JsiiObject
implements IIntermediateType
(experimental) Input Types are abstract types that define complex objects.
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);
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forInputType
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IIntermediateType
IIntermediateType.Jsii$Default, IIntermediateType.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionInputType
(String name, IntermediateTypeOptions props) protected
InputType
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
InputType
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(AddFieldOptions options) (experimental) Add a field to this Input Type.(experimental) Create a GraphQL Type representing this Input Type.attribute
(BaseTypeOptions options) (experimental) Create a GraphQL Type representing this Input Type.(experimental) the attributes of this type.protected List<AuthorizationType>
getModes()
(experimental) the authorization modes for this intermediate type.getName()
(experimental) the name of this type.protected void
setModes
(List<AuthorizationType> value) (experimental) the authorization modes for this intermediate type.toString()
(experimental) Generate the string of this input type.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.services.appsync.IIntermediateType
getDirectives, getInterfaceTypes, getIntermediateType, getResolvers, setResolvers
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
InputType
protected InputType(software.amazon.jsii.JsiiObjectRef objRef) -
InputType
protected InputType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
InputType
@Stability(Experimental) public InputType(@NotNull String name, @NotNull IntermediateTypeOptions props) - Parameters:
name
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
addField
(experimental) Add a field to this Input Type.Input Types must have both fieldName and field options.
- Specified by:
addField
in interfaceIIntermediateType
- Parameters:
options
- the options to add a field. This parameter is required.
-
attribute
(experimental) Create a GraphQL Type representing this Input Type.- Specified by:
attribute
in interfaceIIntermediateType
- Parameters:
options
- the options to configure this attribute.
-
attribute
(experimental) Create a GraphQL Type representing this Input Type.- Specified by:
attribute
in interfaceIIntermediateType
-
toString
(experimental) Generate the string of this input type.- Specified by:
toString
in interfaceIIntermediateType
- Overrides:
toString
in classObject
-
getDefinition
(experimental) the attributes of this type.- Specified by:
getDefinition
in interfaceIIntermediateType
-
getName
(experimental) the name of this type.- Specified by:
getName
in interfaceIIntermediateType
-
getModes
(experimental) the authorization modes for this intermediate type. -
setModes
(experimental) the authorization modes for this intermediate type.
-