Interface InvokeResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<InvokeResponse.Builder,InvokeResponse>
,LambdaResponse.Builder
,SdkBuilder<InvokeResponse.Builder,InvokeResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- InvokeResponse
public static interface InvokeResponse.Builder extends LambdaResponse.Builder, SdkPojo, CopyableBuilder<InvokeResponse.Builder,InvokeResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvokeResponse.Builder
executedVersion(String executedVersion)
The version of the function that executed.InvokeResponse.Builder
functionError(String functionError)
If present, indicates that an error occurred during function execution.InvokeResponse.Builder
logResult(String logResult)
The last 4 KB of the execution log, which is base64-encoded.InvokeResponse.Builder
payload(SdkBytes payload)
The response from the function, or an error object.InvokeResponse.Builder
statusCode(Integer statusCode)
The HTTP status code is in the 200 range for a successful request.-
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
-
statusCode
InvokeResponse.Builder statusCode(Integer statusCode)
The HTTP status code is in the 200 range for a successful request. For the
RequestResponse
invocation type, this status code is 200. For theEvent
invocation type, this status code is 202. For theDryRun
invocation type, the status code is 204.- Parameters:
statusCode
- The HTTP status code is in the 200 range for a successful request. For theRequestResponse
invocation type, this status code is 200. For theEvent
invocation type, this status code is 202. For theDryRun
invocation type, the status code is 204.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
functionError
InvokeResponse.Builder functionError(String functionError)
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
- Parameters:
functionError
- If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logResult
InvokeResponse.Builder logResult(String logResult)
The last 4 KB of the execution log, which is base64-encoded.
- Parameters:
logResult
- The last 4 KB of the execution log, which is base64-encoded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
payload
InvokeResponse.Builder payload(SdkBytes payload)
The response from the function, or an error object.
- Parameters:
payload
- The response from the function, or an error object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executedVersion
InvokeResponse.Builder executedVersion(String executedVersion)
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
- Parameters:
executedVersion
- The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-