Interface EvaluateMappingTemplateResponse.Builder
- All Superinterfaces:
AppSyncResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<EvaluateMappingTemplateResponse.Builder,,EvaluateMappingTemplateResponse> SdkBuilder<EvaluateMappingTemplateResponse.Builder,,EvaluateMappingTemplateResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
EvaluateMappingTemplateResponse
-
Method Summary
Modifier and TypeMethodDescriptionerror(Consumer<ErrorDetail.Builder> error) TheErrorDetailobject.error(ErrorDetail error) TheErrorDetailobject.evaluationResult(String evaluationResult) The mapping template; this can be a request or response template.A list of logs that were generated by calls toutil.log.infoandutil.log.errorin the evaluated code.logs(Collection<String> logs) A list of logs that were generated by calls toutil.log.infoandutil.log.errorin the evaluated code.The list of runtime errors that are added to the GraphQL operation response.An object available inside each resolver and function handler.Methods inherited from interface software.amazon.awssdk.services.appsync.model.AppSyncResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
evaluationResult
The mapping template; this can be a request or response template.
- Parameters:
evaluationResult- The mapping template; this can be a request or response template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
The
ErrorDetailobject.- Parameters:
error- TheErrorDetailobject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
The
This is a convenience method that creates an instance of theErrorDetailobject.ErrorDetail.Builderavoiding the need to create one manually viaErrorDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorDetail).- Parameters:
error- a consumer that will call methods onErrorDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logs
A list of logs that were generated by calls to
util.log.infoandutil.log.errorin the evaluated code.- Parameters:
logs- A list of logs that were generated by calls toutil.log.infoandutil.log.errorin the evaluated code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logs
A list of logs that were generated by calls to
util.log.infoandutil.log.errorin the evaluated code.- Parameters:
logs- A list of logs that were generated by calls toutil.log.infoandutil.log.errorin the evaluated code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stash
An object available inside each resolver and function handler. A single
stashobject lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.- Parameters:
stash- An object available inside each resolver and function handler. A singlestashobject lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outErrors
The list of runtime errors that are added to the GraphQL operation response.
- Parameters:
outErrors- The list of runtime errors that are added to the GraphQL operation response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-