Interface GetDurableExecutionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDurableExecutionResponse.Builder,,GetDurableExecutionResponse> LambdaResponse.Builder,SdkBuilder<GetDurableExecutionResponse.Builder,,GetDurableExecutionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetDurableExecutionResponse
-
Method Summary
Modifier and TypeMethodDescriptiondurableExecutionArn(String durableExecutionArn) The Amazon Resource Name (ARN) of the durable execution.durableExecutionName(String durableExecutionName) The name of the durable execution.endTimestamp(Instant endTimestamp) The date and time when the durable execution ended, in Unix timestamp format.error(Consumer<ErrorObject.Builder> error) Error information if the durable execution failed.error(ErrorObject error) Error information if the durable execution failed.functionArn(String functionArn) The Amazon Resource Name (ARN) of the Lambda function that was invoked to start this durable execution.inputPayload(String inputPayload) The JSON input payload that was provided when the durable execution was started.The JSON result returned by the durable execution if it completed successfully.startTimestamp(Instant startTimestamp) The date and time when the durable execution started, in Unix timestamp format.The current status of the durable execution.status(ExecutionStatus status) The current status of the durable execution.traceHeader(Consumer<TraceHeader.Builder> traceHeader) The trace headers associated with the durable execution.traceHeader(TraceHeader traceHeader) The trace headers associated with the durable execution.The version of the Lambda function that was invoked for this durable execution.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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 isSUCCEEDED. 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, orSTOPPED. 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 isFAILED,TIMED_OUT, orSTOPPED. 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
This is a convenience method that creates an instance of theFAILED,TIMED_OUT, orSTOPPED. The combined size of all error fields is limited to 256 KB.ErrorObject.Builderavoiding the need to create one manually viaErrorObject.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorObject).- Parameters:
error- a consumer that will call methods onErrorObject.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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, andSTOPPED.- Parameters:
status- The current status of the durable execution. Valid values areRUNNING,SUCCEEDED,FAILED,TIMED_OUT, andSTOPPED.- 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, andSTOPPED.- Parameters:
status- The current status of the durable execution. Valid values areRUNNING,SUCCEEDED,FAILED,TIMED_OUT, andSTOPPED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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, orSTOPPED).- 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 isSUCCEEDED,FAILED,TIMED_OUT, orSTOPPED).- 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 theTraceHeader.Builderavoiding the need to create one manually viaTraceHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totraceHeader(TraceHeader).- Parameters:
traceHeader- a consumer that will call methods onTraceHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-