7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/AudioBlock.h>
9#include <aws/bedrock-runtime/model/CachePointBlock.h>
10#include <aws/bedrock-runtime/model/CitationsContentBlock.h>
11#include <aws/bedrock-runtime/model/DocumentBlock.h>
12#include <aws/bedrock-runtime/model/GuardrailConverseContentBlock.h>
13#include <aws/bedrock-runtime/model/ImageBlock.h>
14#include <aws/bedrock-runtime/model/ReasoningContentBlock.h>
15#include <aws/bedrock-runtime/model/SearchResultBlock.h>
16#include <aws/bedrock-runtime/model/ToolResultBlock.h>
17#include <aws/bedrock-runtime/model/ToolUseBlock.h>
18#include <aws/bedrock-runtime/model/VideoBlock.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
30namespace BedrockRuntime {
56 template <
typename TextT = Aws::String>
58 m_textHasBeenSet =
true;
59 m_text = std::forward<TextT>(value);
61 template <
typename TextT = Aws::String>
63 SetText(std::forward<TextT>(value));
75 template <
typename ImageT = ImageBlock>
77 m_imageHasBeenSet =
true;
78 m_image = std::forward<ImageT>(value);
80 template <
typename ImageT = ImageBlock>
82 SetImage(std::forward<ImageT>(value));
93 template <
typename DocumentT = DocumentBlock>
95 m_documentHasBeenSet =
true;
96 m_document = std::forward<DocumentT>(value);
98 template <
typename DocumentT = DocumentBlock>
111 template <
typename V
ideoT = V
ideoBlock>
113 m_videoHasBeenSet =
true;
114 m_video = std::forward<VideoT>(value);
116 template <
typename V
ideoT = V
ideoBlock>
118 SetVideo(std::forward<VideoT>(value));
129 template <
typename AudioT = AudioBlock>
131 m_audioHasBeenSet =
true;
132 m_audio = std::forward<AudioT>(value);
134 template <
typename AudioT = AudioBlock>
136 SetAudio(std::forward<AudioT>(value));
147 template <
typename ToolUseT = ToolUseBlock>
149 m_toolUseHasBeenSet =
true;
150 m_toolUse = std::forward<ToolUseT>(value);
152 template <
typename ToolUseT = ToolUseBlock>
165 template <
typename ToolResultT = ToolResultBlock>
167 m_toolResultHasBeenSet =
true;
168 m_toolResult = std::forward<ToolResultT>(value);
170 template <
typename ToolResultT = ToolResultBlock>
187 template <
typename GuardContentT = GuardrailConverseContentBlock>
189 m_guardContentHasBeenSet =
true;
190 m_guardContent = std::forward<GuardContentT>(value);
192 template <
typename GuardContentT = GuardrailConverseContentBlock>
205 template <
typename CachePo
intT = CachePo
intBlock>
207 m_cachePointHasBeenSet =
true;
208 m_cachePoint = std::forward<CachePointT>(value);
210 template <
typename CachePo
intT = CachePo
intBlock>
225 template <
typename ReasoningContentT = ReasoningContentBlock>
227 m_reasoningContentHasBeenSet =
true;
228 m_reasoningContent = std::forward<ReasoningContentT>(value);
230 template <
typename ReasoningContentT = ReasoningContentBlock>
245 template <
typename CitationsContentT = CitationsContentBlock>
247 m_citationsContentHasBeenSet =
true;
248 m_citationsContent = std::forward<CitationsContentT>(value);
250 template <
typename CitationsContentT = CitationsContentBlock>
263 template <
typename SearchResultT = SearchResultBlock>
265 m_searchResultHasBeenSet =
true;
266 m_searchResult = std::forward<SearchResultT>(value);
268 template <
typename SearchResultT = SearchResultBlock>
298 bool m_textHasBeenSet =
false;
299 bool m_imageHasBeenSet =
false;
300 bool m_documentHasBeenSet =
false;
301 bool m_videoHasBeenSet =
false;
302 bool m_audioHasBeenSet =
false;
303 bool m_toolUseHasBeenSet =
false;
304 bool m_toolResultHasBeenSet =
false;
305 bool m_guardContentHasBeenSet =
false;
306 bool m_cachePointHasBeenSet =
false;
307 bool m_reasoningContentHasBeenSet =
false;
308 bool m_citationsContentHasBeenSet =
false;
309 bool m_searchResultHasBeenSet =
false;
ContentBlock & WithAudio(AudioT &&value)
const AudioBlock & GetAudio() const
const CitationsContentBlock & GetCitationsContent() const
bool GuardContentHasBeenSet() const
bool ReasoningContentHasBeenSet() const
ContentBlock & WithText(TextT &&value)
bool ToolUseHasBeenSet() const
const CachePointBlock & GetCachePoint() const
ContentBlock & WithSearchResult(SearchResultT &&value)
void SetSearchResult(SearchResultT &&value)
bool VideoHasBeenSet() const
bool ToolResultHasBeenSet() const
const GuardrailConverseContentBlock & GetGuardContent() const
void SetDocument(DocumentT &&value)
const Aws::String & GetText() const
void SetToolUse(ToolUseT &&value)
void SetImage(ImageT &&value)
void SetAudio(AudioT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const ToolUseBlock & GetToolUse() const
void SetVideo(VideoT &&value)
void SetCachePoint(CachePointT &&value)
void SetText(TextT &&value)
AWS_BEDROCKRUNTIME_API ContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
const SearchResultBlock & GetSearchResult() const
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
bool ImageHasBeenSet() const
ContentBlock & WithCachePoint(CachePointT &&value)
ContentBlock & WithImage(ImageT &&value)
void SetGuardContent(GuardContentT &&value)
ContentBlock & WithVideo(VideoT &&value)
bool AudioHasBeenSet() const
bool SearchResultHasBeenSet() const
const VideoBlock & GetVideo() const
ContentBlock & WithReasoningContent(ReasoningContentT &&value)
bool CachePointHasBeenSet() const
void SetCitationsContent(CitationsContentT &&value)
ContentBlock & WithDocument(DocumentT &&value)
const DocumentBlock & GetDocument() const
ContentBlock & WithToolUse(ToolUseT &&value)
const ImageBlock & GetImage() const
bool DocumentHasBeenSet() const
ContentBlock & WithCitationsContent(CitationsContentT &&value)
AWS_BEDROCKRUNTIME_API ContentBlock()=default
bool CitationsContentHasBeenSet() const
bool TextHasBeenSet() const
ContentBlock & WithToolResult(ToolResultT &&value)
const ToolResultBlock & GetToolResult() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue