Interface EvaluateMappingTemplateResponse.Builder

  • Method Details

    • evaluationResult

      EvaluateMappingTemplateResponse.Builder evaluationResult(String 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 ErrorDetail object.

      Parameters:
      error - The ErrorDetail object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      The ErrorDetail object.

      This is a convenience method that creates an instance of the ErrorDetail.Builder avoiding the need to create one manually via ErrorDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to error(ErrorDetail).

      Parameters:
      error - a consumer that will call methods on ErrorDetail.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.info and util.log.error in the evaluated code.

      Parameters:
      logs - A list of logs that were generated by calls to util.log.info and util.log.error in 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.info and util.log.error in the evaluated code.

      Parameters:
      logs - A list of logs that were generated by calls to util.log.info and util.log.error in 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 stash object 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 single stash object 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.