/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Lambda
{
namespace Model
{
/**
* A chunk of the streamed response payload.
See Also:
AWS
* API Reference
*/
class InvokeResponseStreamUpdate
{
public:
AWS_LAMBDA_API InvokeResponseStreamUpdate() = default;
AWS_LAMBDA_API InvokeResponseStreamUpdate(Aws::Vector&& value) { m_payload = std::move(value); }
/**
* Data returned by your Lambda function.
*/
inline const Aws::Vector& GetPayload() const { return m_payload; }
/**
* Data returned by your Lambda function.
*/
inline Aws::Vector&& GetPayloadWithOwnership() { return std::move(m_payload); }
/**
* Data returned by your Lambda function.
*/
inline void SetPayload(const Aws::Vector& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* Data returned by your Lambda function.
*/
inline void SetPayload(Aws::Vector&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* Data returned by your Lambda function.
*/
inline InvokeResponseStreamUpdate& WithPayload(const Aws::Vector& value) { SetPayload(value); return *this;}
/**
* Data returned by your Lambda function.
*/
inline InvokeResponseStreamUpdate& WithPayload(Aws::Vector&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::Vector m_payload;
bool m_payloadHasBeenSet = false;
};
} // namespace Model
} // namespace Lambda
} // namespace Aws