AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateAgentActionGroupRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/APISchema.h>
10#include <aws/bedrock-agent/model/ActionGroupExecutor.h>
11#include <aws/bedrock-agent/model/ActionGroupSignature.h>
12#include <aws/bedrock-agent/model/ActionGroupState.h>
13#include <aws/bedrock-agent/model/FunctionSchema.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace BedrockAgent {
22namespace Model {
23
27 public:
28 AWS_BEDROCKAGENT_API CreateAgentActionGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentActionGroup"; }
35
36 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetAgentId() const { return m_agentId; }
43 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
44 template <typename AgentIdT = Aws::String>
45 void SetAgentId(AgentIdT&& value) {
46 m_agentIdHasBeenSet = true;
47 m_agentId = std::forward<AgentIdT>(value);
48 }
49 template <typename AgentIdT = Aws::String>
51 SetAgentId(std::forward<AgentIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
61 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
62 template <typename AgentVersionT = Aws::String>
64 m_agentVersionHasBeenSet = true;
65 m_agentVersion = std::forward<AgentVersionT>(value);
66 }
67 template <typename AgentVersionT = Aws::String>
69 SetAgentVersion(std::forward<AgentVersionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetActionGroupName() const { return m_actionGroupName; }
79 inline bool ActionGroupNameHasBeenSet() const { return m_actionGroupNameHasBeenSet; }
80 template <typename ActionGroupNameT = Aws::String>
82 m_actionGroupNameHasBeenSet = true;
83 m_actionGroupName = std::forward<ActionGroupNameT>(value);
84 }
85 template <typename ActionGroupNameT = Aws::String>
87 SetActionGroupName(std::forward<ActionGroupNameT>(value));
88 return *this;
89 }
91
93
100 inline const Aws::String& GetClientToken() const { return m_clientToken; }
101 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
102 template <typename ClientTokenT = Aws::String>
104 m_clientTokenHasBeenSet = true;
105 m_clientToken = std::forward<ClientTokenT>(value);
106 }
107 template <typename ClientTokenT = Aws::String>
109 SetClientToken(std::forward<ClientTokenT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template <typename DescriptionT = Aws::String>
122 m_descriptionHasBeenSet = true;
123 m_description = std::forward<DescriptionT>(value);
124 }
125 template <typename DescriptionT = Aws::String>
127 SetDescription(std::forward<DescriptionT>(value));
128 return *this;
129 }
131
133
158 inline ActionGroupSignature GetParentActionGroupSignature() const { return m_parentActionGroupSignature; }
159 inline bool ParentActionGroupSignatureHasBeenSet() const { return m_parentActionGroupSignatureHasBeenSet; }
161 m_parentActionGroupSignatureHasBeenSet = true;
162 m_parentActionGroupSignature = value;
163 }
166 return *this;
167 }
169
171
181 return m_parentActionGroupSignatureParams;
182 }
183 inline bool ParentActionGroupSignatureParamsHasBeenSet() const { return m_parentActionGroupSignatureParamsHasBeenSet; }
184 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
186 m_parentActionGroupSignatureParamsHasBeenSet = true;
187 m_parentActionGroupSignatureParams = std::forward<ParentActionGroupSignatureParamsT>(value);
188 }
189 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
191 SetParentActionGroupSignatureParams(std::forward<ParentActionGroupSignatureParamsT>(value));
192 return *this;
193 }
194 template <typename ParentActionGroupSignatureParamsKeyT = Aws::String, typename ParentActionGroupSignatureParamsValueT = Aws::String>
197 m_parentActionGroupSignatureParamsHasBeenSet = true;
198 m_parentActionGroupSignatureParams.emplace(std::forward<ParentActionGroupSignatureParamsKeyT>(key),
199 std::forward<ParentActionGroupSignatureParamsValueT>(value));
200 return *this;
201 }
203
205
210 inline const ActionGroupExecutor& GetActionGroupExecutor() const { return m_actionGroupExecutor; }
211 inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; }
212 template <typename ActionGroupExecutorT = ActionGroupExecutor>
214 m_actionGroupExecutorHasBeenSet = true;
215 m_actionGroupExecutor = std::forward<ActionGroupExecutorT>(value);
216 }
217 template <typename ActionGroupExecutorT = ActionGroupExecutor>
219 SetActionGroupExecutor(std::forward<ActionGroupExecutorT>(value));
220 return *this;
221 }
223
225
232 inline const APISchema& GetApiSchema() const { return m_apiSchema; }
233 inline bool ApiSchemaHasBeenSet() const { return m_apiSchemaHasBeenSet; }
234 template <typename ApiSchemaT = APISchema>
235 void SetApiSchema(ApiSchemaT&& value) {
236 m_apiSchemaHasBeenSet = true;
237 m_apiSchema = std::forward<ApiSchemaT>(value);
238 }
239 template <typename ApiSchemaT = APISchema>
241 SetApiSchema(std::forward<ApiSchemaT>(value));
242 return *this;
243 }
245
247
253 inline ActionGroupState GetActionGroupState() const { return m_actionGroupState; }
254 inline bool ActionGroupStateHasBeenSet() const { return m_actionGroupStateHasBeenSet; }
256 m_actionGroupStateHasBeenSet = true;
257 m_actionGroupState = value;
258 }
260 SetActionGroupState(value);
261 return *this;
262 }
264
266
270 inline const FunctionSchema& GetFunctionSchema() const { return m_functionSchema; }
271 inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; }
272 template <typename FunctionSchemaT = FunctionSchema>
274 m_functionSchemaHasBeenSet = true;
275 m_functionSchema = std::forward<FunctionSchemaT>(value);
276 }
277 template <typename FunctionSchemaT = FunctionSchema>
279 SetFunctionSchema(std::forward<FunctionSchemaT>(value));
280 return *this;
281 }
283 private:
284 Aws::String m_agentId;
285
286 Aws::String m_agentVersion;
287
288 Aws::String m_actionGroupName;
289
291
292 Aws::String m_description;
293
294 ActionGroupSignature m_parentActionGroupSignature{ActionGroupSignature::NOT_SET};
295
296 Aws::Map<Aws::String, Aws::String> m_parentActionGroupSignatureParams;
297
298 ActionGroupExecutor m_actionGroupExecutor;
299
300 APISchema m_apiSchema;
301
303
304 FunctionSchema m_functionSchema;
305 bool m_agentIdHasBeenSet = false;
306 bool m_agentVersionHasBeenSet = false;
307 bool m_actionGroupNameHasBeenSet = false;
308 bool m_clientTokenHasBeenSet = true;
309 bool m_descriptionHasBeenSet = false;
310 bool m_parentActionGroupSignatureHasBeenSet = false;
311 bool m_parentActionGroupSignatureParamsHasBeenSet = false;
312 bool m_actionGroupExecutorHasBeenSet = false;
313 bool m_apiSchemaHasBeenSet = false;
314 bool m_actionGroupStateHasBeenSet = false;
315 bool m_functionSchemaHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace BedrockAgent
320} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetParentActionGroupSignatureParams() const
AWS_BEDROCKAGENT_API CreateAgentActionGroupRequest()=default
CreateAgentActionGroupRequest & WithClientToken(ClientTokenT &&value)
CreateAgentActionGroupRequest & WithFunctionSchema(FunctionSchemaT &&value)
CreateAgentActionGroupRequest & WithActionGroupState(ActionGroupState value)
CreateAgentActionGroupRequest & WithActionGroupExecutor(ActionGroupExecutorT &&value)
CreateAgentActionGroupRequest & WithActionGroupName(ActionGroupNameT &&value)
void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
CreateAgentActionGroupRequest & WithApiSchema(ApiSchemaT &&value)
CreateAgentActionGroupRequest & AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT &&key, ParentActionGroupSignatureParamsValueT &&value)
CreateAgentActionGroupRequest & WithParentActionGroupSignature(ActionGroupSignature value)
CreateAgentActionGroupRequest & WithAgentId(AgentIdT &&value)
CreateAgentActionGroupRequest & WithDescription(DescriptionT &&value)
CreateAgentActionGroupRequest & WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
CreateAgentActionGroupRequest & WithAgentVersion(AgentVersionT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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