AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
UpdateAgentActionGroupRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/ActionGroupSignature.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/bedrock-agent/model/ActionGroupExecutor.h>
13#include <aws/bedrock-agent/model/ActionGroupState.h>
14#include <aws/bedrock-agent/model/APISchema.h>
15#include <aws/bedrock-agent/model/FunctionSchema.h>
16#include <utility>
17
18namespace Aws
19{
20namespace BedrockAgent
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_BEDROCKAGENT_API UpdateAgentActionGroupRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgentActionGroup"; }
37
38 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
39
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) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
49 template<typename AgentIdT = Aws::String>
50 UpdateAgentActionGroupRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
52
54
58 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
59 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
60 template<typename AgentVersionT = Aws::String>
61 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
62 template<typename AgentVersionT = Aws::String>
63 UpdateAgentActionGroupRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetActionGroupId() const { return m_actionGroupId; }
71 inline bool ActionGroupIdHasBeenSet() const { return m_actionGroupIdHasBeenSet; }
72 template<typename ActionGroupIdT = Aws::String>
73 void SetActionGroupId(ActionGroupIdT&& value) { m_actionGroupIdHasBeenSet = true; m_actionGroupId = std::forward<ActionGroupIdT>(value); }
74 template<typename ActionGroupIdT = Aws::String>
75 UpdateAgentActionGroupRequest& WithActionGroupId(ActionGroupIdT&& value) { SetActionGroupId(std::forward<ActionGroupIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetActionGroupName() const { return m_actionGroupName; }
83 inline bool ActionGroupNameHasBeenSet() const { return m_actionGroupNameHasBeenSet; }
84 template<typename ActionGroupNameT = Aws::String>
85 void SetActionGroupName(ActionGroupNameT&& value) { m_actionGroupNameHasBeenSet = true; m_actionGroupName = std::forward<ActionGroupNameT>(value); }
86 template<typename ActionGroupNameT = Aws::String>
87 UpdateAgentActionGroupRequest& WithActionGroupName(ActionGroupNameT&& value) { SetActionGroupName(std::forward<ActionGroupNameT>(value)); return *this;}
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 UpdateAgentActionGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
132 inline ActionGroupSignature GetParentActionGroupSignature() const { return m_parentActionGroupSignature; }
133 inline bool ParentActionGroupSignatureHasBeenSet() const { return m_parentActionGroupSignatureHasBeenSet; }
134 inline void SetParentActionGroupSignature(ActionGroupSignature value) { m_parentActionGroupSignatureHasBeenSet = true; m_parentActionGroupSignature = value; }
137
139
147 inline const Aws::Map<Aws::String, Aws::String>& GetParentActionGroupSignatureParams() const { return m_parentActionGroupSignatureParams; }
148 inline bool ParentActionGroupSignatureParamsHasBeenSet() const { return m_parentActionGroupSignatureParamsHasBeenSet; }
149 template<typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
150 void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) { m_parentActionGroupSignatureParamsHasBeenSet = true; m_parentActionGroupSignatureParams = std::forward<ParentActionGroupSignatureParamsT>(value); }
151 template<typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
152 UpdateAgentActionGroupRequest& WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) { SetParentActionGroupSignatureParams(std::forward<ParentActionGroupSignatureParamsT>(value)); return *this;}
153 template<typename ParentActionGroupSignatureParamsKeyT = Aws::String, typename ParentActionGroupSignatureParamsValueT = Aws::String>
154 UpdateAgentActionGroupRequest& AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT&& key, ParentActionGroupSignatureParamsValueT&& value) {
155 m_parentActionGroupSignatureParamsHasBeenSet = true; m_parentActionGroupSignatureParams.emplace(std::forward<ParentActionGroupSignatureParamsKeyT>(key), std::forward<ParentActionGroupSignatureParamsValueT>(value)); return *this;
156 }
158
160
164 inline const ActionGroupExecutor& GetActionGroupExecutor() const { return m_actionGroupExecutor; }
165 inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; }
166 template<typename ActionGroupExecutorT = ActionGroupExecutor>
167 void SetActionGroupExecutor(ActionGroupExecutorT&& value) { m_actionGroupExecutorHasBeenSet = true; m_actionGroupExecutor = std::forward<ActionGroupExecutorT>(value); }
168 template<typename ActionGroupExecutorT = ActionGroupExecutor>
169 UpdateAgentActionGroupRequest& WithActionGroupExecutor(ActionGroupExecutorT&& value) { SetActionGroupExecutor(std::forward<ActionGroupExecutorT>(value)); return *this;}
171
173
179 inline ActionGroupState GetActionGroupState() const { return m_actionGroupState; }
180 inline bool ActionGroupStateHasBeenSet() const { return m_actionGroupStateHasBeenSet; }
181 inline void SetActionGroupState(ActionGroupState value) { m_actionGroupStateHasBeenSet = true; m_actionGroupState = value; }
184
186
193 inline const APISchema& GetApiSchema() const { return m_apiSchema; }
194 inline bool ApiSchemaHasBeenSet() const { return m_apiSchemaHasBeenSet; }
195 template<typename ApiSchemaT = APISchema>
196 void SetApiSchema(ApiSchemaT&& value) { m_apiSchemaHasBeenSet = true; m_apiSchema = std::forward<ApiSchemaT>(value); }
197 template<typename ApiSchemaT = APISchema>
198 UpdateAgentActionGroupRequest& WithApiSchema(ApiSchemaT&& value) { SetApiSchema(std::forward<ApiSchemaT>(value)); return *this;}
200
202
206 inline const FunctionSchema& GetFunctionSchema() const { return m_functionSchema; }
207 inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; }
208 template<typename FunctionSchemaT = FunctionSchema>
209 void SetFunctionSchema(FunctionSchemaT&& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = std::forward<FunctionSchemaT>(value); }
210 template<typename FunctionSchemaT = FunctionSchema>
211 UpdateAgentActionGroupRequest& WithFunctionSchema(FunctionSchemaT&& value) { SetFunctionSchema(std::forward<FunctionSchemaT>(value)); return *this;}
213 private:
214
215 Aws::String m_agentId;
216 bool m_agentIdHasBeenSet = false;
217
218 Aws::String m_agentVersion;
219 bool m_agentVersionHasBeenSet = false;
220
221 Aws::String m_actionGroupId;
222 bool m_actionGroupIdHasBeenSet = false;
223
224 Aws::String m_actionGroupName;
225 bool m_actionGroupNameHasBeenSet = false;
226
227 Aws::String m_description;
228 bool m_descriptionHasBeenSet = false;
229
230 ActionGroupSignature m_parentActionGroupSignature{ActionGroupSignature::NOT_SET};
231 bool m_parentActionGroupSignatureHasBeenSet = false;
232
233 Aws::Map<Aws::String, Aws::String> m_parentActionGroupSignatureParams;
234 bool m_parentActionGroupSignatureParamsHasBeenSet = false;
235
236 ActionGroupExecutor m_actionGroupExecutor;
237 bool m_actionGroupExecutorHasBeenSet = false;
238
240 bool m_actionGroupStateHasBeenSet = false;
241
242 APISchema m_apiSchema;
243 bool m_apiSchemaHasBeenSet = false;
244
245 FunctionSchema m_functionSchema;
246 bool m_functionSchemaHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace BedrockAgent
251} // 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::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