@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InvokeResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
InvokeResult() |
Modifier and Type | Method and Description |
---|---|
InvokeResult |
clone() |
boolean |
equals(Object obj) |
String |
getExecutedVersion()
The version of the function that executed.
|
String |
getFunctionError()
If present, indicates that an error occurred during function execution.
|
String |
getLogResult()
The last 4 KB of the execution log, which is base64-encoded.
|
ByteBuffer |
getPayload()
The response from the function, or an error object.
|
Integer |
getStatusCode()
The HTTP status code is in the 200 range for a successful request.
|
int |
hashCode() |
void |
setExecutedVersion(String executedVersion)
The version of the function that executed.
|
void |
setFunctionError(String functionError)
If present, indicates that an error occurred during function execution.
|
void |
setLogResult(String logResult)
The last 4 KB of the execution log, which is base64-encoded.
|
void |
setPayload(ByteBuffer payload)
The response from the function, or an error object.
|
void |
setStatusCode(Integer statusCode)
The HTTP status code is in the 200 range for a successful request.
|
String |
toString()
Returns a string representation of this object.
|
InvokeResult |
withExecutedVersion(String executedVersion)
The version of the function that executed.
|
InvokeResult |
withFunctionError(String functionError)
If present, indicates that an error occurred during function execution.
|
InvokeResult |
withLogResult(String logResult)
The last 4 KB of the execution log, which is base64-encoded.
|
InvokeResult |
withPayload(ByteBuffer payload)
The response from the function, or an error object.
|
InvokeResult |
withStatusCode(Integer statusCode)
The HTTP status code is in the 200 range for a successful request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setStatusCode(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 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.
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(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 void setFunctionError(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 String getFunctionError()
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
public InvokeResult withFunctionError(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 void setLogResult(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 String getLogResult()
The last 4 KB of the execution log, which is base64-encoded.
public InvokeResult withLogResult(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 void setPayload(ByteBuffer payload)
The response from the function, or an error object.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload
- The response from the function, or an error object.public ByteBuffer getPayload()
The response from the function, or an error object.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public InvokeResult withPayload(ByteBuffer payload)
The response from the function, or an error object.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload
- The response from the function, or an error object.public void setExecutedVersion(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.
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 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.
public InvokeResult withExecutedVersion(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.
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 String toString()
toString
in class Object
Object.toString()
public InvokeResult clone()