Interface TestStateResponse.Builder

    • Method Detail

      • output

        TestStateResponse.Builder output​(String output)

        The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.

        Parameters:
        output - The JSON output data of the state. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • error

        TestStateResponse.Builder error​(String error)

        The error returned when the execution of a state fails.

        Parameters:
        error - The error returned when the execution of a state fails.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cause

        TestStateResponse.Builder cause​(String causeValue)

        A detailed explanation of the cause for the error when the execution of a state fails.

        Parameters:
        causeValue - A detailed explanation of the cause for the error when the execution of a state fails.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • inspectionData

        TestStateResponse.Builder inspectionData​(InspectionData inspectionData)

        Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The inspectionLevel request parameter specifies which details are returned.

        Parameters:
        inspectionData - Returns additional details about the state's execution, including its input and output data processing flow, and HTTP request and response information. The inspectionLevel request parameter specifies which details are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextState

        TestStateResponse.Builder nextState​(String nextState)

        The name of the next state to transition to. If you haven't defined a next state in your definition or if the execution of the state fails, this field doesn't contain a value.

        Parameters:
        nextState - The name of the next state to transition to. If you haven't defined a next state in your definition or if the execution of the state fails, this field doesn't contain a value.
        Returns:
        Returns a reference to this object so that method calls can be chained together.