AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
AgentActionGroup.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/APISchema.h>
9#include <aws/bedrock-agent/model/ActionGroupExecutor.h>
10#include <aws/bedrock-agent/model/ActionGroupSignature.h>
11#include <aws/bedrock-agent/model/ActionGroupState.h>
12#include <aws/bedrock-agent/model/FunctionSchema.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent {
27namespace Model {
28
35 public:
36 AWS_BEDROCKAGENT_API AgentActionGroup() = default;
37 AWS_BEDROCKAGENT_API AgentActionGroup(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENT_API AgentActionGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetAgentId() const { return m_agentId; }
46 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
47 template <typename AgentIdT = Aws::String>
48 void SetAgentId(AgentIdT&& value) {
49 m_agentIdHasBeenSet = true;
50 m_agentId = std::forward<AgentIdT>(value);
51 }
52 template <typename AgentIdT = Aws::String>
53 AgentActionGroup& WithAgentId(AgentIdT&& value) {
54 SetAgentId(std::forward<AgentIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
64 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
65 template <typename AgentVersionT = Aws::String>
66 void SetAgentVersion(AgentVersionT&& value) {
67 m_agentVersionHasBeenSet = true;
68 m_agentVersion = std::forward<AgentVersionT>(value);
69 }
70 template <typename AgentVersionT = Aws::String>
71 AgentActionGroup& WithAgentVersion(AgentVersionT&& value) {
72 SetAgentVersion(std::forward<AgentVersionT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetActionGroupId() const { return m_actionGroupId; }
82 inline bool ActionGroupIdHasBeenSet() const { return m_actionGroupIdHasBeenSet; }
83 template <typename ActionGroupIdT = Aws::String>
84 void SetActionGroupId(ActionGroupIdT&& value) {
85 m_actionGroupIdHasBeenSet = true;
86 m_actionGroupId = std::forward<ActionGroupIdT>(value);
87 }
88 template <typename ActionGroupIdT = Aws::String>
89 AgentActionGroup& WithActionGroupId(ActionGroupIdT&& value) {
90 SetActionGroupId(std::forward<ActionGroupIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetActionGroupName() const { return m_actionGroupName; }
100 inline bool ActionGroupNameHasBeenSet() const { return m_actionGroupNameHasBeenSet; }
101 template <typename ActionGroupNameT = Aws::String>
102 void SetActionGroupName(ActionGroupNameT&& value) {
103 m_actionGroupNameHasBeenSet = true;
104 m_actionGroupName = std::forward<ActionGroupNameT>(value);
105 }
106 template <typename ActionGroupNameT = Aws::String>
107 AgentActionGroup& WithActionGroupName(ActionGroupNameT&& value) {
108 SetActionGroupName(std::forward<ActionGroupNameT>(value));
109 return *this;
110 }
112
114
121 inline const Aws::String& GetClientToken() const { return m_clientToken; }
122 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
123 template <typename ClientTokenT = Aws::String>
124 void SetClientToken(ClientTokenT&& value) {
125 m_clientTokenHasBeenSet = true;
126 m_clientToken = std::forward<ClientTokenT>(value);
127 }
128 template <typename ClientTokenT = Aws::String>
129 AgentActionGroup& WithClientToken(ClientTokenT&& value) {
130 SetClientToken(std::forward<ClientTokenT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetDescription() const { return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 template <typename DescriptionT = Aws::String>
142 void SetDescription(DescriptionT&& value) {
143 m_descriptionHasBeenSet = true;
144 m_description = std::forward<DescriptionT>(value);
145 }
146 template <typename DescriptionT = Aws::String>
147 AgentActionGroup& WithDescription(DescriptionT&& value) {
148 SetDescription(std::forward<DescriptionT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
158 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
159 template <typename CreatedAtT = Aws::Utils::DateTime>
160 void SetCreatedAt(CreatedAtT&& value) {
161 m_createdAtHasBeenSet = true;
162 m_createdAt = std::forward<CreatedAtT>(value);
163 }
164 template <typename CreatedAtT = Aws::Utils::DateTime>
165 AgentActionGroup& WithCreatedAt(CreatedAtT&& value) {
166 SetCreatedAt(std::forward<CreatedAtT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
176 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
177 template <typename UpdatedAtT = Aws::Utils::DateTime>
178 void SetUpdatedAt(UpdatedAtT&& value) {
179 m_updatedAtHasBeenSet = true;
180 m_updatedAt = std::forward<UpdatedAtT>(value);
181 }
182 template <typename UpdatedAtT = Aws::Utils::DateTime>
183 AgentActionGroup& WithUpdatedAt(UpdatedAtT&& value) {
184 SetUpdatedAt(std::forward<UpdatedAtT>(value));
185 return *this;
186 }
188
190
201 inline ActionGroupSignature GetParentActionSignature() const { return m_parentActionSignature; }
202 inline bool ParentActionSignatureHasBeenSet() const { return m_parentActionSignatureHasBeenSet; }
204 m_parentActionSignatureHasBeenSet = true;
205 m_parentActionSignature = value;
206 }
209 return *this;
210 }
212
214
223 return m_parentActionGroupSignatureParams;
224 }
225 inline bool ParentActionGroupSignatureParamsHasBeenSet() const { return m_parentActionGroupSignatureParamsHasBeenSet; }
226 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
227 void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) {
228 m_parentActionGroupSignatureParamsHasBeenSet = true;
229 m_parentActionGroupSignatureParams = std::forward<ParentActionGroupSignatureParamsT>(value);
230 }
231 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
232 AgentActionGroup& WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) {
233 SetParentActionGroupSignatureParams(std::forward<ParentActionGroupSignatureParamsT>(value));
234 return *this;
235 }
236 template <typename ParentActionGroupSignatureParamsKeyT = Aws::String, typename ParentActionGroupSignatureParamsValueT = Aws::String>
237 AgentActionGroup& AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT&& key,
238 ParentActionGroupSignatureParamsValueT&& value) {
239 m_parentActionGroupSignatureParamsHasBeenSet = true;
240 m_parentActionGroupSignatureParams.emplace(std::forward<ParentActionGroupSignatureParamsKeyT>(key),
241 std::forward<ParentActionGroupSignatureParamsValueT>(value));
242 return *this;
243 }
245
247
252 inline const ActionGroupExecutor& GetActionGroupExecutor() const { return m_actionGroupExecutor; }
253 inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; }
254 template <typename ActionGroupExecutorT = ActionGroupExecutor>
255 void SetActionGroupExecutor(ActionGroupExecutorT&& value) {
256 m_actionGroupExecutorHasBeenSet = true;
257 m_actionGroupExecutor = std::forward<ActionGroupExecutorT>(value);
258 }
259 template <typename ActionGroupExecutorT = ActionGroupExecutor>
260 AgentActionGroup& WithActionGroupExecutor(ActionGroupExecutorT&& value) {
261 SetActionGroupExecutor(std::forward<ActionGroupExecutorT>(value));
262 return *this;
263 }
265
267
274 inline const APISchema& GetApiSchema() const { return m_apiSchema; }
275 inline bool ApiSchemaHasBeenSet() const { return m_apiSchemaHasBeenSet; }
276 template <typename ApiSchemaT = APISchema>
277 void SetApiSchema(ApiSchemaT&& value) {
278 m_apiSchemaHasBeenSet = true;
279 m_apiSchema = std::forward<ApiSchemaT>(value);
280 }
281 template <typename ApiSchemaT = APISchema>
282 AgentActionGroup& WithApiSchema(ApiSchemaT&& value) {
283 SetApiSchema(std::forward<ApiSchemaT>(value));
284 return *this;
285 }
287
289
293 inline const FunctionSchema& GetFunctionSchema() const { return m_functionSchema; }
294 inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; }
295 template <typename FunctionSchemaT = FunctionSchema>
296 void SetFunctionSchema(FunctionSchemaT&& value) {
297 m_functionSchemaHasBeenSet = true;
298 m_functionSchema = std::forward<FunctionSchemaT>(value);
299 }
300 template <typename FunctionSchemaT = FunctionSchema>
301 AgentActionGroup& WithFunctionSchema(FunctionSchemaT&& value) {
302 SetFunctionSchema(std::forward<FunctionSchemaT>(value));
303 return *this;
304 }
306
308
314 inline ActionGroupState GetActionGroupState() const { return m_actionGroupState; }
315 inline bool ActionGroupStateHasBeenSet() const { return m_actionGroupStateHasBeenSet; }
317 m_actionGroupStateHasBeenSet = true;
318 m_actionGroupState = value;
319 }
321 SetActionGroupState(value);
322 return *this;
323 }
325 private:
326 Aws::String m_agentId;
327 bool m_agentIdHasBeenSet = false;
328
329 Aws::String m_agentVersion;
330 bool m_agentVersionHasBeenSet = false;
331
332 Aws::String m_actionGroupId;
333 bool m_actionGroupIdHasBeenSet = false;
334
335 Aws::String m_actionGroupName;
336 bool m_actionGroupNameHasBeenSet = false;
337
338 Aws::String m_clientToken;
339 bool m_clientTokenHasBeenSet = false;
340
341 Aws::String m_description;
342 bool m_descriptionHasBeenSet = false;
343
344 Aws::Utils::DateTime m_createdAt{};
345 bool m_createdAtHasBeenSet = false;
346
347 Aws::Utils::DateTime m_updatedAt{};
348 bool m_updatedAtHasBeenSet = false;
349
351 bool m_parentActionSignatureHasBeenSet = false;
352
353 Aws::Map<Aws::String, Aws::String> m_parentActionGroupSignatureParams;
354 bool m_parentActionGroupSignatureParamsHasBeenSet = false;
355
356 ActionGroupExecutor m_actionGroupExecutor;
357 bool m_actionGroupExecutorHasBeenSet = false;
358
359 APISchema m_apiSchema;
360 bool m_apiSchemaHasBeenSet = false;
361
362 FunctionSchema m_functionSchema;
363 bool m_functionSchemaHasBeenSet = false;
364
366 bool m_actionGroupStateHasBeenSet = false;
367};
368
369} // namespace Model
370} // namespace BedrockAgent
371} // namespace Aws
ActionGroupSignature GetParentActionSignature() const
AgentActionGroup & WithApiSchema(ApiSchemaT &&value)
AgentActionGroup & WithCreatedAt(CreatedAtT &&value)
AgentActionGroup & WithActionGroupName(ActionGroupNameT &&value)
AgentActionGroup & WithActionGroupState(ActionGroupState value)
void SetActionGroupExecutor(ActionGroupExecutorT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParentActionGroupSignatureParams() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
AgentActionGroup & WithParentActionSignature(ActionGroupSignature value)
const FunctionSchema & GetFunctionSchema() const
AgentActionGroup & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API AgentActionGroup(Aws::Utils::Json::JsonView jsonValue)
void SetActionGroupState(ActionGroupState value)
void SetParentActionSignature(ActionGroupSignature value)
AgentActionGroup & WithFunctionSchema(FunctionSchemaT &&value)
void SetFunctionSchema(FunctionSchemaT &&value)
void SetActionGroupName(ActionGroupNameT &&value)
void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
const Aws::String & GetActionGroupId() const
AWS_BEDROCKAGENT_API AgentActionGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentActionGroup & WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
const ActionGroupExecutor & GetActionGroupExecutor() const
const Aws::String & GetAgentVersion() const
void SetAgentVersion(AgentVersionT &&value)
AgentActionGroup & WithAgentVersion(AgentVersionT &&value)
AgentActionGroup & AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT &&key, ParentActionGroupSignatureParamsValueT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_BEDROCKAGENT_API AgentActionGroup()=default
AgentActionGroup & WithAgentId(AgentIdT &&value)
void SetActionGroupId(ActionGroupIdT &&value)
AgentActionGroup & WithUpdatedAt(UpdatedAtT &&value)
AgentActionGroup & WithActionGroupId(ActionGroupIdT &&value)
AgentActionGroup & WithActionGroupExecutor(ActionGroupExecutorT &&value)
const Aws::String & GetActionGroupName() const
AgentActionGroup & WithClientToken(ClientTokenT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue