JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.lambda.model

Class InvokeResult

    • Constructor Detail

      • InvokeResult

        public InvokeResult()
    • Method Detail

      • setStatusCode

        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.

        Parameters:
        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.
      • getStatusCode

        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.

        Returns:
        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.
      • withStatusCode

        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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.
      • setFunctionError

        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.

        Parameters:
        functionError - If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
      • getFunctionError

        public String getFunctionError()

        If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.

        Returns:
        If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
      • withFunctionError

        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.

        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.
      • setLogResult

        public void setLogResult(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.
      • getLogResult

        public String getLogResult()

        The last 4 KB of the execution log, which is base64-encoded.

        Returns:
        The last 4 KB of the execution log, which is base64-encoded.
      • withLogResult

        public InvokeResult withLogResult(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.
      • setPayload

        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.

        Parameters:
        payload - The response from the function, or an error object.
      • getPayload

        public ByteBuffer getPayload()

        The response from the function, or an error object.

        ByteBuffers 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.

        Returns:
        The response from the function, or an error object.
      • withPayload

        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.

        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.
      • setExecutedVersion

        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.

        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.
      • getExecutedVersion

        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.

        Returns:
        The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
      • withExecutedVersion

        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.

        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.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /