AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ToolUseResultData.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
29 public:
30 AWS_QCONNECT_API ToolUseResultData() = default;
33 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetToolUseId() const { return m_toolUseId; }
40 inline bool ToolUseIdHasBeenSet() const { return m_toolUseIdHasBeenSet; }
41 template <typename ToolUseIdT = Aws::String>
42 void SetToolUseId(ToolUseIdT&& value) {
43 m_toolUseIdHasBeenSet = true;
44 m_toolUseId = std::forward<ToolUseIdT>(value);
45 }
46 template <typename ToolUseIdT = Aws::String>
48 SetToolUseId(std::forward<ToolUseIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetToolName() const { return m_toolName; }
58 inline bool ToolNameHasBeenSet() const { return m_toolNameHasBeenSet; }
59 template <typename ToolNameT = Aws::String>
60 void SetToolName(ToolNameT&& value) {
61 m_toolNameHasBeenSet = true;
62 m_toolName = std::forward<ToolNameT>(value);
63 }
64 template <typename ToolNameT = Aws::String>
66 SetToolName(std::forward<ToolNameT>(value));
67 return *this;
68 }
70
72
75 inline Aws::Utils::DocumentView GetToolResult() const { return m_toolResult; }
76 inline bool ToolResultHasBeenSet() const { return m_toolResultHasBeenSet; }
77 template <typename ToolResultT = Aws::Utils::Document>
78 void SetToolResult(ToolResultT&& value) {
79 m_toolResultHasBeenSet = true;
80 m_toolResult = std::forward<ToolResultT>(value);
81 }
82 template <typename ToolResultT = Aws::Utils::Document>
84 SetToolResult(std::forward<ToolResultT>(value));
85 return *this;
86 }
88
90
93 inline Aws::Utils::DocumentView GetInputSchema() const { return m_inputSchema; }
94 inline bool InputSchemaHasBeenSet() const { return m_inputSchemaHasBeenSet; }
95 template <typename InputSchemaT = Aws::Utils::Document>
97 m_inputSchemaHasBeenSet = true;
98 m_inputSchema = std::forward<InputSchemaT>(value);
99 }
100 template <typename InputSchemaT = Aws::Utils::Document>
102 SetInputSchema(std::forward<InputSchemaT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_toolUseId;
108
109 Aws::String m_toolName;
110
111 Aws::Utils::Document m_toolResult;
112
113 Aws::Utils::Document m_inputSchema;
114 bool m_toolUseIdHasBeenSet = false;
115 bool m_toolNameHasBeenSet = false;
116 bool m_toolResultHasBeenSet = false;
117 bool m_inputSchemaHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace QConnect
122} // namespace Aws
void SetInputSchema(InputSchemaT &&value)
Aws::Utils::DocumentView GetToolResult() const
ToolUseResultData & WithInputSchema(InputSchemaT &&value)
AWS_QCONNECT_API ToolUseResultData()=default
const Aws::String & GetToolUseId() const
ToolUseResultData & WithToolUseId(ToolUseIdT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ToolUseResultData & WithToolResult(ToolResultT &&value)
const Aws::String & GetToolName() const
Aws::Utils::DocumentView GetInputSchema() const
AWS_QCONNECT_API ToolUseResultData(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API ToolUseResultData & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolUseResultData & WithToolName(ToolNameT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue