AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateAgentActionGroupRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/bedrock-agent/model/ActionGroupExecutor.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-agent/model/ActionGroupState.h>
12#include <aws/bedrock-agent/model/APISchema.h>
13#include <aws/bedrock-agent/model/FunctionSchema.h>
14#include <aws/bedrock-agent/model/ActionGroupSignature.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace BedrockAgent
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_BEDROCKAGENT_API CreateAgentActionGroupRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentActionGroup"; }
38
39 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
40
41
43
48 inline const ActionGroupExecutor& GetActionGroupExecutor() const { return m_actionGroupExecutor; }
49 inline bool ActionGroupExecutorHasBeenSet() const { return m_actionGroupExecutorHasBeenSet; }
50 template<typename ActionGroupExecutorT = ActionGroupExecutor>
51 void SetActionGroupExecutor(ActionGroupExecutorT&& value) { m_actionGroupExecutorHasBeenSet = true; m_actionGroupExecutor = std::forward<ActionGroupExecutorT>(value); }
52 template<typename ActionGroupExecutorT = ActionGroupExecutor>
53 CreateAgentActionGroupRequest& WithActionGroupExecutor(ActionGroupExecutorT&& value) { SetActionGroupExecutor(std::forward<ActionGroupExecutorT>(value)); return *this;}
55
57
60 inline const Aws::String& GetActionGroupName() const { return m_actionGroupName; }
61 inline bool ActionGroupNameHasBeenSet() const { return m_actionGroupNameHasBeenSet; }
62 template<typename ActionGroupNameT = Aws::String>
63 void SetActionGroupName(ActionGroupNameT&& value) { m_actionGroupNameHasBeenSet = true; m_actionGroupName = std::forward<ActionGroupNameT>(value); }
64 template<typename ActionGroupNameT = Aws::String>
65 CreateAgentActionGroupRequest& WithActionGroupName(ActionGroupNameT&& value) { SetActionGroupName(std::forward<ActionGroupNameT>(value)); return *this;}
67
69
75 inline ActionGroupState GetActionGroupState() const { return m_actionGroupState; }
76 inline bool ActionGroupStateHasBeenSet() const { return m_actionGroupStateHasBeenSet; }
77 inline void SetActionGroupState(ActionGroupState value) { m_actionGroupStateHasBeenSet = true; m_actionGroupState = value; }
80
82
85 inline const Aws::String& GetAgentId() const { return m_agentId; }
86 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
87 template<typename AgentIdT = Aws::String>
88 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
89 template<typename AgentIdT = Aws::String>
90 CreateAgentActionGroupRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
98 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
99 template<typename AgentVersionT = Aws::String>
100 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
101 template<typename AgentVersionT = Aws::String>
102 CreateAgentActionGroupRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
104
106
113 inline const APISchema& GetApiSchema() const { return m_apiSchema; }
114 inline bool ApiSchemaHasBeenSet() const { return m_apiSchemaHasBeenSet; }
115 template<typename ApiSchemaT = APISchema>
116 void SetApiSchema(ApiSchemaT&& value) { m_apiSchemaHasBeenSet = true; m_apiSchema = std::forward<ApiSchemaT>(value); }
117 template<typename ApiSchemaT = APISchema>
118 CreateAgentActionGroupRequest& WithApiSchema(ApiSchemaT&& value) { SetApiSchema(std::forward<ApiSchemaT>(value)); return *this;}
120
122
129 inline const Aws::String& GetClientToken() const { return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 template<typename ClientTokenT = Aws::String>
132 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
133 template<typename ClientTokenT = Aws::String>
134 CreateAgentActionGroupRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
136
138
141 inline const Aws::String& GetDescription() const { return m_description; }
142 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
143 template<typename DescriptionT = Aws::String>
144 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
145 template<typename DescriptionT = Aws::String>
146 CreateAgentActionGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
148
150
154 inline const FunctionSchema& GetFunctionSchema() const { return m_functionSchema; }
155 inline bool FunctionSchemaHasBeenSet() const { return m_functionSchemaHasBeenSet; }
156 template<typename FunctionSchemaT = FunctionSchema>
157 void SetFunctionSchema(FunctionSchemaT&& value) { m_functionSchemaHasBeenSet = true; m_functionSchema = std::forward<FunctionSchemaT>(value); }
158 template<typename FunctionSchemaT = FunctionSchema>
159 CreateAgentActionGroupRequest& WithFunctionSchema(FunctionSchemaT&& value) { SetFunctionSchema(std::forward<FunctionSchemaT>(value)); return *this;}
161
163
188 inline ActionGroupSignature GetParentActionGroupSignature() const { return m_parentActionGroupSignature; }
189 inline bool ParentActionGroupSignatureHasBeenSet() const { return m_parentActionGroupSignatureHasBeenSet; }
190 inline void SetParentActionGroupSignature(ActionGroupSignature value) { m_parentActionGroupSignatureHasBeenSet = true; m_parentActionGroupSignature = value; }
193
195
204 inline const Aws::Map<Aws::String, Aws::String>& GetParentActionGroupSignatureParams() const { return m_parentActionGroupSignatureParams; }
205 inline bool ParentActionGroupSignatureParamsHasBeenSet() const { return m_parentActionGroupSignatureParamsHasBeenSet; }
206 template<typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
207 void SetParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) { m_parentActionGroupSignatureParamsHasBeenSet = true; m_parentActionGroupSignatureParams = std::forward<ParentActionGroupSignatureParamsT>(value); }
208 template<typename ParentActionGroupSignatureParamsT = Aws::Map<Aws::String, Aws::String>>
209 CreateAgentActionGroupRequest& WithParentActionGroupSignatureParams(ParentActionGroupSignatureParamsT&& value) { SetParentActionGroupSignatureParams(std::forward<ParentActionGroupSignatureParamsT>(value)); return *this;}
210 template<typename ParentActionGroupSignatureParamsKeyT = Aws::String, typename ParentActionGroupSignatureParamsValueT = Aws::String>
211 CreateAgentActionGroupRequest& AddParentActionGroupSignatureParams(ParentActionGroupSignatureParamsKeyT&& key, ParentActionGroupSignatureParamsValueT&& value) {
212 m_parentActionGroupSignatureParamsHasBeenSet = true; m_parentActionGroupSignatureParams.emplace(std::forward<ParentActionGroupSignatureParamsKeyT>(key), std::forward<ParentActionGroupSignatureParamsValueT>(value)); return *this;
213 }
215 private:
216
217 ActionGroupExecutor m_actionGroupExecutor;
218 bool m_actionGroupExecutorHasBeenSet = false;
219
220 Aws::String m_actionGroupName;
221 bool m_actionGroupNameHasBeenSet = false;
222
224 bool m_actionGroupStateHasBeenSet = false;
225
226 Aws::String m_agentId;
227 bool m_agentIdHasBeenSet = false;
228
229 Aws::String m_agentVersion;
230 bool m_agentVersionHasBeenSet = false;
231
232 APISchema m_apiSchema;
233 bool m_apiSchemaHasBeenSet = false;
234
236 bool m_clientTokenHasBeenSet = true;
237
238 Aws::String m_description;
239 bool m_descriptionHasBeenSet = false;
240
241 FunctionSchema m_functionSchema;
242 bool m_functionSchemaHasBeenSet = false;
243
244 ActionGroupSignature m_parentActionGroupSignature{ActionGroupSignature::NOT_SET};
245 bool m_parentActionGroupSignatureHasBeenSet = false;
246
247 Aws::Map<Aws::String, Aws::String> m_parentActionGroupSignatureParams;
248 bool m_parentActionGroupSignatureParamsHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace BedrockAgent
253} // 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::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