Interface CreateFunctionRequest.Builder
- All Superinterfaces:
AppSyncRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateFunctionRequest.Builder,
,CreateFunctionRequest> SdkBuilder<CreateFunctionRequest.Builder,
,CreateFunctionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateFunctionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe GraphQL API ID.Thefunction
code that contains the request and response functions.dataSourceName
(String dataSourceName) TheFunction
DataSource
name.description
(String description) TheFunction
description.functionVersion
(String functionVersion) Theversion
of the request mapping template.maxBatchSize
(Integer maxBatchSize) The maximum batching size for a resolver.TheFunction
name.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requestMappingTemplate
(String requestMappingTemplate) TheFunction
request mapping template.responseMappingTemplate
(String responseMappingTemplate) TheFunction
response mapping template.default CreateFunctionRequest.Builder
runtime
(Consumer<AppSyncRuntime.Builder> runtime) Sets the value of the Runtime property for this object.runtime
(AppSyncRuntime runtime) Sets the value of the Runtime property for this object.default CreateFunctionRequest.Builder
syncConfig
(Consumer<SyncConfig.Builder> syncConfig) Sets the value of the SyncConfig property for this object.syncConfig
(SyncConfig syncConfig) Sets the value of the SyncConfig property for this object.Methods inherited from interface software.amazon.awssdk.services.appsync.model.AppSyncRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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 Details
-
apiId
The GraphQL API ID.
- Parameters:
apiId
- The GraphQL API ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The
Function
name. The function name does not have to be unique.- Parameters:
name
- TheFunction
name. The function name does not have to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The
Function
description.- Parameters:
description
- TheFunction
description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceName
The
Function
DataSource
name.- Parameters:
dataSourceName
- TheFunction
DataSource
name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestMappingTemplate
The
Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.- Parameters:
requestMappingTemplate
- TheFunction
request 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
The
Function
response mapping template.- Parameters:
responseMappingTemplate
- TheFunction
response mapping template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functionVersion
The
version
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersion
is required.- Parameters:
functionVersion
- Theversion
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersion
is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
Sets the value of the SyncConfig property for this object. This is a convenience method that creates an instance of theSyncConfig.Builder
avoiding the need to create one manually viaSyncConfig.builder()
.When the
Consumer
completes,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:
-
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
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
Sets the value of the Runtime property for this object. This is a convenience method that creates an instance of theAppSyncRuntime.Builder
avoiding the need to create one manually viaAppSyncRuntime.builder()
.When the
Consumer
completes,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:
-
code
The
function
code that contains the request and response functions. When code is used, theruntime
is required. Theruntime
value must beAPPSYNC_JS
.- Parameters:
code
- Thefunction
code that contains the request and response functions. When code is used, theruntime
is required. Theruntime
value must beAPPSYNC_JS
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateFunctionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateFunctionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-