7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/DocumentBlock.h>
9#include <aws/bedrock-runtime/model/ImageBlock.h>
10#include <aws/bedrock-runtime/model/SearchResultBlock.h>
11#include <aws/bedrock-runtime/model/VideoBlock.h>
12#include <aws/core/utils/Document.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
24namespace BedrockRuntime {
48 template <
typename JsonT = Aws::Utils::Document>
50 m_jsonHasBeenSet =
true;
51 m_json = std::forward<JsonT>(value);
53 template <
typename JsonT = Aws::Utils::Document>
55 SetJson(std::forward<JsonT>(value));
66 template <
typename TextT = Aws::String>
68 m_textHasBeenSet =
true;
69 m_text = std::forward<TextT>(value);
71 template <
typename TextT = Aws::String>
73 SetText(std::forward<TextT>(value));
85 template <
typename ImageT = ImageBlock>
87 m_imageHasBeenSet =
true;
88 m_image = std::forward<ImageT>(value);
90 template <
typename ImageT = ImageBlock>
92 SetImage(std::forward<ImageT>(value));
103 template <
typename DocumentT = DocumentBlock>
105 m_documentHasBeenSet =
true;
106 m_document = std::forward<DocumentT>(value);
108 template <
typename DocumentT = DocumentBlock>
121 template <
typename V
ideoT = V
ideoBlock>
123 m_videoHasBeenSet =
true;
124 m_video = std::forward<VideoT>(value);
126 template <
typename V
ideoT = V
ideoBlock>
128 SetVideo(std::forward<VideoT>(value));
139 template <
typename SearchResultT = SearchResultBlock>
141 m_searchResultHasBeenSet =
true;
142 m_searchResult = std::forward<SearchResultT>(value);
144 template <
typename SearchResultT = SearchResultBlock>
162 bool m_jsonHasBeenSet =
false;
163 bool m_textHasBeenSet =
false;
164 bool m_imageHasBeenSet =
false;
165 bool m_documentHasBeenSet =
false;
166 bool m_videoHasBeenSet =
false;
167 bool m_searchResultHasBeenSet =
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
ToolResultContentBlock & WithSearchResult(SearchResultT &&value)
bool VideoHasBeenSet() const
void SetJson(JsonT &&value)
bool SearchResultHasBeenSet() const
const SearchResultBlock & GetSearchResult() const
ToolResultContentBlock & WithImage(ImageT &&value)
void SetSearchResult(SearchResultT &&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::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