AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
ToolResultBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/ToolResultContentBlock.h>
9#include <aws/bedrock-runtime/model/ToolResultStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime {
23namespace Model {
24
35 public:
36 AWS_BEDROCKRUNTIME_API ToolResultBlock() = default;
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetToolUseId() const { return m_toolUseId; }
46 inline bool ToolUseIdHasBeenSet() const { return m_toolUseIdHasBeenSet; }
47 template <typename ToolUseIdT = Aws::String>
48 void SetToolUseId(ToolUseIdT&& value) {
49 m_toolUseIdHasBeenSet = true;
50 m_toolUseId = std::forward<ToolUseIdT>(value);
51 }
52 template <typename ToolUseIdT = Aws::String>
54 SetToolUseId(std::forward<ToolUseIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<ToolResultContentBlock>& GetContent() const { return m_content; }
64 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
65 template <typename ContentT = Aws::Vector<ToolResultContentBlock>>
66 void SetContent(ContentT&& value) {
67 m_contentHasBeenSet = true;
68 m_content = std::forward<ContentT>(value);
69 }
70 template <typename ContentT = Aws::Vector<ToolResultContentBlock>>
72 SetContent(std::forward<ContentT>(value));
73 return *this;
74 }
75 template <typename ContentT = ToolResultContentBlock>
77 m_contentHasBeenSet = true;
78 m_content.emplace_back(std::forward<ContentT>(value));
79 return *this;
80 }
82
84
88 inline ToolResultStatus GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(ToolResultStatus value) {
91 m_statusHasBeenSet = true;
92 m_status = value;
93 }
95 SetStatus(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetType() const { return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 template <typename TypeT = Aws::String>
107 void SetType(TypeT&& value) {
108 m_typeHasBeenSet = true;
109 m_type = std::forward<TypeT>(value);
110 }
111 template <typename TypeT = Aws::String>
113 SetType(std::forward<TypeT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_toolUseId;
119
121
123
124 Aws::String m_type;
125 bool m_toolUseIdHasBeenSet = false;
126 bool m_contentHasBeenSet = false;
127 bool m_statusHasBeenSet = false;
128 bool m_typeHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace BedrockRuntime
133} // namespace Aws
ToolResultBlock & WithType(TypeT &&value)
ToolResultBlock & AddContent(ContentT &&value)
ToolResultBlock & WithToolUseId(ToolUseIdT &&value)
ToolResultBlock & WithStatus(ToolResultStatus value)
ToolResultBlock & WithContent(ContentT &&value)
AWS_BEDROCKRUNTIME_API ToolResultBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API ToolResultBlock(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ToolResultContentBlock > & GetContent() const
AWS_BEDROCKRUNTIME_API ToolResultBlock()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue