AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetToolUseId(const Aws::String& value) { m_toolUseIdHasBeenSet = true; m_toolUseId = value; }
51 inline void SetToolUseId(Aws::String&& value) { m_toolUseIdHasBeenSet = true; m_toolUseId = std::move(value); }
52 inline void SetToolUseId(const char* value) { m_toolUseIdHasBeenSet = true; m_toolUseId.assign(value); }
53 inline ToolResultBlock& WithToolUseId(const Aws::String& value) { SetToolUseId(value); return *this;}
54 inline ToolResultBlock& WithToolUseId(Aws::String&& value) { SetToolUseId(std::move(value)); return *this;}
55 inline ToolResultBlock& WithToolUseId(const char* value) { SetToolUseId(value); return *this;}
57
59
62 inline const Aws::Vector<ToolResultContentBlock>& GetContent() const{ return m_content; }
63 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
64 inline void SetContent(const Aws::Vector<ToolResultContentBlock>& value) { m_contentHasBeenSet = true; m_content = value; }
65 inline void SetContent(Aws::Vector<ToolResultContentBlock>&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
66 inline ToolResultBlock& WithContent(const Aws::Vector<ToolResultContentBlock>& value) { SetContent(value); return *this;}
67 inline ToolResultBlock& WithContent(Aws::Vector<ToolResultContentBlock>&& value) { SetContent(std::move(value)); return *this;}
68 inline ToolResultBlock& AddContent(const ToolResultContentBlock& value) { m_contentHasBeenSet = true; m_content.push_back(value); return *this; }
69 inline ToolResultBlock& AddContent(ToolResultContentBlock&& value) { m_contentHasBeenSet = true; m_content.push_back(std::move(value)); return *this; }
71
73
77 inline const ToolResultStatus& GetStatus() const{ return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(const ToolResultStatus& value) { m_statusHasBeenSet = true; m_status = value; }
80 inline void SetStatus(ToolResultStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
81 inline ToolResultBlock& WithStatus(const ToolResultStatus& value) { SetStatus(value); return *this;}
82 inline ToolResultBlock& WithStatus(ToolResultStatus&& value) { SetStatus(std::move(value)); return *this;}
84 private:
85
86 Aws::String m_toolUseId;
87 bool m_toolUseIdHasBeenSet = false;
88
90 bool m_contentHasBeenSet = false;
91
92 ToolResultStatus m_status;
93 bool m_statusHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace BedrockRuntime
98} // namespace Aws
ToolResultBlock & WithContent(const Aws::Vector< ToolResultContentBlock > &value)
ToolResultBlock & WithToolUseId(const Aws::String &value)
void SetToolUseId(const Aws::String &value)
ToolResultBlock & WithStatus(ToolResultStatus &&value)
ToolResultBlock & WithStatus(const ToolResultStatus &value)
ToolResultBlock & WithToolUseId(const char *value)
AWS_BEDROCKRUNTIME_API ToolResultBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolResultBlock & AddContent(ToolResultContentBlock &&value)
AWS_BEDROCKRUNTIME_API ToolResultBlock()
void SetContent(Aws::Vector< ToolResultContentBlock > &&value)
AWS_BEDROCKRUNTIME_API ToolResultBlock(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ToolResultStatus &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContent(const Aws::Vector< ToolResultContentBlock > &value)
const Aws::Vector< ToolResultContentBlock > & GetContent() const
ToolResultBlock & AddContent(const ToolResultContentBlock &value)
void SetStatus(const ToolResultStatus &value)
ToolResultBlock & WithToolUseId(Aws::String &&value)
ToolResultBlock & WithContent(Aws::Vector< ToolResultContentBlock > &&value)
const ToolResultStatus & GetStatus() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue