Interface GetDurableExecutionResponse.Builder

    • Method Detail

      • durableExecutionArn

        GetDurableExecutionResponse.Builder durableExecutionArn​(String durableExecutionArn)

        The Amazon Resource Name (ARN) of the durable execution.

        Parameters:
        durableExecutionArn - The Amazon Resource Name (ARN) of the durable execution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durableExecutionName

        GetDurableExecutionResponse.Builder durableExecutionName​(String durableExecutionName)

        The name of the durable execution. This is either the name you provided when invoking the function, or a system-generated unique identifier if no name was provided.

        Parameters:
        durableExecutionName - The name of the durable execution. This is either the name you provided when invoking the function, or a system-generated unique identifier if no name was provided.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • functionArn

        GetDurableExecutionResponse.Builder functionArn​(String functionArn)

        The Amazon Resource Name (ARN) of the Lambda function that was invoked to start this durable execution.

        Parameters:
        functionArn - The Amazon Resource Name (ARN) of the Lambda function that was invoked to start this durable execution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • inputPayload

        GetDurableExecutionResponse.Builder inputPayload​(String inputPayload)

        The JSON input payload that was provided when the durable execution was started. For asynchronous invocations, this is limited to 256 KB. For synchronous invocations, this can be up to 6 MB.

        Parameters:
        inputPayload - The JSON input payload that was provided when the durable execution was started. For asynchronous invocations, this is limited to 256 KB. For synchronous invocations, this can be up to 6 MB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • result

        GetDurableExecutionResponse.Builder result​(String result)

        The JSON result returned by the durable execution if it completed successfully. This field is only present when the execution status is SUCCEEDED. The result is limited to 256 KB.

        Parameters:
        result - The JSON result returned by the durable execution if it completed successfully. This field is only present when the execution status is SUCCEEDED. The result is limited to 256 KB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • error

        GetDurableExecutionResponse.Builder error​(ErrorObject error)

        Error information if the durable execution failed. This field is only present when the execution status is FAILED, TIMED_OUT, or STOPPED. The combined size of all error fields is limited to 256 KB.

        Parameters:
        error - Error information if the durable execution failed. This field is only present when the execution status is FAILED, TIMED_OUT, or STOPPED. The combined size of all error fields is limited to 256 KB.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startTimestamp

        GetDurableExecutionResponse.Builder startTimestamp​(Instant startTimestamp)

        The date and time when the durable execution started, in Unix timestamp format.

        Parameters:
        startTimestamp - The date and time when the durable execution started, in Unix timestamp format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        GetDurableExecutionResponse.Builder status​(String status)

        The current status of the durable execution. Valid values are RUNNING, SUCCEEDED, FAILED, TIMED_OUT, and STOPPED.

        Parameters:
        status - The current status of the durable execution. Valid values are RUNNING, SUCCEEDED, FAILED, TIMED_OUT, and STOPPED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExecutionStatus, ExecutionStatus
      • status

        GetDurableExecutionResponse.Builder status​(ExecutionStatus status)

        The current status of the durable execution. Valid values are RUNNING, SUCCEEDED, FAILED, TIMED_OUT, and STOPPED.

        Parameters:
        status - The current status of the durable execution. Valid values are RUNNING, SUCCEEDED, FAILED, TIMED_OUT, and STOPPED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ExecutionStatus, ExecutionStatus
      • endTimestamp

        GetDurableExecutionResponse.Builder endTimestamp​(Instant endTimestamp)

        The date and time when the durable execution ended, in Unix timestamp format. This field is only present if the execution has completed (status is SUCCEEDED, FAILED, TIMED_OUT, or STOPPED).

        Parameters:
        endTimestamp - The date and time when the durable execution ended, in Unix timestamp format. This field is only present if the execution has completed (status is SUCCEEDED, FAILED, TIMED_OUT, or STOPPED).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • version

        GetDurableExecutionResponse.Builder version​(String version)

        The version of the Lambda function that was invoked for this durable execution. This ensures that all replays during the execution use the same function version.

        Parameters:
        version - The version of the Lambda function that was invoked for this durable execution. This ensures that all replays during the execution use the same function version.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • traceHeader

        GetDurableExecutionResponse.Builder traceHeader​(TraceHeader traceHeader)

        The trace headers associated with the durable execution.

        Parameters:
        traceHeader - The trace headers associated with the durable execution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.