7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-runtime/model/ImageBlock.h>
11#include <aws/bedrock-runtime/model/DocumentBlock.h>
12#include <aws/bedrock-runtime/model/VideoBlock.h>
25namespace BedrockRuntime
50 template<
typename JsonT = Aws::Utils::Document>
51 void SetJson(JsonT&& value) { m_jsonHasBeenSet =
true; m_json = std::forward<JsonT>(value); }
52 template<
typename JsonT = Aws::Utils::Document>
62 template<
typename TextT = Aws::String>
63 void SetText(TextT&& value) { m_textHasBeenSet =
true; m_text = std::forward<TextT>(value); }
64 template<
typename TextT = Aws::String>
75 template<
typename ImageT = ImageBlock>
76 void SetImage(ImageT&& value) { m_imageHasBeenSet =
true; m_image = std::forward<ImageT>(value); }
77 template<
typename ImageT = ImageBlock>
87 template<
typename DocumentT = DocumentBlock>
88 void SetDocument(DocumentT&& value) { m_documentHasBeenSet =
true; m_document = std::forward<DocumentT>(value); }
89 template<
typename DocumentT = DocumentBlock>
99 template<
typename V
ideoT = V
ideoBlock>
100 void SetVideo(VideoT&& value) { m_videoHasBeenSet =
true; m_video = std::forward<VideoT>(value); }
101 template<
typename V
ideoT = V
ideoBlock>
107 bool m_jsonHasBeenSet =
false;
110 bool m_textHasBeenSet =
false;
113 bool m_imageHasBeenSet =
false;
116 bool m_documentHasBeenSet =
false;
119 bool m_videoHasBeenSet =
false;
bool DocumentHasBeenSet() const
bool JsonHasBeenSet() const
void SetDocument(DocumentT &&value)
const VideoBlock & GetVideo() const
const ImageBlock & GetImage() const
ToolResultContentBlock & WithDocument(DocumentT &&value)
const DocumentBlock & GetDocument() const
bool TextHasBeenSet() const
bool VideoHasBeenSet() const
void SetJson(JsonT &&value)
ToolResultContentBlock & WithImage(ImageT &&value)
ToolResultContentBlock & WithJson(JsonT &&value)
ToolResultContentBlock & WithText(TextT &&value)
AWS_BEDROCKRUNTIME_API ToolResultContentBlock()=default
void SetText(TextT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API ToolResultContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolResultContentBlock & WithVideo(VideoT &&value)
void SetImage(ImageT &&value)
AWS_BEDROCKRUNTIME_API ToolResultContentBlock(Aws::Utils::Json::JsonView jsonValue)
bool ImageHasBeenSet() const
Aws::Utils::DocumentView GetJson() const
const Aws::String & GetText() const
void SetVideo(VideoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue