public static final class AppsyncFunctionProps.Builder
extends java.lang.Object
AppsyncFunctionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AppsyncFunctionProps.Builder |
api(IGraphqlApi api)
Sets the value of
AppsyncFunctionProps.getApi() |
AppsyncFunctionProps |
build()
Builds the configured instance.
|
AppsyncFunctionProps.Builder |
dataSource(BaseDataSource dataSource)
Sets the value of
AppsyncFunctionProps.getDataSource() |
AppsyncFunctionProps.Builder |
description(java.lang.String description)
Sets the value of
BaseAppsyncFunctionProps.getDescription() |
AppsyncFunctionProps.Builder |
name(java.lang.String name)
Sets the value of
BaseAppsyncFunctionProps.getName() |
AppsyncFunctionProps.Builder |
requestMappingTemplate(MappingTemplate requestMappingTemplate)
Sets the value of
BaseAppsyncFunctionProps.getRequestMappingTemplate() |
AppsyncFunctionProps.Builder |
responseMappingTemplate(MappingTemplate responseMappingTemplate)
Sets the value of
BaseAppsyncFunctionProps.getResponseMappingTemplate() |
public AppsyncFunctionProps.Builder api(IGraphqlApi api)
AppsyncFunctionProps.getApi()
api
- the GraphQL Api linked to this AppSync Function. This parameter is required.this
public AppsyncFunctionProps.Builder dataSource(BaseDataSource dataSource)
AppsyncFunctionProps.getDataSource()
dataSource
- the data source linked to this AppSync Function. This parameter is required.this
public AppsyncFunctionProps.Builder name(java.lang.String name)
BaseAppsyncFunctionProps.getName()
name
- the name of the AppSync Function. This parameter is required.this
public AppsyncFunctionProps.Builder description(java.lang.String description)
BaseAppsyncFunctionProps.getDescription()
description
- the description for this AppSync Function.this
public AppsyncFunctionProps.Builder requestMappingTemplate(MappingTemplate requestMappingTemplate)
BaseAppsyncFunctionProps.getRequestMappingTemplate()
requestMappingTemplate
- the request mapping template for the AppSync Function.this
public AppsyncFunctionProps.Builder responseMappingTemplate(MappingTemplate responseMappingTemplate)
BaseAppsyncFunctionProps.getResponseMappingTemplate()
responseMappingTemplate
- the response mapping template for the AppSync Function.this
public AppsyncFunctionProps build()
AppsyncFunctionProps
java.lang.NullPointerException
- if any required attribute was not provided