Interface EvaluateCodeResponse.Builder

    • Method Detail

      • evaluationResult

        EvaluateCodeResponse.Builder evaluationResult​(String evaluationResult)

        The result of the evaluation operation.

        Parameters:
        evaluationResult - The result of the evaluation operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • error

        EvaluateCodeResponse.Builder error​(EvaluateCodeErrorDetail error)

        Contains the payload of the response error.

        Parameters:
        error - Contains the payload of the response error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • logs

        EvaluateCodeResponse.Builder logs​(Collection<String> 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

        EvaluateCodeResponse.Builder logs​(String... 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

        EvaluateCodeResponse.Builder stash​(String 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

        EvaluateCodeResponse.Builder outErrors​(String 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.