AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockRuntime
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_BEDROCKRUNTIME_API ToolResultContentBlock();
38 AWS_BEDROCKRUNTIME_API ToolResultContentBlock(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline Aws::Utils::DocumentView GetJson() const{ return m_json; }
48 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
49 inline void SetJson(const Aws::Utils::Document& value) { m_jsonHasBeenSet = true; m_json = value; }
50 inline void SetJson(Aws::Utils::Document&& value) { m_jsonHasBeenSet = true; m_json = std::move(value); }
51 inline ToolResultContentBlock& WithJson(const Aws::Utils::Document& value) { SetJson(value); return *this;}
52 inline ToolResultContentBlock& WithJson(Aws::Utils::Document&& value) { SetJson(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetText() const{ return m_text; }
60 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
61 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
62 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
63 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
64 inline ToolResultContentBlock& WithText(const Aws::String& value) { SetText(value); return *this;}
65 inline ToolResultContentBlock& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
66 inline ToolResultContentBlock& WithText(const char* value) { SetText(value); return *this;}
68
70
74 inline const ImageBlock& GetImage() const{ return m_image; }
75 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
76 inline void SetImage(const ImageBlock& value) { m_imageHasBeenSet = true; m_image = value; }
77 inline void SetImage(ImageBlock&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
78 inline ToolResultContentBlock& WithImage(const ImageBlock& value) { SetImage(value); return *this;}
79 inline ToolResultContentBlock& WithImage(ImageBlock&& value) { SetImage(std::move(value)); return *this;}
81
83
86 inline const DocumentBlock& GetDocument() const{ return m_document; }
87 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
88 inline void SetDocument(const DocumentBlock& value) { m_documentHasBeenSet = true; m_document = value; }
89 inline void SetDocument(DocumentBlock&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
90 inline ToolResultContentBlock& WithDocument(const DocumentBlock& value) { SetDocument(value); return *this;}
91 inline ToolResultContentBlock& WithDocument(DocumentBlock&& value) { SetDocument(std::move(value)); return *this;}
93 private:
94
96 bool m_jsonHasBeenSet = false;
97
98 Aws::String m_text;
99 bool m_textHasBeenSet = false;
100
101 ImageBlock m_image;
102 bool m_imageHasBeenSet = false;
103
104 DocumentBlock m_document;
105 bool m_documentHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace BedrockRuntime
110} // namespace Aws
ToolResultContentBlock & WithImage(ImageBlock &&value)
ToolResultContentBlock & WithText(Aws::String &&value)
ToolResultContentBlock & WithDocument(DocumentBlock &&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