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.Builder
runtime
(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
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
-
runtime
The runtime to be used when evaluating the code. Currently, only the
APPSYNC_JS
runtime is supported.- Parameters:
runtime
- The runtime to be used when evaluating the code. Currently, only theAPPSYNC_JS
runtime 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_JS
runtime is supported.AppSyncRuntime.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 code definition to be evaluated. Note that
code
andruntime
are both required for this action. Theruntime
value must beAPPSYNC_JS
.- Parameters:
code
- The code definition to be evaluated. Note thatcode
andruntime
are both required for this action. Theruntime
value 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
context
is required for this action.- Parameters:
context
- The map that holds all of the contextual information for your resolver invocation. Acontext
is 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
request
andresponse
.- Parameters:
function
- The function within the code to be evaluated. If provided, the valid values arerequest
andresponse
.- 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.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
EvaluateCodeRequest.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.
-