AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ToolResultBlock.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-runtime/model/ToolResultStatus.h>
11#include <aws/bedrock-runtime/model/ToolResultContentBlock.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
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API ToolResultBlock() = default;
39 AWS_BEDROCKRUNTIME_API ToolResultBlock(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API ToolResultBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetToolUseId() const { return m_toolUseId; }
49 inline bool ToolUseIdHasBeenSet() const { return m_toolUseIdHasBeenSet; }
50 template<typename ToolUseIdT = Aws::String>
51 void SetToolUseId(ToolUseIdT&& value) { m_toolUseIdHasBeenSet = true; m_toolUseId = std::forward<ToolUseIdT>(value); }
52 template<typename ToolUseIdT = Aws::String>
53 ToolResultBlock& WithToolUseId(ToolUseIdT&& value) { SetToolUseId(std::forward<ToolUseIdT>(value)); return *this;}
55
57
60 inline const Aws::Vector<ToolResultContentBlock>& GetContent() const { return m_content; }
61 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
62 template<typename ContentT = Aws::Vector<ToolResultContentBlock>>
63 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
64 template<typename ContentT = Aws::Vector<ToolResultContentBlock>>
65 ToolResultBlock& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
66 template<typename ContentT = ToolResultContentBlock>
67 ToolResultBlock& AddContent(ContentT&& value) { m_contentHasBeenSet = true; m_content.emplace_back(std::forward<ContentT>(value)); return *this; }
69
71
75 inline ToolResultStatus GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(ToolResultStatus value) { m_statusHasBeenSet = true; m_status = value; }
78 inline ToolResultBlock& WithStatus(ToolResultStatus value) { SetStatus(value); return *this;}
80 private:
81
82 Aws::String m_toolUseId;
83 bool m_toolUseIdHasBeenSet = false;
84
86 bool m_contentHasBeenSet = false;
87
89 bool m_statusHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace BedrockRuntime
94} // namespace Aws
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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue