Interface GetDurableExecutionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDurableExecutionResponse.Builder,GetDurableExecutionResponse>,LambdaResponse.Builder,SdkBuilder<GetDurableExecutionResponse.Builder,GetDurableExecutionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetDurableExecutionResponse
@Mutable @NotThreadSafe public static interface GetDurableExecutionResponse.Builder extends LambdaResponse.Builder, SdkPojo, CopyableBuilder<GetDurableExecutionResponse.Builder,GetDurableExecutionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetDurableExecutionResponse.BuilderdurableExecutionArn(String durableExecutionArn)The Amazon Resource Name (ARN) of the durable execution.GetDurableExecutionResponse.BuilderdurableExecutionName(String durableExecutionName)The name of the durable execution.GetDurableExecutionResponse.BuilderendTimestamp(Instant endTimestamp)The date and time when the durable execution ended, in Unix timestamp format.default GetDurableExecutionResponse.Buildererror(Consumer<ErrorObject.Builder> error)Error information if the durable execution failed.GetDurableExecutionResponse.Buildererror(ErrorObject error)Error information if the durable execution failed.GetDurableExecutionResponse.BuilderfunctionArn(String functionArn)The Amazon Resource Name (ARN) of the Lambda function that was invoked to start this durable execution.GetDurableExecutionResponse.BuilderinputPayload(String inputPayload)The JSON input payload that was provided when the durable execution was started.GetDurableExecutionResponse.Builderresult(String result)The JSON result returned by the durable execution if it completed successfully.GetDurableExecutionResponse.BuilderstartTimestamp(Instant startTimestamp)The date and time when the durable execution started, in Unix timestamp format.GetDurableExecutionResponse.Builderstatus(String status)The current status of the durable execution.GetDurableExecutionResponse.Builderstatus(ExecutionStatus status)The current status of the durable execution.default GetDurableExecutionResponse.BuildertraceHeader(Consumer<TraceHeader.Builder> traceHeader)The trace headers associated with the durable execution.GetDurableExecutionResponse.BuildertraceHeader(TraceHeader traceHeader)The trace headers associated with the durable execution.GetDurableExecutionResponse.Builderversion(String version)The version of the Lambda function that was invoked for this durable execution.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
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 isSUCCEEDED. 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, 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
default GetDurableExecutionResponse.Builder error(Consumer<ErrorObject.Builder> 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:
error(ErrorObject)
-
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, 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:
ExecutionStatus,ExecutionStatus
-
status
GetDurableExecutionResponse.Builder status(ExecutionStatus 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:
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, 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
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.
-
traceHeader
default GetDurableExecutionResponse.Builder traceHeader(Consumer<TraceHeader.Builder> 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:
traceHeader(TraceHeader)
-
-