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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EvaluateCodeRequest.Builder
code(String code)
The code definition to be evaluated.EvaluateCodeRequest.Builder
context(String context)
The map that holds all of the contextual information for your resolver invocation.EvaluateCodeRequest.Builder
function(String function)
The function within the code to be evaluated.EvaluateCodeRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
EvaluateCodeRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
default EvaluateCodeRequest.Builder
runtime(Consumer<AppSyncRuntime.Builder> runtime)
The runtime to be used when evaluating the code.EvaluateCodeRequest.Builder
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
runtime
EvaluateCodeRequest.Builder runtime(AppSyncRuntime 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
default EvaluateCodeRequest.Builder runtime(Consumer<AppSyncRuntime.Builder> 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:
runtime(AppSyncRuntime)
-
code
EvaluateCodeRequest.Builder code(String 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
EvaluateCodeRequest.Builder context(String 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
EvaluateCodeRequest.Builder function(String 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
EvaluateCodeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-