Interface CreateFunctionRequest.Builder
-
- All Superinterfaces:
AppSyncRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>,SdkBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateFunctionRequest
public static interface CreateFunctionRequest.Builder extends AppSyncRequest.Builder, SdkPojo, CopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateFunctionRequest.BuilderapiId(String apiId)The GraphQL API ID.CreateFunctionRequest.Buildercode(String code)Thefunctioncode that contains the request and response functions.CreateFunctionRequest.BuilderdataSourceName(String dataSourceName)TheFunctionDataSourcename.CreateFunctionRequest.Builderdescription(String description)TheFunctiondescription.CreateFunctionRequest.BuilderfunctionVersion(String functionVersion)Theversionof the request mapping template.CreateFunctionRequest.BuildermaxBatchSize(Integer maxBatchSize)The maximum batching size for a resolver.CreateFunctionRequest.Buildername(String name)TheFunctionname.CreateFunctionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateFunctionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateFunctionRequest.BuilderrequestMappingTemplate(String requestMappingTemplate)TheFunctionrequest mapping template.CreateFunctionRequest.BuilderresponseMappingTemplate(String responseMappingTemplate)TheFunctionresponse mapping template.default CreateFunctionRequest.Builderruntime(Consumer<AppSyncRuntime.Builder> runtime)Sets the value of the Runtime property for this object.CreateFunctionRequest.Builderruntime(AppSyncRuntime runtime)Sets the value of the Runtime property for this object.default CreateFunctionRequest.BuildersyncConfig(Consumer<SyncConfig.Builder> syncConfig)Sets the value of the SyncConfig property for this object.CreateFunctionRequest.BuildersyncConfig(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 Detail
-
apiId
CreateFunctionRequest.Builder apiId(String 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
CreateFunctionRequest.Builder name(String name)
The
Functionname. The function name does not have to be unique.- Parameters:
name- TheFunctionname. 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
CreateFunctionRequest.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
CreateFunctionRequest.Builder dataSourceName(String dataSourceName)
The
FunctionDataSourcename.- Parameters:
dataSourceName- TheFunctionDataSourcename.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestMappingTemplate
CreateFunctionRequest.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
CreateFunctionRequest.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
CreateFunctionRequest.Builder functionVersion(String functionVersion)
The
versionof the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersionis required.- Parameters:
functionVersion- Theversionof the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, thefunctionVersionis required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
syncConfig
CreateFunctionRequest.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 CreateFunctionRequest.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
CreateFunctionRequest.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
CreateFunctionRequest.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 CreateFunctionRequest.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
CreateFunctionRequest.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.
-
overrideConfiguration
CreateFunctionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateFunctionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-