AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ResponseChunk.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/ContentDeltaEvent.h>
9#include <aws/bedrock-agentcore/model/ContentStartEvent.h>
10#include <aws/bedrock-agentcore/model/ContentStopEvent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentCore {
22namespace Model {
23
32 public:
33 AWS_BEDROCKAGENTCORE_API ResponseChunk() = default;
34 AWS_BEDROCKAGENTCORE_API ResponseChunk(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTCORE_API ResponseChunk& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const ContentStartEvent& GetContentStart() const { return m_contentStart; }
44 inline bool ContentStartHasBeenSet() const { return m_contentStartHasBeenSet; }
45 template <typename ContentStartT = ContentStartEvent>
46 void SetContentStart(ContentStartT&& value) {
47 m_contentStartHasBeenSet = true;
48 m_contentStart = std::forward<ContentStartT>(value);
49 }
50 template <typename ContentStartT = ContentStartEvent>
51 ResponseChunk& WithContentStart(ContentStartT&& value) {
52 SetContentStart(std::forward<ContentStartT>(value));
53 return *this;
54 }
56
58
62 inline const ContentDeltaEvent& GetContentDelta() const { return m_contentDelta; }
63 inline bool ContentDeltaHasBeenSet() const { return m_contentDeltaHasBeenSet; }
64 template <typename ContentDeltaT = ContentDeltaEvent>
65 void SetContentDelta(ContentDeltaT&& value) {
66 m_contentDeltaHasBeenSet = true;
67 m_contentDelta = std::forward<ContentDeltaT>(value);
68 }
69 template <typename ContentDeltaT = ContentDeltaEvent>
70 ResponseChunk& WithContentDelta(ContentDeltaT&& value) {
71 SetContentDelta(std::forward<ContentDeltaT>(value));
72 return *this;
73 }
75
77
81 inline const ContentStopEvent& GetContentStop() const { return m_contentStop; }
82 inline bool ContentStopHasBeenSet() const { return m_contentStopHasBeenSet; }
83 template <typename ContentStopT = ContentStopEvent>
84 void SetContentStop(ContentStopT&& value) {
85 m_contentStopHasBeenSet = true;
86 m_contentStop = std::forward<ContentStopT>(value);
87 }
88 template <typename ContentStopT = ContentStopEvent>
89 ResponseChunk& WithContentStop(ContentStopT&& value) {
90 SetContentStop(std::forward<ContentStopT>(value));
91 return *this;
92 }
94 private:
95 ContentStartEvent m_contentStart;
96
97 ContentDeltaEvent m_contentDelta;
98
99 ContentStopEvent m_contentStop;
100 bool m_contentStartHasBeenSet = false;
101 bool m_contentDeltaHasBeenSet = false;
102 bool m_contentStopHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace BedrockAgentCore
107} // namespace Aws
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContentStart(ContentStartT &&value)
AWS_BEDROCKAGENTCORE_API ResponseChunk(Aws::Utils::Json::JsonView jsonValue)
ResponseChunk & WithContentStart(ContentStartT &&value)
ResponseChunk & WithContentDelta(ContentDeltaT &&value)
const ContentStartEvent & GetContentStart() const
const ContentDeltaEvent & GetContentDelta() const
const ContentStopEvent & GetContentStop() const
AWS_BEDROCKAGENTCORE_API ResponseChunk & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentDelta(ContentDeltaT &&value)
void SetContentStop(ContentStopT &&value)
ResponseChunk & WithContentStop(ContentStopT &&value)
AWS_BEDROCKAGENTCORE_API ResponseChunk()=default
Aws::Utils::Json::JsonValue JsonValue