Interface GetDurableExecutionResponse.Builder

  • Method Details

    • 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

      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

      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.
    • 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.

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

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

      Parameters:
      error - a consumer that will call methods on ErrorObject.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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:
    • 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:
    • 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

      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

      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.
    • traceHeader

      The trace headers associated with the durable execution.

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

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

      Parameters:
      traceHeader - a consumer that will call methods on TraceHeader.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: