/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object that includes a chunk of the response payload. When the stream has
* ended, Lambda includes a InvokeComplete
object.See
* Also:
AWS
* API Reference
A chunk of the streamed response payload.
*/ inline const InvokeResponseStreamUpdate& GetPayloadChunk() const{ return m_payloadChunk; } /** *A chunk of the streamed response payload.
*/ inline bool PayloadChunkHasBeenSet() const { return m_payloadChunkHasBeenSet; } /** *A chunk of the streamed response payload.
*/ inline void SetPayloadChunk(const InvokeResponseStreamUpdate& value) { m_payloadChunkHasBeenSet = true; m_payloadChunk = value; } /** *A chunk of the streamed response payload.
*/ inline void SetPayloadChunk(InvokeResponseStreamUpdate&& value) { m_payloadChunkHasBeenSet = true; m_payloadChunk = std::move(value); } /** *A chunk of the streamed response payload.
*/ inline InvokeWithResponseStreamResponseEvent& WithPayloadChunk(const InvokeResponseStreamUpdate& value) { SetPayloadChunk(value); return *this;} /** *A chunk of the streamed response payload.
*/ inline InvokeWithResponseStreamResponseEvent& WithPayloadChunk(InvokeResponseStreamUpdate&& value) { SetPayloadChunk(std::move(value)); return *this;} /** *An object that's returned when the stream has ended and all the payload * chunks have been returned.
*/ inline const InvokeWithResponseStreamCompleteEvent& GetInvokeComplete() const{ return m_invokeComplete; } /** *An object that's returned when the stream has ended and all the payload * chunks have been returned.
*/ inline bool InvokeCompleteHasBeenSet() const { return m_invokeCompleteHasBeenSet; } /** *An object that's returned when the stream has ended and all the payload * chunks have been returned.
*/ inline void SetInvokeComplete(const InvokeWithResponseStreamCompleteEvent& value) { m_invokeCompleteHasBeenSet = true; m_invokeComplete = value; } /** *An object that's returned when the stream has ended and all the payload * chunks have been returned.
*/ inline void SetInvokeComplete(InvokeWithResponseStreamCompleteEvent&& value) { m_invokeCompleteHasBeenSet = true; m_invokeComplete = std::move(value); } /** *An object that's returned when the stream has ended and all the payload * chunks have been returned.
*/ inline InvokeWithResponseStreamResponseEvent& WithInvokeComplete(const InvokeWithResponseStreamCompleteEvent& value) { SetInvokeComplete(value); return *this;} /** *An object that's returned when the stream has ended and all the payload * chunks have been returned.
*/ inline InvokeWithResponseStreamResponseEvent& WithInvokeComplete(InvokeWithResponseStreamCompleteEvent&& value) { SetInvokeComplete(std::move(value)); return *this;} private: InvokeResponseStreamUpdate m_payloadChunk; bool m_payloadChunkHasBeenSet = false; InvokeWithResponseStreamCompleteEvent m_invokeComplete; bool m_invokeCompleteHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws