public class InvokeResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
InvokeResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExecutedVersion()
The version of the function that executed.
|
java.lang.String |
getFunctionError()
If present, indicates that an error occurred during function execution.
|
java.lang.String |
getLogResult()
The last 4 KB of the execution log, which is base64 encoded.
|
java.nio.ByteBuffer |
getPayload()
The response from the function, or an error object.
|
java.lang.Integer |
getStatusCode()
The HTTP status code is in the 200 range for a successful request.
|
int |
hashCode() |
void |
setExecutedVersion(java.lang.String executedVersion)
The version of the function that executed.
|
void |
setFunctionError(java.lang.String functionError)
If present, indicates that an error occurred during function execution.
|
void |
setLogResult(java.lang.String logResult)
The last 4 KB of the execution log, which is base64 encoded.
|
void |
setPayload(java.nio.ByteBuffer payload)
The response from the function, or an error object.
|
void |
setStatusCode(java.lang.Integer statusCode)
The HTTP status code is in the 200 range for a successful request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InvokeResult |
withExecutedVersion(java.lang.String executedVersion)
The version of the function that executed.
|
InvokeResult |
withFunctionError(java.lang.String functionError)
If present, indicates that an error occurred during function execution.
|
InvokeResult |
withLogResult(java.lang.String logResult)
The last 4 KB of the execution log, which is base64 encoded.
|
InvokeResult |
withPayload(java.nio.ByteBuffer payload)
The response from the function, or an error object.
|
InvokeResult |
withStatusCode(java.lang.Integer statusCode)
The HTTP status code is in the 200 range for a successful request.
|
public java.lang.Integer getStatusCode()
The HTTP status code is in the 200 range for a successful request. For
the RequestResponse
invocation type, this status code is
200. For the Event
invocation type, this status code is 202.
For the DryRun
invocation type, the status code is 204.
The HTTP status code is in the 200 range for a successful
request. For the RequestResponse
invocation type,
this status code is 200. For the Event
invocation
type, this status code is 202. For the DryRun
invocation type, the status code is 204.
public void setStatusCode(java.lang.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 the Event
invocation type, this status code is 202.
For the DryRun
invocation type, the status code is 204.
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 the Event
invocation
type, this status code is 202. For the DryRun
invocation type, the status code is 204.
public InvokeResult withStatusCode(java.lang.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 the Event
invocation type, this status code is 202.
For the DryRun
invocation type, the status code is 204.
Returns a reference to this object so that method calls can be chained together.
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 the Event
invocation
type, this status code is 202. For the DryRun
invocation type, the status code is 204.
public java.lang.String getFunctionError()
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
public void setFunctionError(java.lang.String functionError)
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
functionError
- If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
public InvokeResult withFunctionError(java.lang.String functionError)
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
Returns a reference to this object so that method calls can be chained together.
functionError
- If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
public java.lang.String getLogResult()
The last 4 KB of the execution log, which is base64 encoded.
The last 4 KB of the execution log, which is base64 encoded.
public void setLogResult(java.lang.String logResult)
The last 4 KB of the execution log, which is base64 encoded.
logResult
- The last 4 KB of the execution log, which is base64 encoded.
public InvokeResult withLogResult(java.lang.String logResult)
The last 4 KB of the execution log, which is base64 encoded.
Returns a reference to this object so that method calls can be chained together.
logResult
- The last 4 KB of the execution log, which is base64 encoded.
public java.nio.ByteBuffer getPayload()
The response from the function, or an error object.
The response from the function, or an error object.
public void setPayload(java.nio.ByteBuffer payload)
The response from the function, or an error object.
payload
- The response from the function, or an error object.
public InvokeResult withPayload(java.nio.ByteBuffer payload)
The response from the function, or an error object.
Returns a reference to this object so that method calls can be chained together.
payload
- The response from the function, or an error object.
public java.lang.String getExecutedVersion()
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
Constraints:
Length: 1 - 1024
Pattern: (\$LATEST|[0-9]+)
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
public void setExecutedVersion(java.lang.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.
Constraints:
Length: 1 - 1024
Pattern: (\$LATEST|[0-9]+)
executedVersion
- The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
public InvokeResult withExecutedVersion(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: (\$LATEST|[0-9]+)
executedVersion
- The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.