Class BaseAppsyncFunctionProps.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.BaseAppsyncFunctionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BaseAppsyncFunctionProps>
- Enclosing interface:
- BaseAppsyncFunctionProps
@Stability(Experimental)
public static final class BaseAppsyncFunctionProps.Builder
extends Object
implements software.amazon.jsii.Builder<BaseAppsyncFunctionProps>
A builder for
BaseAppsyncFunctionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofBaseAppsyncFunctionProps.getDescription()
Sets the value ofBaseAppsyncFunctionProps.getName()
requestMappingTemplate
(MappingTemplate requestMappingTemplate) Sets the value ofBaseAppsyncFunctionProps.getRequestMappingTemplate()
responseMappingTemplate
(MappingTemplate responseMappingTemplate) Sets the value ofBaseAppsyncFunctionProps.getResponseMappingTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofBaseAppsyncFunctionProps.getName()
- Parameters:
name
- the name of the AppSync Function. This parameter is required.- Returns:
this
-
description
Sets the value ofBaseAppsyncFunctionProps.getDescription()
- Parameters:
description
- the description for this AppSync Function.- Returns:
this
-
requestMappingTemplate
@Stability(Experimental) public BaseAppsyncFunctionProps.Builder requestMappingTemplate(MappingTemplate requestMappingTemplate) Sets the value ofBaseAppsyncFunctionProps.getRequestMappingTemplate()
- Parameters:
requestMappingTemplate
- the request mapping template for the AppSync Function.- Returns:
this
-
responseMappingTemplate
@Stability(Experimental) public BaseAppsyncFunctionProps.Builder responseMappingTemplate(MappingTemplate responseMappingTemplate) Sets the value ofBaseAppsyncFunctionProps.getResponseMappingTemplate()
- Parameters:
responseMappingTemplate
- the response mapping template for the AppSync Function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<BaseAppsyncFunctionProps>
- Returns:
- a new instance of
BaseAppsyncFunctionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-