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/ToolAdditionBlock.h>
17#include <aws/bedrock-runtime/model/ToolRemovalBlock.h>
18#include <aws/bedrock-runtime/model/ToolResultBlock.h>
19#include <aws/bedrock-runtime/model/ToolUseBlock.h>
20#include <aws/bedrock-runtime/model/VideoBlock.h>
21#include <aws/core/utils/memory/stl/AWSString.h>
32namespace BedrockRuntime {
58 template <
typename TextT = Aws::String>
60 m_textHasBeenSet =
true;
61 m_text = std::forward<TextT>(value);
63 template <
typename TextT = Aws::String>
65 SetText(std::forward<TextT>(value));
77 template <
typename ImageT = ImageBlock>
79 m_imageHasBeenSet =
true;
80 m_image = std::forward<ImageT>(value);
82 template <
typename ImageT = ImageBlock>
84 SetImage(std::forward<ImageT>(value));
95 template <
typename DocumentT = DocumentBlock>
97 m_documentHasBeenSet =
true;
98 m_document = std::forward<DocumentT>(value);
100 template <
typename DocumentT = DocumentBlock>
113 template <
typename V
ideoT = V
ideoBlock>
115 m_videoHasBeenSet =
true;
116 m_video = std::forward<VideoT>(value);
118 template <
typename V
ideoT = V
ideoBlock>
120 SetVideo(std::forward<VideoT>(value));
131 template <
typename AudioT = AudioBlock>
133 m_audioHasBeenSet =
true;
134 m_audio = std::forward<AudioT>(value);
136 template <
typename AudioT = AudioBlock>
138 SetAudio(std::forward<AudioT>(value));
149 template <
typename ToolUseT = ToolUseBlock>
151 m_toolUseHasBeenSet =
true;
152 m_toolUse = std::forward<ToolUseT>(value);
154 template <
typename ToolUseT = ToolUseBlock>
167 template <
typename ToolResultT = ToolResultBlock>
169 m_toolResultHasBeenSet =
true;
170 m_toolResult = std::forward<ToolResultT>(value);
172 template <
typename ToolResultT = ToolResultBlock>
189 template <
typename GuardContentT = GuardrailConverseContentBlock>
191 m_guardContentHasBeenSet =
true;
192 m_guardContent = std::forward<GuardContentT>(value);
194 template <
typename GuardContentT = GuardrailConverseContentBlock>
207 template <
typename CachePo
intT = CachePo
intBlock>
209 m_cachePointHasBeenSet =
true;
210 m_cachePoint = std::forward<CachePointT>(value);
212 template <
typename CachePo
intT = CachePo
intBlock>
227 template <
typename ReasoningContentT = ReasoningContentBlock>
229 m_reasoningContentHasBeenSet =
true;
230 m_reasoningContent = std::forward<ReasoningContentT>(value);
232 template <
typename ReasoningContentT = ReasoningContentBlock>
247 template <
typename CitationsContentT = CitationsContentBlock>
249 m_citationsContentHasBeenSet =
true;
250 m_citationsContent = std::forward<CitationsContentT>(value);
252 template <
typename CitationsContentT = CitationsContentBlock>
265 template <
typename SearchResultT = SearchResultBlock>
267 m_searchResultHasBeenSet =
true;
268 m_searchResult = std::forward<SearchResultT>(value);
270 template <
typename SearchResultT = SearchResultBlock>
281 template <
typename ToolAdditionT = ToolAdditionBlock>
283 m_toolAdditionHasBeenSet =
true;
284 m_toolAddition = std::forward<ToolAdditionT>(value);
286 template <
typename ToolAdditionT = ToolAdditionBlock>
297 template <
typename ToolRemovalT = ToolRemovalBlock>
299 m_toolRemovalHasBeenSet =
true;
300 m_toolRemoval = std::forward<ToolRemovalT>(value);
302 template <
typename ToolRemovalT = ToolRemovalBlock>
336 bool m_textHasBeenSet =
false;
337 bool m_imageHasBeenSet =
false;
338 bool m_documentHasBeenSet =
false;
339 bool m_videoHasBeenSet =
false;
340 bool m_audioHasBeenSet =
false;
341 bool m_toolUseHasBeenSet =
false;
342 bool m_toolResultHasBeenSet =
false;
343 bool m_guardContentHasBeenSet =
false;
344 bool m_cachePointHasBeenSet =
false;
345 bool m_reasoningContentHasBeenSet =
false;
346 bool m_citationsContentHasBeenSet =
false;
347 bool m_searchResultHasBeenSet =
false;
348 bool m_toolAdditionHasBeenSet =
false;
349 bool m_toolRemovalHasBeenSet =
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)
ContentBlock & WithToolRemoval(ToolRemovalT &&value)
void SetImage(ImageT &&value)
void SetAudio(AudioT &&value)
bool ToolAdditionHasBeenSet() const
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
void SetToolAddition(ToolAdditionT &&value)
ContentBlock & WithGuardContent(GuardContentT &&value)
void SetReasoningContent(ReasoningContentT &&value)
void SetToolRemoval(ToolRemovalT &&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)
const ToolRemovalBlock & GetToolRemoval() const
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)
bool ToolRemovalHasBeenSet() const
const DocumentBlock & GetDocument() const
ContentBlock & WithToolUse(ToolUseT &&value)
ContentBlock & WithToolAddition(ToolAdditionT &&value)
const ImageBlock & GetImage() const
bool DocumentHasBeenSet() const
const ToolAdditionBlock & GetToolAddition() 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