Interface EvaluateCodeRequest.Builder
- All Superinterfaces:
AppSyncRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<EvaluateCodeRequest.Builder,,EvaluateCodeRequest> SdkBuilder<EvaluateCodeRequest.Builder,,EvaluateCodeRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
EvaluateCodeRequest
public static interface EvaluateCodeRequest.Builder
extends AppSyncRequest.Builder, SdkPojo, CopyableBuilder<EvaluateCodeRequest.Builder,EvaluateCodeRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe code definition to be evaluated.The map that holds all of the contextual information for your resolver invocation.The function within the code to be evaluated.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default EvaluateCodeRequest.Builderruntime(Consumer<AppSyncRuntime.Builder> runtime) The runtime to be used when evaluating the code.runtime(AppSyncRuntime runtime) The runtime to be used when evaluating the code.Methods inherited from interface software.amazon.awssdk.services.appsync.model.AppSyncRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
runtime
The runtime to be used when evaluating the code. Currently, only the
APPSYNC_JSruntime is supported.- Parameters:
runtime- The runtime to be used when evaluating the code. Currently, only theAPPSYNC_JSruntime is supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runtime
The runtime to be used when evaluating the code. Currently, only the
This is a convenience method that creates an instance of theAPPSYNC_JSruntime is supported.AppSyncRuntime.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:
-
code
The code definition to be evaluated. Note that
codeandruntimeare both required for this action. Theruntimevalue must beAPPSYNC_JS.- Parameters:
code- The code definition to be evaluated. Note thatcodeandruntimeare both required for this action. Theruntimevalue must beAPPSYNC_JS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
The map that holds all of the contextual information for your resolver invocation. A
contextis required for this action.- Parameters:
context- The map that holds all of the contextual information for your resolver invocation. Acontextis required for this action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
function
The function within the code to be evaluated. If provided, the valid values are
requestandresponse.- Parameters:
function- The function within the code to be evaluated. If provided, the valid values arerequestandresponse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
EvaluateCodeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
EvaluateCodeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-