AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateAgentRequest.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/AgentCollaboration.h>
10#include <aws/bedrock-agent/model/CustomOrchestration.h>
11#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
12#include <aws/bedrock-agent/model/MemoryConfiguration.h>
13#include <aws/bedrock-agent/model/OrchestrationType.h>
14#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
15#include <aws/core/utils/UUID.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18
19#include <utility>
20
21namespace Aws {
22namespace BedrockAgent {
23namespace Model {
24
28 public:
29 AWS_BEDROCKAGENT_API CreateAgentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAgent"; }
36
37 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetAgentName() const { return m_agentName; }
44 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
45 template <typename AgentNameT = Aws::String>
46 void SetAgentName(AgentNameT&& value) {
47 m_agentNameHasBeenSet = true;
48 m_agentName = std::forward<AgentNameT>(value);
49 }
50 template <typename AgentNameT = Aws::String>
51 CreateAgentRequest& WithAgentName(AgentNameT&& value) {
52 SetAgentName(std::forward<AgentNameT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetClientToken() const { return m_clientToken; }
66 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
67 template <typename ClientTokenT = Aws::String>
68 void SetClientToken(ClientTokenT&& value) {
69 m_clientTokenHasBeenSet = true;
70 m_clientToken = std::forward<ClientTokenT>(value);
71 }
72 template <typename ClientTokenT = Aws::String>
73 CreateAgentRequest& WithClientToken(ClientTokenT&& value) {
74 SetClientToken(std::forward<ClientTokenT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetInstruction() const { return m_instruction; }
85 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
86 template <typename InstructionT = Aws::String>
87 void SetInstruction(InstructionT&& value) {
88 m_instructionHasBeenSet = true;
89 m_instruction = std::forward<InstructionT>(value);
90 }
91 template <typename InstructionT = Aws::String>
92 CreateAgentRequest& WithInstruction(InstructionT&& value) {
93 SetInstruction(std::forward<InstructionT>(value));
94 return *this;
95 }
97
99
127 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
128 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
129 template <typename FoundationModelT = Aws::String>
130 void SetFoundationModel(FoundationModelT&& value) {
131 m_foundationModelHasBeenSet = true;
132 m_foundationModel = std::forward<FoundationModelT>(value);
133 }
134 template <typename FoundationModelT = Aws::String>
135 CreateAgentRequest& WithFoundationModel(FoundationModelT&& value) {
136 SetFoundationModel(std::forward<FoundationModelT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetDescription() const { return m_description; }
146 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
147 template <typename DescriptionT = Aws::String>
148 void SetDescription(DescriptionT&& value) {
149 m_descriptionHasBeenSet = true;
150 m_description = std::forward<DescriptionT>(value);
151 }
152 template <typename DescriptionT = Aws::String>
153 CreateAgentRequest& WithDescription(DescriptionT&& value) {
154 SetDescription(std::forward<DescriptionT>(value));
155 return *this;
156 }
158
160
164 inline OrchestrationType GetOrchestrationType() const { return m_orchestrationType; }
165 inline bool OrchestrationTypeHasBeenSet() const { return m_orchestrationTypeHasBeenSet; }
167 m_orchestrationTypeHasBeenSet = true;
168 m_orchestrationType = value;
169 }
172 return *this;
173 }
175
177
180 inline const CustomOrchestration& GetCustomOrchestration() const { return m_customOrchestration; }
181 inline bool CustomOrchestrationHasBeenSet() const { return m_customOrchestrationHasBeenSet; }
182 template <typename CustomOrchestrationT = CustomOrchestration>
183 void SetCustomOrchestration(CustomOrchestrationT&& value) {
184 m_customOrchestrationHasBeenSet = true;
185 m_customOrchestration = std::forward<CustomOrchestrationT>(value);
186 }
187 template <typename CustomOrchestrationT = CustomOrchestration>
188 CreateAgentRequest& WithCustomOrchestration(CustomOrchestrationT&& value) {
189 SetCustomOrchestration(std::forward<CustomOrchestrationT>(value));
190 return *this;
191 }
193
195
202 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
203 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
204 inline void SetIdleSessionTTLInSeconds(int value) {
205 m_idleSessionTTLInSecondsHasBeenSet = true;
206 m_idleSessionTTLInSeconds = value;
207 }
210 return *this;
211 }
213
215
219 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
220 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
221 template <typename AgentResourceRoleArnT = Aws::String>
222 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) {
223 m_agentResourceRoleArnHasBeenSet = true;
224 m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value);
225 }
226 template <typename AgentResourceRoleArnT = Aws::String>
227 CreateAgentRequest& WithAgentResourceRoleArn(AgentResourceRoleArnT&& value) {
228 SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value));
229 return *this;
230 }
232
234
238 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
239 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
240 template <typename CustomerEncryptionKeyArnT = Aws::String>
241 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
242 m_customerEncryptionKeyArnHasBeenSet = true;
243 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
244 }
245 template <typename CustomerEncryptionKeyArnT = Aws::String>
246 CreateAgentRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
247 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
257 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
258 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
259 void SetTags(TagsT&& value) {
260 m_tagsHasBeenSet = true;
261 m_tags = std::forward<TagsT>(value);
262 }
263 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
264 CreateAgentRequest& WithTags(TagsT&& value) {
265 SetTags(std::forward<TagsT>(value));
266 return *this;
267 }
268 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
269 CreateAgentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
270 m_tagsHasBeenSet = true;
271 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
272 return *this;
273 }
275
277
283 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
284 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
285 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
286 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) {
287 m_promptOverrideConfigurationHasBeenSet = true;
288 m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value);
289 }
290 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
291 CreateAgentRequest& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) {
292 SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value));
293 return *this;
294 }
296
298
302 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
303 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
304 template <typename GuardrailConfigurationT = GuardrailConfiguration>
305 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) {
306 m_guardrailConfigurationHasBeenSet = true;
307 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
308 }
309 template <typename GuardrailConfigurationT = GuardrailConfiguration>
310 CreateAgentRequest& WithGuardrailConfiguration(GuardrailConfigurationT&& value) {
311 SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value));
312 return *this;
313 }
315
317
320 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
321 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
322 template <typename MemoryConfigurationT = MemoryConfiguration>
323 void SetMemoryConfiguration(MemoryConfigurationT&& value) {
324 m_memoryConfigurationHasBeenSet = true;
325 m_memoryConfiguration = std::forward<MemoryConfigurationT>(value);
326 }
327 template <typename MemoryConfigurationT = MemoryConfiguration>
328 CreateAgentRequest& WithMemoryConfiguration(MemoryConfigurationT&& value) {
329 SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value));
330 return *this;
331 }
333
335
338 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
339 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
341 m_agentCollaborationHasBeenSet = true;
342 m_agentCollaboration = value;
343 }
346 return *this;
347 }
349 private:
350 Aws::String m_agentName;
351
353
354 Aws::String m_instruction;
355
356 Aws::String m_foundationModel;
357
358 Aws::String m_description;
359
361
362 CustomOrchestration m_customOrchestration;
363
364 int m_idleSessionTTLInSeconds{0};
365
366 Aws::String m_agentResourceRoleArn;
367
368 Aws::String m_customerEncryptionKeyArn;
369
371
372 PromptOverrideConfiguration m_promptOverrideConfiguration;
373
374 GuardrailConfiguration m_guardrailConfiguration;
375
376 MemoryConfiguration m_memoryConfiguration;
377
379 bool m_agentNameHasBeenSet = false;
380 bool m_clientTokenHasBeenSet = true;
381 bool m_instructionHasBeenSet = false;
382 bool m_foundationModelHasBeenSet = false;
383 bool m_descriptionHasBeenSet = false;
384 bool m_orchestrationTypeHasBeenSet = false;
385 bool m_customOrchestrationHasBeenSet = false;
386 bool m_idleSessionTTLInSecondsHasBeenSet = false;
387 bool m_agentResourceRoleArnHasBeenSet = false;
388 bool m_customerEncryptionKeyArnHasBeenSet = false;
389 bool m_tagsHasBeenSet = false;
390 bool m_promptOverrideConfigurationHasBeenSet = false;
391 bool m_guardrailConfigurationHasBeenSet = false;
392 bool m_memoryConfigurationHasBeenSet = false;
393 bool m_agentCollaborationHasBeenSet = false;
394};
395
396} // namespace Model
397} // namespace BedrockAgent
398} // namespace Aws
const Aws::String & GetAgentResourceRoleArn() const
const GuardrailConfiguration & GetGuardrailConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateAgentRequest & WithInstruction(InstructionT &&value)
CreateAgentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAgentRequest & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
const CustomOrchestration & GetCustomOrchestration() const
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
void SetMemoryConfiguration(MemoryConfigurationT &&value)
void SetOrchestrationType(OrchestrationType value)
CreateAgentRequest & WithAgentCollaboration(AgentCollaboration value)
CreateAgentRequest & WithDescription(DescriptionT &&value)
CreateAgentRequest & WithCustomOrchestration(CustomOrchestrationT &&value)
CreateAgentRequest & WithAgentName(AgentNameT &&value)
CreateAgentRequest & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
CreateAgentRequest & WithFoundationModel(FoundationModelT &&value)
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
void SetPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
CreateAgentRequest & WithAgentResourceRoleArn(AgentResourceRoleArnT &&value)
CreateAgentRequest & WithPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
void SetAgentResourceRoleArn(AgentResourceRoleArnT &&value)
CreateAgentRequest & WithOrchestrationType(OrchestrationType value)
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetFoundationModel(FoundationModelT &&value)
void SetCustomOrchestration(CustomOrchestrationT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreateAgentRequest & WithMemoryConfiguration(MemoryConfigurationT &&value)
AWS_BEDROCKAGENT_API CreateAgentRequest()=default
const Aws::String & GetCustomerEncryptionKeyArn() const
CreateAgentRequest & WithClientToken(ClientTokenT &&value)
CreateAgentRequest & WithTags(TagsT &&value)
CreateAgentRequest & WithIdleSessionTTLInSeconds(int value)
void SetAgentCollaboration(AgentCollaboration value)
const MemoryConfiguration & GetMemoryConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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