AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ContentBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/ImageBlock.h>
10#include <aws/bedrock-runtime/model/DocumentBlock.h>
11#include <aws/bedrock-runtime/model/VideoBlock.h>
12#include <aws/bedrock-runtime/model/ToolUseBlock.h>
13#include <aws/bedrock-runtime/model/ToolResultBlock.h>
14#include <aws/bedrock-runtime/model/GuardrailConverseContentBlock.h>
15#include <aws/bedrock-runtime/model/CachePointBlock.h>
16#include <aws/bedrock-runtime/model/ReasoningContentBlock.h>
17#include <aws/bedrock-runtime/model/CitationsContentBlock.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace BedrockRuntime
31{
32namespace Model
33{
34
46 {
47 public:
48 AWS_BEDROCKRUNTIME_API ContentBlock() = default;
49 AWS_BEDROCKRUNTIME_API ContentBlock(Aws::Utils::Json::JsonView jsonValue);
50 AWS_BEDROCKRUNTIME_API ContentBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const Aws::String& GetText() const { return m_text; }
59 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
60 template<typename TextT = Aws::String>
61 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
62 template<typename TextT = Aws::String>
63 ContentBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
65
67
71 inline const ImageBlock& GetImage() const { return m_image; }
72 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
73 template<typename ImageT = ImageBlock>
74 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
75 template<typename ImageT = ImageBlock>
76 ContentBlock& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
78
80
83 inline const DocumentBlock& GetDocument() const { return m_document; }
84 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
85 template<typename DocumentT = DocumentBlock>
86 void SetDocument(DocumentT&& value) { m_documentHasBeenSet = true; m_document = std::forward<DocumentT>(value); }
87 template<typename DocumentT = DocumentBlock>
88 ContentBlock& WithDocument(DocumentT&& value) { SetDocument(std::forward<DocumentT>(value)); return *this;}
90
92
95 inline const VideoBlock& GetVideo() const { return m_video; }
96 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
97 template<typename VideoT = VideoBlock>
98 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
99 template<typename VideoT = VideoBlock>
100 ContentBlock& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
102
104
107 inline const ToolUseBlock& GetToolUse() const { return m_toolUse; }
108 inline bool ToolUseHasBeenSet() const { return m_toolUseHasBeenSet; }
109 template<typename ToolUseT = ToolUseBlock>
110 void SetToolUse(ToolUseT&& value) { m_toolUseHasBeenSet = true; m_toolUse = std::forward<ToolUseT>(value); }
111 template<typename ToolUseT = ToolUseBlock>
112 ContentBlock& WithToolUse(ToolUseT&& value) { SetToolUse(std::forward<ToolUseT>(value)); return *this;}
114
116
119 inline const ToolResultBlock& GetToolResult() const { return m_toolResult; }
120 inline bool ToolResultHasBeenSet() const { return m_toolResultHasBeenSet; }
121 template<typename ToolResultT = ToolResultBlock>
122 void SetToolResult(ToolResultT&& value) { m_toolResultHasBeenSet = true; m_toolResult = std::forward<ToolResultT>(value); }
123 template<typename ToolResultT = ToolResultBlock>
124 ContentBlock& WithToolResult(ToolResultT&& value) { SetToolResult(std::forward<ToolResultT>(value)); return *this;}
126
128
135 inline const GuardrailConverseContentBlock& GetGuardContent() const { return m_guardContent; }
136 inline bool GuardContentHasBeenSet() const { return m_guardContentHasBeenSet; }
137 template<typename GuardContentT = GuardrailConverseContentBlock>
138 void SetGuardContent(GuardContentT&& value) { m_guardContentHasBeenSet = true; m_guardContent = std::forward<GuardContentT>(value); }
139 template<typename GuardContentT = GuardrailConverseContentBlock>
140 ContentBlock& WithGuardContent(GuardContentT&& value) { SetGuardContent(std::forward<GuardContentT>(value)); return *this;}
142
144
147 inline const CachePointBlock& GetCachePoint() const { return m_cachePoint; }
148 inline bool CachePointHasBeenSet() const { return m_cachePointHasBeenSet; }
149 template<typename CachePointT = CachePointBlock>
150 void SetCachePoint(CachePointT&& value) { m_cachePointHasBeenSet = true; m_cachePoint = std::forward<CachePointT>(value); }
151 template<typename CachePointT = CachePointBlock>
152 ContentBlock& WithCachePoint(CachePointT&& value) { SetCachePoint(std::forward<CachePointT>(value)); return *this;}
154
156
161 inline const ReasoningContentBlock& GetReasoningContent() const { return m_reasoningContent; }
162 inline bool ReasoningContentHasBeenSet() const { return m_reasoningContentHasBeenSet; }
163 template<typename ReasoningContentT = ReasoningContentBlock>
164 void SetReasoningContent(ReasoningContentT&& value) { m_reasoningContentHasBeenSet = true; m_reasoningContent = std::forward<ReasoningContentT>(value); }
165 template<typename ReasoningContentT = ReasoningContentBlock>
166 ContentBlock& WithReasoningContent(ReasoningContentT&& value) { SetReasoningContent(std::forward<ReasoningContentT>(value)); return *this;}
168
170
175 inline const CitationsContentBlock& GetCitationsContent() const { return m_citationsContent; }
176 inline bool CitationsContentHasBeenSet() const { return m_citationsContentHasBeenSet; }
177 template<typename CitationsContentT = CitationsContentBlock>
178 void SetCitationsContent(CitationsContentT&& value) { m_citationsContentHasBeenSet = true; m_citationsContent = std::forward<CitationsContentT>(value); }
179 template<typename CitationsContentT = CitationsContentBlock>
180 ContentBlock& WithCitationsContent(CitationsContentT&& value) { SetCitationsContent(std::forward<CitationsContentT>(value)); return *this;}
182 private:
183
184 Aws::String m_text;
185 bool m_textHasBeenSet = false;
186
187 ImageBlock m_image;
188 bool m_imageHasBeenSet = false;
189
190 DocumentBlock m_document;
191 bool m_documentHasBeenSet = false;
192
193 VideoBlock m_video;
194 bool m_videoHasBeenSet = false;
195
196 ToolUseBlock m_toolUse;
197 bool m_toolUseHasBeenSet = false;
198
199 ToolResultBlock m_toolResult;
200 bool m_toolResultHasBeenSet = false;
201
202 GuardrailConverseContentBlock m_guardContent;
203 bool m_guardContentHasBeenSet = false;
204
205 CachePointBlock m_cachePoint;
206 bool m_cachePointHasBeenSet = false;
207
208 ReasoningContentBlock m_reasoningContent;
209 bool m_reasoningContentHasBeenSet = false;
210
211 CitationsContentBlock m_citationsContent;
212 bool m_citationsContentHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace BedrockRuntime
217} // namespace Aws
const CitationsContentBlock & GetCitationsContent() const
ContentBlock & WithText(TextT &&value)
const CachePointBlock & GetCachePoint() const
const GuardrailConverseContentBlock & GetGuardContent() const
const Aws::String & GetText() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const ToolUseBlock & GetToolUse() const
void SetCachePoint(CachePointT &&value)
AWS_BEDROCKRUNTIME_API ContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentBlock & WithGuardContent(GuardContentT &&value)
void SetReasoningContent(ReasoningContentT &&value)
AWS_BEDROCKRUNTIME_API ContentBlock(Aws::Utils::Json::JsonView jsonValue)
void SetToolResult(ToolResultT &&value)
const ReasoningContentBlock & GetReasoningContent() const
ContentBlock & WithCachePoint(CachePointT &&value)
ContentBlock & WithImage(ImageT &&value)
void SetGuardContent(GuardContentT &&value)
ContentBlock & WithVideo(VideoT &&value)
const VideoBlock & GetVideo() const
ContentBlock & WithReasoningContent(ReasoningContentT &&value)
void SetCitationsContent(CitationsContentT &&value)
ContentBlock & WithDocument(DocumentT &&value)
const DocumentBlock & GetDocument() const
ContentBlock & WithToolUse(ToolUseT &&value)
const ImageBlock & GetImage() const
ContentBlock & WithCitationsContent(CitationsContentT &&value)
AWS_BEDROCKRUNTIME_API ContentBlock()=default
ContentBlock & WithToolResult(ToolResultT &&value)
const ToolResultBlock & GetToolResult() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue