Class BaseResolverProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.BaseResolverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseResolverProps>
- Enclosing interface:
BaseResolverProps
@Stability(Stable)
public static final class BaseResolverProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseResolverProps>
A builder for
BaseResolverProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cachingConfig(CachingConfig cachingConfig) Sets the value ofBaseResolverProps.getCachingConfig()Sets the value ofBaseResolverProps.getCode()Sets the value ofBaseResolverProps.getFieldName()maxBatchSize(Number maxBatchSize) Sets the value ofBaseResolverProps.getMaxBatchSize()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()runtime(FunctionRuntime runtime) Sets the value ofBaseResolverProps.getRuntime()Sets the value ofBaseResolverProps.getTypeName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
-
code
Sets the value ofBaseResolverProps.getCode()- Parameters:
code- The function code.- Returns:
this
-
maxBatchSize
Sets the value ofBaseResolverProps.getMaxBatchSize()- Parameters:
maxBatchSize- The maximum number of elements per batch, when using batch invoke.- Returns:
this
-
pipelineConfig
@Stability(Stable) public BaseResolverProps.Builder pipelineConfig(List<? extends IAppsyncFunction> pipelineConfig) Sets the value ofBaseResolverProps.getPipelineConfig()- Parameters:
pipelineConfig- configuration of the pipeline resolver.- Returns:
this
-
requestMappingTemplate
@Stability(Stable) public BaseResolverProps.Builder requestMappingTemplate(MappingTemplate requestMappingTemplate) Sets the value ofBaseResolverProps.getRequestMappingTemplate()- Parameters:
requestMappingTemplate- The request mapping template for this resolver.- Returns:
this
-
responseMappingTemplate
@Stability(Stable) public BaseResolverProps.Builder responseMappingTemplate(MappingTemplate responseMappingTemplate) Sets the value ofBaseResolverProps.getResponseMappingTemplate()- Parameters:
responseMappingTemplate- The response mapping template for this resolver.- Returns:
this
-
runtime
Sets the value ofBaseResolverProps.getRuntime()- Parameters:
runtime- The functions runtime.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BaseResolverProps>- Returns:
- a new instance of
BaseResolverProps - Throws:
NullPointerException- if any required attribute was not provided
-