AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateAgentActionGroupRequest.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/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace BedrockAgent {
21namespace Model {
22
26 public:
27 AWS_BEDROCKAGENT_API UpdateAgentActionGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgentActionGroup"; }
34
35 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAgentId() const { return m_agentId; }
42 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
43 template <typename AgentIdT = Aws::String>
44 void SetAgentId(AgentIdT&& value) {
45 m_agentIdHasBeenSet = true;
46 m_agentId = std::forward<AgentIdT>(value);
47 }
48 template <typename AgentIdT = Aws::String>
50 SetAgentId(std::forward<AgentIdT>(value));
51 return *this;
52 }
54
56
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& GetActionGroupId() const { return m_actionGroupId; }
79 inline bool ActionGroupIdHasBeenSet() const { return m_actionGroupIdHasBeenSet; }
80 template <typename ActionGroupIdT = Aws::String>
82 m_actionGroupIdHasBeenSet = true;
83 m_actionGroupId = std::forward<ActionGroupIdT>(value);
84 }
85 template <typename ActionGroupIdT = Aws::String>
87 SetActionGroupId(std::forward<ActionGroupIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetActionGroupName() const { return m_actionGroupName; }
97 inline bool ActionGroupNameHasBeenSet() const { return m_actionGroupNameHasBeenSet; }
98 template <typename ActionGroupNameT = Aws::String>
100 m_actionGroupNameHasBeenSet = true;
101 m_actionGroupName = std::forward<ActionGroupNameT>(value);
102 }
103 template <typename ActionGroupNameT = Aws::String>
105 SetActionGroupName(std::forward<ActionGroupNameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
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
180 return m_parentActionGroupSignatureParams;
181 }
182 inline bool ParentActionGroupSignatureParamsHasBeenSet() const { return m_parentActionGroupSignatureParamsHasBeenSet; }
183 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
185 m_parentActionGroupSignatureParamsHasBeenSet = true;
186 m_parentActionGroupSignatureParams = std::forward<ParentActionGroupSignatureParamsT>(value);
187 }
188 template <typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
190 SetParentActionGroupSignatureParams(std::forward<ParentActionGroupSignatureParamsT>(value));
191 return *this;
192 }
193 template <typename ParentActionGroupSignatureParamsKeyT = Aws::String, typename ParentActionGroupSignatureParamsValueT = Aws::String>
196 m_parentActionGroupSignatureParamsHasBeenSet = true;
197 m_parentActionGroupSignatureParams.emplace(std::forward<ParentActionGroupSignatureParamsKeyT>(key),
198 std::forward<ParentActionGroupSignatureParamsValueT>(value));
199 return *this;
200 }
202
204
208 inline const ActionGroupExecutor& GetActionGroupExecutor() const { return m_actionGroupExecutor; }
209 inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; }
210 template <typename ActionGroupExecutorT = ActionGroupExecutor>
212 m_actionGroupExecutorHasBeenSet = true;
213 m_actionGroupExecutor = std::forward<ActionGroupExecutorT>(value);
214 }
215 template <typename ActionGroupExecutorT = ActionGroupExecutor>
217 SetActionGroupExecutor(std::forward<ActionGroupExecutorT>(value));
218 return *this;
219 }
221
223
229 inline ActionGroupState GetActionGroupState() const { return m_actionGroupState; }
230 inline bool ActionGroupStateHasBeenSet() const { return m_actionGroupStateHasBeenSet; }
232 m_actionGroupStateHasBeenSet = true;
233 m_actionGroupState = value;
234 }
236 SetActionGroupState(value);
237 return *this;
238 }
240
242
249 inline const APISchema& GetApiSchema() const { return m_apiSchema; }
250 inline bool ApiSchemaHasBeenSet() const { return m_apiSchemaHasBeenSet; }
251 template <typename ApiSchemaT = APISchema>
252 void SetApiSchema(ApiSchemaT&& value) {
253 m_apiSchemaHasBeenSet = true;
254 m_apiSchema = std::forward<ApiSchemaT>(value);
255 }
256 template <typename ApiSchemaT = APISchema>
258 SetApiSchema(std::forward<ApiSchemaT>(value));
259 return *this;
260 }
262
264
268 inline const FunctionSchema& GetFunctionSchema() const { return m_functionSchema; }
269 inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; }
270 template <typename FunctionSchemaT = FunctionSchema>
272 m_functionSchemaHasBeenSet = true;
273 m_functionSchema = std::forward<FunctionSchemaT>(value);
274 }
275 template <typename FunctionSchemaT = FunctionSchema>
277 SetFunctionSchema(std::forward<FunctionSchemaT>(value));
278 return *this;
279 }
281 private:
282 Aws::String m_agentId;
283
284 Aws::String m_agentVersion;
285
286 Aws::String m_actionGroupId;
287
288 Aws::String m_actionGroupName;
289
290 Aws::String m_description;
291
292 ActionGroupSignature m_parentActionGroupSignature{ActionGroupSignature::NOT_SET};
293
294 Aws::Map<Aws::String, Aws::String> m_parentActionGroupSignatureParams;
295
296 ActionGroupExecutor m_actionGroupExecutor;
297
299
300 APISchema m_apiSchema;
301
302 FunctionSchema m_functionSchema;
303 bool m_agentIdHasBeenSet = false;
304 bool m_agentVersionHasBeenSet = false;
305 bool m_actionGroupIdHasBeenSet = false;
306 bool m_actionGroupNameHasBeenSet = false;
307 bool m_descriptionHasBeenSet = false;
308 bool m_parentActionGroupSignatureHasBeenSet = false;
309 bool m_parentActionGroupSignatureParamsHasBeenSet = false;
310 bool m_actionGroupExecutorHasBeenSet = false;
311 bool m_actionGroupStateHasBeenSet = false;
312 bool m_apiSchemaHasBeenSet = false;
313 bool m_functionSchemaHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace BedrockAgent
318} // namespace Aws
UpdateAgentActionGroupRequest & WithFunctionSchema(FunctionSchemaT &&value)
UpdateAgentActionGroupRequest & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateAgentActionGroupRequest & WithActionGroupId(ActionGroupIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetParentActionGroupSignatureParams() const
UpdateAgentActionGroupRequest & WithAgentVersion(AgentVersionT &&value)
AWS_BEDROCKAGENT_API UpdateAgentActionGroupRequest()=default
UpdateAgentActionGroupRequest & WithActionGroupState(ActionGroupState value)
UpdateAgentActionGroupRequest & WithApiSchema(ApiSchemaT &&value)
void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
UpdateAgentActionGroupRequest & WithActionGroupName(ActionGroupNameT &&value)
UpdateAgentActionGroupRequest & WithParentActionGroupSignature(ActionGroupSignature value)
UpdateAgentActionGroupRequest & WithAgentId(AgentIdT &&value)
UpdateAgentActionGroupRequest & WithActionGroupExecutor(ActionGroupExecutorT &&value)
UpdateAgentActionGroupRequest & AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT &&key, ParentActionGroupSignatureParamsValueT &&value)
UpdateAgentActionGroupRequest & WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT &&value)
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