AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ToolResultContentBlock.h
1
6#pragma once
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>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockRuntime {
25namespace Model {
26
36 public:
37 AWS_BEDROCKRUNTIME_API ToolResultContentBlock() = default;
40 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline Aws::Utils::DocumentView GetJson() const { return m_json; }
47 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
48 template <typename JsonT = Aws::Utils::Document>
49 void SetJson(JsonT&& value) {
50 m_jsonHasBeenSet = true;
51 m_json = std::forward<JsonT>(value);
52 }
53 template <typename JsonT = Aws::Utils::Document>
55 SetJson(std::forward<JsonT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetText() const { return m_text; }
65 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
66 template <typename TextT = Aws::String>
67 void SetText(TextT&& value) {
68 m_textHasBeenSet = true;
69 m_text = std::forward<TextT>(value);
70 }
71 template <typename TextT = Aws::String>
73 SetText(std::forward<TextT>(value));
74 return *this;
75 }
77
79
83 inline const ImageBlock& GetImage() const { return m_image; }
84 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
85 template <typename ImageT = ImageBlock>
86 void SetImage(ImageT&& value) {
87 m_imageHasBeenSet = true;
88 m_image = std::forward<ImageT>(value);
89 }
90 template <typename ImageT = ImageBlock>
92 SetImage(std::forward<ImageT>(value));
93 return *this;
94 }
96
98
101 inline const DocumentBlock& GetDocument() const { return m_document; }
102 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
103 template <typename DocumentT = DocumentBlock>
104 void SetDocument(DocumentT&& value) {
105 m_documentHasBeenSet = true;
106 m_document = std::forward<DocumentT>(value);
107 }
108 template <typename DocumentT = DocumentBlock>
110 SetDocument(std::forward<DocumentT>(value));
111 return *this;
112 }
114
116
119 inline const VideoBlock& GetVideo() const { return m_video; }
120 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
121 template <typename VideoT = VideoBlock>
122 void SetVideo(VideoT&& value) {
123 m_videoHasBeenSet = true;
124 m_video = std::forward<VideoT>(value);
125 }
126 template <typename VideoT = VideoBlock>
128 SetVideo(std::forward<VideoT>(value));
129 return *this;
130 }
132
134
137 inline const SearchResultBlock& GetSearchResult() const { return m_searchResult; }
138 inline bool SearchResultHasBeenSet() const { return m_searchResultHasBeenSet; }
139 template <typename SearchResultT = SearchResultBlock>
141 m_searchResultHasBeenSet = true;
142 m_searchResult = std::forward<SearchResultT>(value);
143 }
144 template <typename SearchResultT = SearchResultBlock>
146 SetSearchResult(std::forward<SearchResultT>(value));
147 return *this;
148 }
150 private:
152
153 Aws::String m_text;
154
155 ImageBlock m_image;
156
157 DocumentBlock m_document;
158
159 VideoBlock m_video;
160
161 SearchResultBlock m_searchResult;
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;
168};
169
170} // namespace Model
171} // namespace BedrockRuntime
172} // namespace Aws
ToolResultContentBlock & WithDocument(DocumentT &&value)
ToolResultContentBlock & WithSearchResult(SearchResultT &&value)
ToolResultContentBlock & WithImage(ImageT &&value)
ToolResultContentBlock & WithJson(JsonT &&value)
ToolResultContentBlock & WithText(TextT &&value)
AWS_BEDROCKRUNTIME_API ToolResultContentBlock()=default
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API ToolResultContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolResultContentBlock & WithVideo(VideoT &&value)
AWS_BEDROCKRUNTIME_API ToolResultContentBlock(Aws::Utils::Json::JsonView jsonValue)
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