Class ResolverProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.ResolverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ResolverProps>
- Enclosing interface:
ResolverProps
@Stability(Experimental)
public static final class ResolverProps.Builder
extends Object
implements software.amazon.jsii.Builder<ResolverProps>
A builder for
ResolverProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapi
(IGraphqlApi api) Sets the value ofResolverProps.getApi()
build()
Builds the configured instance.cachingConfig
(CachingConfig cachingConfig) Sets the value ofBaseResolverProps.getCachingConfig()
dataSource
(BaseDataSource dataSource) Sets the value ofExtendedResolverProps.getDataSource()
Sets the value ofBaseResolverProps.getFieldName()
pipelineConfig
(List<? extends IAppsyncFunction> pipelineConfig) Sets the value ofBaseResolverProps.getPipelineConfig()
requestMappingTemplate
(MappingTemplate requestMappingTemplate) Sets the value ofBaseResolverProps.getRequestMappingTemplate()
responseMappingTemplate
(MappingTemplate responseMappingTemplate) Sets the value ofBaseResolverProps.getResponseMappingTemplate()
Sets the value ofBaseResolverProps.getTypeName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
api
Sets the value ofResolverProps.getApi()
- Parameters:
api
- The API this resolver is attached to. This parameter is required.- Returns:
this
-
dataSource
Sets the value ofExtendedResolverProps.getDataSource()
- Parameters:
dataSource
- The data source this resolver is using.- Returns:
this
-
fieldName
Sets the value ofBaseResolverProps.getFieldName()
- Parameters:
fieldName
- name of the GraphQL field in the given type this resolver is attached to. This parameter is required.- Returns:
this
-
typeName
Sets the value ofBaseResolverProps.getTypeName()
- Parameters:
typeName
- name of the GraphQL type this resolver is attached to. This parameter is required.- Returns:
this
-
cachingConfig
Sets the value ofBaseResolverProps.getCachingConfig()
- Parameters:
cachingConfig
- The caching configuration for this resolver.- Returns:
this
-
pipelineConfig
@Stability(Experimental) public ResolverProps.Builder pipelineConfig(List<? extends IAppsyncFunction> pipelineConfig) Sets the value ofBaseResolverProps.getPipelineConfig()
- Parameters:
pipelineConfig
- configuration of the pipeline resolver.- Returns:
this
-
requestMappingTemplate
@Stability(Experimental) public ResolverProps.Builder requestMappingTemplate(MappingTemplate requestMappingTemplate) Sets the value ofBaseResolverProps.getRequestMappingTemplate()
- Parameters:
requestMappingTemplate
- The request mapping template for this resolver.- Returns:
this
-
responseMappingTemplate
@Stability(Experimental) public ResolverProps.Builder responseMappingTemplate(MappingTemplate responseMappingTemplate) Sets the value ofBaseResolverProps.getResponseMappingTemplate()
- Parameters:
responseMappingTemplate
- The response mapping template for this resolver.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ResolverProps>
- Returns:
- a new instance of
ResolverProps
- Throws:
NullPointerException
- if any required attribute was not provided
-