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>
30namespace BedrockRuntime
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>
73 template<
typename ImageT = ImageBlock>
74 void SetImage(ImageT&& value) { m_imageHasBeenSet =
true; m_image = std::forward<ImageT>(value); }
75 template<
typename ImageT = ImageBlock>
85 template<
typename DocumentT = DocumentBlock>
86 void SetDocument(DocumentT&& value) { m_documentHasBeenSet =
true; m_document = std::forward<DocumentT>(value); }
87 template<
typename DocumentT = DocumentBlock>
97 template<
typename V
ideoT = V
ideoBlock>
98 void SetVideo(VideoT&& value) { m_videoHasBeenSet =
true; m_video = std::forward<VideoT>(value); }
99 template<
typename V
ideoT = V
ideoBlock>
109 template<
typename ToolUseT = ToolUseBlock>
110 void SetToolUse(ToolUseT&& value) { m_toolUseHasBeenSet =
true; m_toolUse = std::forward<ToolUseT>(value); }
111 template<
typename ToolUseT = ToolUseBlock>
121 template<
typename ToolResultT = ToolResultBlock>
122 void SetToolResult(ToolResultT&& value) { m_toolResultHasBeenSet =
true; m_toolResult = std::forward<ToolResultT>(value); }
123 template<
typename ToolResultT = ToolResultBlock>
137 template<
typename GuardContentT = GuardrailConverseContentBlock>
138 void SetGuardContent(GuardContentT&& value) { m_guardContentHasBeenSet =
true; m_guardContent = std::forward<GuardContentT>(value); }
139 template<
typename GuardContentT = GuardrailConverseContentBlock>
149 template<
typename CachePo
intT = CachePo
intBlock>
150 void SetCachePoint(CachePointT&& value) { m_cachePointHasBeenSet =
true; m_cachePoint = std::forward<CachePointT>(value); }
151 template<
typename CachePo
intT = CachePo
intBlock>
163 template<
typename ReasoningContentT = ReasoningContentBlock>
164 void SetReasoningContent(ReasoningContentT&& value) { m_reasoningContentHasBeenSet =
true; m_reasoningContent = std::forward<ReasoningContentT>(value); }
165 template<
typename ReasoningContentT = ReasoningContentBlock>
177 template<
typename CitationsContentT = CitationsContentBlock>
178 void SetCitationsContent(CitationsContentT&& value) { m_citationsContentHasBeenSet =
true; m_citationsContent = std::forward<CitationsContentT>(value); }
179 template<
typename CitationsContentT = CitationsContentBlock>
185 bool m_textHasBeenSet =
false;
188 bool m_imageHasBeenSet =
false;
191 bool m_documentHasBeenSet =
false;
194 bool m_videoHasBeenSet =
false;
197 bool m_toolUseHasBeenSet =
false;
200 bool m_toolResultHasBeenSet =
false;
203 bool m_guardContentHasBeenSet =
false;
206 bool m_cachePointHasBeenSet =
false;
209 bool m_reasoningContentHasBeenSet =
false;
212 bool m_citationsContentHasBeenSet =
false;
const CitationsContentBlock & GetCitationsContent() const
bool GuardContentHasBeenSet() const
bool ReasoningContentHasBeenSet() const
ContentBlock & WithText(TextT &&value)
bool ToolUseHasBeenSet() const
const CachePointBlock & GetCachePoint() const
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)
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)
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)
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue