Interface FunctionConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>,SdkBuilder<FunctionConfiguration.Builder,FunctionConfiguration>,SdkPojo
- Enclosing class:
- FunctionConfiguration
public static interface FunctionConfiguration.Builder extends SdkPojo, CopyableBuilder<FunctionConfiguration.Builder,FunctionConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FunctionConfiguration.Buildercode(String code)Thefunctioncode that contains the request and response functions.FunctionConfiguration.BuilderdataSourceName(String dataSourceName)The name of theDataSource.FunctionConfiguration.Builderdescription(String description)TheFunctiondescription.FunctionConfiguration.BuilderfunctionArn(String functionArn)The Amazon Resource Name (ARN) of theFunctionobject.FunctionConfiguration.BuilderfunctionId(String functionId)A unique ID representing theFunctionobject.FunctionConfiguration.BuilderfunctionVersion(String functionVersion)The version of the request mapping template.FunctionConfiguration.BuildermaxBatchSize(Integer maxBatchSize)The maximum batching size for a resolver.FunctionConfiguration.Buildername(String name)The name of theFunctionobject.FunctionConfiguration.BuilderrequestMappingTemplate(String requestMappingTemplate)TheFunctionrequest mapping template.FunctionConfiguration.BuilderresponseMappingTemplate(String responseMappingTemplate)TheFunctionresponse mapping template.default FunctionConfiguration.Builderruntime(Consumer<AppSyncRuntime.Builder> runtime)Sets the value of the Runtime property for this object.FunctionConfiguration.Builderruntime(AppSyncRuntime runtime)Sets the value of the Runtime property for this object.default FunctionConfiguration.BuildersyncConfig(Consumer<SyncConfig.Builder> syncConfig)Sets the value of the SyncConfig property for this object.FunctionConfiguration.BuildersyncConfig(SyncConfig syncConfig)Sets the value of the SyncConfig property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
functionId
FunctionConfiguration.Builder functionId(String functionId)
A unique ID representing the
Functionobject.- Parameters:
functionId- A unique ID representing theFunctionobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functionArn
FunctionConfiguration.Builder functionArn(String functionArn)
The Amazon Resource Name (ARN) of the
Functionobject.- Parameters:
functionArn- The Amazon Resource Name (ARN) of theFunctionobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
FunctionConfiguration.Builder name(String name)
The name of the
Functionobject.- Parameters:
name- The name of theFunctionobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
FunctionConfiguration.Builder description(String description)
The
Functiondescription.- Parameters:
description- TheFunctiondescription.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceName
FunctionConfiguration.Builder dataSourceName(String dataSourceName)
The name of the
DataSource.- Parameters:
dataSourceName- The name of theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestMappingTemplate
FunctionConfiguration.Builder requestMappingTemplate(String requestMappingTemplate)
The
Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.- Parameters:
requestMappingTemplate- TheFunctionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseMappingTemplate
FunctionConfiguration.Builder responseMappingTemplate(String responseMappingTemplate)
The
Functionresponse mapping template.- Parameters:
responseMappingTemplate- TheFunctionresponse mapping template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functionVersion
FunctionConfiguration.Builder functionVersion(String functionVersion)
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
- Parameters:
functionVersion- The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syncConfig
FunctionConfiguration.Builder syncConfig(SyncConfig syncConfig)
Sets the value of the SyncConfig property for this object.- Parameters:
syncConfig- The new value for the SyncConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syncConfig
default FunctionConfiguration.Builder syncConfig(Consumer<SyncConfig.Builder> syncConfig)
Sets the value of the SyncConfig property for this object. This is a convenience method that creates an instance of theSyncConfig.Builderavoiding the need to create one manually viaSyncConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosyncConfig(SyncConfig).- Parameters:
syncConfig- a consumer that will call methods onSyncConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
syncConfig(SyncConfig)
-
maxBatchSize
FunctionConfiguration.Builder maxBatchSize(Integer maxBatchSize)
The maximum batching size for a resolver.
- Parameters:
maxBatchSize- The maximum batching size for a resolver.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtime
FunctionConfiguration.Builder runtime(AppSyncRuntime runtime)
Sets the value of the Runtime property for this object.- Parameters:
runtime- The new value for the Runtime property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtime
default FunctionConfiguration.Builder runtime(Consumer<AppSyncRuntime.Builder> runtime)
Sets the value of the Runtime property for this object. This is a convenience method that creates an instance of theAppSyncRuntime.Builderavoiding the need to create one manually viaAppSyncRuntime.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toruntime(AppSyncRuntime).- Parameters:
runtime- a consumer that will call methods onAppSyncRuntime.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
runtime(AppSyncRuntime)
-
code
FunctionConfiguration.Builder code(String code)
The
functioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.- Parameters:
code- Thefunctioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-