AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ContentBlockDelta.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/CitationsDelta.h>
9#include <aws/bedrock-runtime/model/ImageBlockDelta.h>
10#include <aws/bedrock-runtime/model/ReasoningContentBlockDelta.h>
11#include <aws/bedrock-runtime/model/ToolResultBlockDelta.h>
12#include <aws/bedrock-runtime/model/ToolUseBlockDelta.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockRuntime {
26namespace Model {
27
34 public:
35 AWS_BEDROCKRUNTIME_API ContentBlockDelta() = default;
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetText() const { return m_text; }
45 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
46 template <typename TextT = Aws::String>
47 void SetText(TextT&& value) {
48 m_textHasBeenSet = true;
49 m_text = std::forward<TextT>(value);
50 }
51 template <typename TextT = Aws::String>
53 SetText(std::forward<TextT>(value));
54 return *this;
55 }
57
59
62 inline const ToolUseBlockDelta& GetToolUse() const { return m_toolUse; }
63 inline bool ToolUseHasBeenSet() const { return m_toolUseHasBeenSet; }
64 template <typename ToolUseT = ToolUseBlockDelta>
65 void SetToolUse(ToolUseT&& value) {
66 m_toolUseHasBeenSet = true;
67 m_toolUse = std::forward<ToolUseT>(value);
68 }
69 template <typename ToolUseT = ToolUseBlockDelta>
71 SetToolUse(std::forward<ToolUseT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<ToolResultBlockDelta>& GetToolResult() const { return m_toolResult; }
81 inline bool ToolResultHasBeenSet() const { return m_toolResultHasBeenSet; }
82 template <typename ToolResultT = Aws::Vector<ToolResultBlockDelta>>
83 void SetToolResult(ToolResultT&& value) {
84 m_toolResultHasBeenSet = true;
85 m_toolResult = std::forward<ToolResultT>(value);
86 }
87 template <typename ToolResultT = Aws::Vector<ToolResultBlockDelta>>
89 SetToolResult(std::forward<ToolResultT>(value));
90 return *this;
91 }
92 template <typename ToolResultT = ToolResultBlockDelta>
94 m_toolResultHasBeenSet = true;
95 m_toolResult.emplace_back(std::forward<ToolResultT>(value));
96 return *this;
97 }
99
101
106 inline const ReasoningContentBlockDelta& GetReasoningContent() const { return m_reasoningContent; }
107 inline bool ReasoningContentHasBeenSet() const { return m_reasoningContentHasBeenSet; }
108 template <typename ReasoningContentT = ReasoningContentBlockDelta>
110 m_reasoningContentHasBeenSet = true;
111 m_reasoningContent = std::forward<ReasoningContentT>(value);
112 }
113 template <typename ReasoningContentT = ReasoningContentBlockDelta>
115 SetReasoningContent(std::forward<ReasoningContentT>(value));
116 return *this;
117 }
119
121
125 inline const CitationsDelta& GetCitation() const { return m_citation; }
126 inline bool CitationHasBeenSet() const { return m_citationHasBeenSet; }
127 template <typename CitationT = CitationsDelta>
128 void SetCitation(CitationT&& value) {
129 m_citationHasBeenSet = true;
130 m_citation = std::forward<CitationT>(value);
131 }
132 template <typename CitationT = CitationsDelta>
134 SetCitation(std::forward<CitationT>(value));
135 return *this;
136 }
138
140
143 inline const ImageBlockDelta& GetImage() const { return m_image; }
144 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
145 template <typename ImageT = ImageBlockDelta>
146 void SetImage(ImageT&& value) {
147 m_imageHasBeenSet = true;
148 m_image = std::forward<ImageT>(value);
149 }
150 template <typename ImageT = ImageBlockDelta>
152 SetImage(std::forward<ImageT>(value));
153 return *this;
154 }
156 private:
157 Aws::String m_text;
158
159 ToolUseBlockDelta m_toolUse;
160
162
163 ReasoningContentBlockDelta m_reasoningContent;
164
165 CitationsDelta m_citation;
166
167 ImageBlockDelta m_image;
168 bool m_textHasBeenSet = false;
169 bool m_toolUseHasBeenSet = false;
170 bool m_toolResultHasBeenSet = false;
171 bool m_reasoningContentHasBeenSet = false;
172 bool m_citationHasBeenSet = false;
173 bool m_imageHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace BedrockRuntime
178} // namespace Aws
ContentBlockDelta & WithReasoningContent(ReasoningContentT &&value)
const Aws::Vector< ToolResultBlockDelta > & GetToolResult() const
ContentBlockDelta & WithCitation(CitationT &&value)
ContentBlockDelta & WithToolUse(ToolUseT &&value)
AWS_BEDROCKRUNTIME_API ContentBlockDelta & operator=(Aws::Utils::Json::JsonView jsonValue)
const ReasoningContentBlockDelta & GetReasoningContent() const
AWS_BEDROCKRUNTIME_API ContentBlockDelta()=default
ContentBlockDelta & AddToolResult(ToolResultT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ContentBlockDelta & WithText(TextT &&value)
ContentBlockDelta & WithImage(ImageT &&value)
void SetReasoningContent(ReasoningContentT &&value)
AWS_BEDROCKRUNTIME_API ContentBlockDelta(Aws::Utils::Json::JsonView jsonValue)
const ToolUseBlockDelta & GetToolUse() const
ContentBlockDelta & WithToolResult(ToolResultT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue