Interface ObjectTypeOptions
- All Superinterfaces:
IntermediateTypeOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ObjectTypeOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.554Z")
@Stability(Experimental)
public interface ObjectTypeOptions
extends software.amazon.jsii.JsiiSerializable, IntermediateTypeOptions
(experimental) Properties for configuring an Object Type.
Example:
GraphqlApi api; MappingTemplate dummyRequest; MappingTemplate dummyResponse; ObjectType info = ObjectType.Builder.create("Info") .definition(Map.of( "node", ResolvableField.Builder.create() .returnType(GraphqlType.string()) .args(Map.of( "id", GraphqlType.string())) .dataSource(api.addNoneDataSource("none")) .requestMappingTemplate(dummyRequest) .responseMappingTemplate(dummyResponse) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forObjectTypeOptions
static final class
An implementation forObjectTypeOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectTypeOptions.Builder
builder()
default List<InterfaceType>
(experimental) The Interface Types this Object Type implements.Methods inherited from interface software.amazon.awscdk.services.appsync.IntermediateTypeOptions
getDefinition, getDirectives
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInterfaceTypes
(experimental) The Interface Types this Object Type implements.Default: - no interface types
-
builder
- Returns:
- a
ObjectTypeOptions.Builder
ofObjectTypeOptions
-