AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ToolResultContentBlock.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockRuntime
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API ToolResultContentBlock() = default;
39 AWS_BEDROCKRUNTIME_API ToolResultContentBlock(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline Aws::Utils::DocumentView GetJson() const { return m_json; }
49 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
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>
53 ToolResultContentBlock& WithJson(JsonT&& value) { SetJson(std::forward<JsonT>(value)); return *this;}
55
57
60 inline const Aws::String& GetText() const { return m_text; }
61 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
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>
65 ToolResultContentBlock& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
67
69
73 inline const ImageBlock& GetImage() const { return m_image; }
74 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
75 template<typename ImageT = ImageBlock>
76 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
77 template<typename ImageT = ImageBlock>
78 ToolResultContentBlock& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
80
82
85 inline const DocumentBlock& GetDocument() const { return m_document; }
86 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
87 template<typename DocumentT = DocumentBlock>
88 void SetDocument(DocumentT&& value) { m_documentHasBeenSet = true; m_document = std::forward<DocumentT>(value); }
89 template<typename DocumentT = DocumentBlock>
90 ToolResultContentBlock& WithDocument(DocumentT&& value) { SetDocument(std::forward<DocumentT>(value)); return *this;}
92
94
97 inline const VideoBlock& GetVideo() const { return m_video; }
98 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
99 template<typename VideoT = VideoBlock>
100 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
101 template<typename VideoT = VideoBlock>
102 ToolResultContentBlock& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
104 private:
105
107 bool m_jsonHasBeenSet = false;
108
109 Aws::String m_text;
110 bool m_textHasBeenSet = false;
111
112 ImageBlock m_image;
113 bool m_imageHasBeenSet = false;
114
115 DocumentBlock m_document;
116 bool m_documentHasBeenSet = false;
117
118 VideoBlock m_video;
119 bool m_videoHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace BedrockRuntime
124} // namespace Aws
ToolResultContentBlock & WithDocument(DocumentT &&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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue