@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:24.842Z") @Stability(value=Experimental) public class InterfaceType extends software.amazon.jsii.JsiiObject implements IIntermediateType
Example:
InterfaceType node = InterfaceType.Builder.create("Node")
.definition(Map.of(
"id", GraphqlType.string(BaseTypeOptions.builder().isRequired(true).build())))
.build();
ObjectType demo = ObjectType.Builder.create("Demo")
.interfaceTypes(List.of(node))
.definition(Map.of(
"version", GraphqlType.string(BaseTypeOptions.builder().isRequired(true).build())))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
InterfaceType.Builder
(experimental) A fluent builder for
InterfaceType. |
software.amazon.jsii.JsiiObject.InitializationModeIIntermediateType.Jsii$Default, IIntermediateType.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
InterfaceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
InterfaceType(software.amazon.jsii.JsiiObjectRef objRef) |
|
InterfaceType(String name,
IntermediateTypeOptions props) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(AddFieldOptions options)
(experimental) Add a field to this Interface Type.
|
GraphqlType |
attribute()
(experimental) Create a GraphQL Type representing this Intermediate Type.
|
GraphqlType |
attribute(BaseTypeOptions options)
(experimental) Create a GraphQL Type representing this Intermediate Type.
|
Map<String,IField> |
getDefinition()
(experimental) the attributes of this type.
|
List<Directive> |
getDirectives()
(experimental) the directives for this object 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 object type.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInterfaceTypes, getIntermediateType, getResolvers, setResolversprotected InterfaceType(software.amazon.jsii.JsiiObjectRef objRef)
protected InterfaceType(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public InterfaceType(@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)
Interface 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 public List<Directive> getDirectives()
Default: - no directives
getDirectives 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.