AWS SDK for C++

AWS SDK for C++ Version 1.11.509

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();
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 inline void SetJson(const Aws::Utils::Document& value) { m_jsonHasBeenSet = true; m_json = value; }
51 inline void SetJson(Aws::Utils::Document&& value) { m_jsonHasBeenSet = true; m_json = std::move(value); }
52 inline ToolResultContentBlock& WithJson(const Aws::Utils::Document& value) { SetJson(value); return *this;}
53 inline ToolResultContentBlock& WithJson(Aws::Utils::Document&& value) { SetJson(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetText() const{ return m_text; }
61 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
62 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
63 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
64 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
65 inline ToolResultContentBlock& WithText(const Aws::String& value) { SetText(value); return *this;}
66 inline ToolResultContentBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
67 inline ToolResultContentBlock& WithText(const char* value) { SetText(value); return *this;}
69
71
75 inline const ImageBlock& GetImage() const{ return m_image; }
76 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
77 inline void SetImage(const ImageBlock& value) { m_imageHasBeenSet = true; m_image = value; }
78 inline void SetImage(ImageBlock&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
79 inline ToolResultContentBlock& WithImage(const ImageBlock& value) { SetImage(value); return *this;}
80 inline ToolResultContentBlock& WithImage(ImageBlock&& value) { SetImage(std::move(value)); return *this;}
82
84
87 inline const DocumentBlock& GetDocument() const{ return m_document; }
88 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
89 inline void SetDocument(const DocumentBlock& value) { m_documentHasBeenSet = true; m_document = value; }
90 inline void SetDocument(DocumentBlock&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
91 inline ToolResultContentBlock& WithDocument(const DocumentBlock& value) { SetDocument(value); return *this;}
92 inline ToolResultContentBlock& WithDocument(DocumentBlock&& value) { SetDocument(std::move(value)); return *this;}
94
96
99 inline const VideoBlock& GetVideo() const{ return m_video; }
100 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
101 inline void SetVideo(const VideoBlock& value) { m_videoHasBeenSet = true; m_video = value; }
102 inline void SetVideo(VideoBlock&& value) { m_videoHasBeenSet = true; m_video = std::move(value); }
103 inline ToolResultContentBlock& WithVideo(const VideoBlock& value) { SetVideo(value); return *this;}
104 inline ToolResultContentBlock& WithVideo(VideoBlock&& value) { SetVideo(std::move(value)); return *this;}
106 private:
107
109 bool m_jsonHasBeenSet = false;
110
111 Aws::String m_text;
112 bool m_textHasBeenSet = false;
113
114 ImageBlock m_image;
115 bool m_imageHasBeenSet = false;
116
117 DocumentBlock m_document;
118 bool m_documentHasBeenSet = false;
119
120 VideoBlock m_video;
121 bool m_videoHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace BedrockRuntime
126} // namespace Aws
ToolResultContentBlock & WithImage(ImageBlock &&value)
ToolResultContentBlock & WithText(Aws::String &&value)
ToolResultContentBlock & WithDocument(DocumentBlock &&value)
ToolResultContentBlock & WithVideo(VideoBlock &&value)
ToolResultContentBlock & WithVideo(const VideoBlock &value)
ToolResultContentBlock & WithDocument(const DocumentBlock &value)
ToolResultContentBlock & WithText(const Aws::String &value)
ToolResultContentBlock & WithJson(Aws::Utils::Document &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API ToolResultContentBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ToolResultContentBlock(Aws::Utils::Json::JsonView jsonValue)
ToolResultContentBlock & WithJson(const Aws::Utils::Document &value)
ToolResultContentBlock & WithText(const char *value)
ToolResultContentBlock & WithImage(const ImageBlock &value)
void SetJson(const Aws::Utils::Document &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue