AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
ToolArguments.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/InputContentBlock.h>
9#include <aws/bedrock-agentcore/model/LanguageRuntime.h>
10#include <aws/bedrock-agentcore/model/ProgrammingLanguage.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentCore {
24namespace Model {
25
35 public:
36 AWS_BEDROCKAGENTCORE_API ToolArguments() = default;
37 AWS_BEDROCKAGENTCORE_API ToolArguments(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTCORE_API ToolArguments& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const Aws::String& GetCode() const { return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 template <typename CodeT = Aws::String>
50 void SetCode(CodeT&& value) {
51 m_codeHasBeenSet = true;
52 m_code = std::forward<CodeT>(value);
53 }
54 template <typename CodeT = Aws::String>
55 ToolArguments& WithCode(CodeT&& value) {
56 SetCode(std::forward<CodeT>(value));
57 return *this;
58 }
60
62
66 inline ProgrammingLanguage GetLanguage() const { return m_language; }
67 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
68 inline void SetLanguage(ProgrammingLanguage value) {
69 m_languageHasBeenSet = true;
70 m_language = value;
71 }
73 SetLanguage(value);
74 return *this;
75 }
77
79
82 inline bool GetClearContext() const { return m_clearContext; }
83 inline bool ClearContextHasBeenSet() const { return m_clearContextHasBeenSet; }
84 inline void SetClearContext(bool value) {
85 m_clearContextHasBeenSet = true;
86 m_clearContext = value;
87 }
88 inline ToolArguments& WithClearContext(bool value) {
89 SetClearContext(value);
90 return *this;
91 }
93
95
98 inline const Aws::String& GetCommand() const { return m_command; }
99 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
100 template <typename CommandT = Aws::String>
101 void SetCommand(CommandT&& value) {
102 m_commandHasBeenSet = true;
103 m_command = std::forward<CommandT>(value);
104 }
105 template <typename CommandT = Aws::String>
106 ToolArguments& WithCommand(CommandT&& value) {
107 SetCommand(std::forward<CommandT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetPath() const { return m_path; }
117 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
118 template <typename PathT = Aws::String>
119 void SetPath(PathT&& value) {
120 m_pathHasBeenSet = true;
121 m_path = std::forward<PathT>(value);
122 }
123 template <typename PathT = Aws::String>
124 ToolArguments& WithPath(PathT&& value) {
125 SetPath(std::forward<PathT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<Aws::String>& GetPaths() const { return m_paths; }
135 inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; }
136 template <typename PathsT = Aws::Vector<Aws::String>>
137 void SetPaths(PathsT&& value) {
138 m_pathsHasBeenSet = true;
139 m_paths = std::forward<PathsT>(value);
140 }
141 template <typename PathsT = Aws::Vector<Aws::String>>
142 ToolArguments& WithPaths(PathsT&& value) {
143 SetPaths(std::forward<PathsT>(value));
144 return *this;
145 }
146 template <typename PathsT = Aws::String>
147 ToolArguments& AddPaths(PathsT&& value) {
148 m_pathsHasBeenSet = true;
149 m_paths.emplace_back(std::forward<PathsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<InputContentBlock>& GetContent() const { return m_content; }
159 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
160 template <typename ContentT = Aws::Vector<InputContentBlock>>
161 void SetContent(ContentT&& value) {
162 m_contentHasBeenSet = true;
163 m_content = std::forward<ContentT>(value);
164 }
165 template <typename ContentT = Aws::Vector<InputContentBlock>>
166 ToolArguments& WithContent(ContentT&& value) {
167 SetContent(std::forward<ContentT>(value));
168 return *this;
169 }
170 template <typename ContentT = InputContentBlock>
171 ToolArguments& AddContent(ContentT&& value) {
172 m_contentHasBeenSet = true;
173 m_content.emplace_back(std::forward<ContentT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetDirectoryPath() const { return m_directoryPath; }
183 inline bool DirectoryPathHasBeenSet() const { return m_directoryPathHasBeenSet; }
184 template <typename DirectoryPathT = Aws::String>
185 void SetDirectoryPath(DirectoryPathT&& value) {
186 m_directoryPathHasBeenSet = true;
187 m_directoryPath = std::forward<DirectoryPathT>(value);
188 }
189 template <typename DirectoryPathT = Aws::String>
190 ToolArguments& WithDirectoryPath(DirectoryPathT&& value) {
191 SetDirectoryPath(std::forward<DirectoryPathT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetTaskId() const { return m_taskId; }
201 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
202 template <typename TaskIdT = Aws::String>
203 void SetTaskId(TaskIdT&& value) {
204 m_taskIdHasBeenSet = true;
205 m_taskId = std::forward<TaskIdT>(value);
206 }
207 template <typename TaskIdT = Aws::String>
208 ToolArguments& WithTaskId(TaskIdT&& value) {
209 SetTaskId(std::forward<TaskIdT>(value));
210 return *this;
211 }
213
215
219 inline LanguageRuntime GetRuntime() const { return m_runtime; }
220 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
221 inline void SetRuntime(LanguageRuntime value) {
222 m_runtimeHasBeenSet = true;
223 m_runtime = value;
224 }
226 SetRuntime(value);
227 return *this;
228 }
230 private:
231 Aws::String m_code;
232
234
235 bool m_clearContext{false};
236
237 Aws::String m_command;
238
239 Aws::String m_path;
240
242
244
245 Aws::String m_directoryPath;
246
247 Aws::String m_taskId;
248
250 bool m_codeHasBeenSet = false;
251 bool m_languageHasBeenSet = false;
252 bool m_clearContextHasBeenSet = false;
253 bool m_commandHasBeenSet = false;
254 bool m_pathHasBeenSet = false;
255 bool m_pathsHasBeenSet = false;
256 bool m_contentHasBeenSet = false;
257 bool m_directoryPathHasBeenSet = false;
258 bool m_taskIdHasBeenSet = false;
259 bool m_runtimeHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace BedrockAgentCore
264} // namespace Aws
ToolArguments & WithRuntime(LanguageRuntime value)
ToolArguments & WithTaskId(TaskIdT &&value)
ToolArguments & WithContent(ContentT &&value)
ToolArguments & WithCommand(CommandT &&value)
ToolArguments & WithCode(CodeT &&value)
const Aws::String & GetDirectoryPath() const
AWS_BEDROCKAGENTCORE_API ToolArguments & operator=(Aws::Utils::Json::JsonView jsonValue)
ToolArguments & AddPaths(PathsT &&value)
ToolArguments & WithPaths(PathsT &&value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
ToolArguments & WithClearContext(bool value)
ProgrammingLanguage GetLanguage() const
void SetLanguage(ProgrammingLanguage value)
const Aws::Vector< InputContentBlock > & GetContent() const
ToolArguments & WithPath(PathT &&value)
ToolArguments & WithDirectoryPath(DirectoryPathT &&value)
void SetDirectoryPath(DirectoryPathT &&value)
const Aws::Vector< Aws::String > & GetPaths() const
AWS_BEDROCKAGENTCORE_API ToolArguments(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommand() const
AWS_BEDROCKAGENTCORE_API ToolArguments()=default
ToolArguments & WithLanguage(ProgrammingLanguage value)
ToolArguments & AddContent(ContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue