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.Buildercode(String code)The code definition to be evaluated.EvaluateCodeRequest.Buildercontext(String context)The map that holds all of the contextual information for your resolver invocation.EvaluateCodeRequest.Builderfunction(String function)The function within the code to be evaluated.EvaluateCodeRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)EvaluateCodeRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default EvaluateCodeRequest.Builderruntime(Consumer<AppSyncRuntime.Builder> runtime)The runtime to be used when evaluating the code.EvaluateCodeRequest.Builderruntime(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 Detail
-
runtime
EvaluateCodeRequest.Builder runtime(AppSyncRuntime 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
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_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:
runtime(AppSyncRuntime)
-
code
EvaluateCodeRequest.Builder code(String 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
EvaluateCodeRequest.Builder context(String 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
EvaluateCodeRequest.Builder function(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
EvaluateCodeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-