AWS SDK for C++

AWS SDK for C++ Version 1.11.633

Loading...
Searching...
No Matches
CreateAgentRequest.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/OrchestrationType.h>
11#include <aws/bedrock-agent/model/CustomOrchestration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
14#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
15#include <aws/bedrock-agent/model/MemoryConfiguration.h>
16#include <aws/bedrock-agent/model/AgentCollaboration.h>
17#include <utility>
18#include <aws/core/utils/UUID.h>
19
20namespace Aws
21{
22namespace BedrockAgent
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_BEDROCKAGENT_API CreateAgentRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateAgent"; }
39
40 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetAgentName() const { return m_agentName; }
48 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
49 template<typename AgentNameT = Aws::String>
50 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet = true; m_agentName = std::forward<AgentNameT>(value); }
51 template<typename AgentNameT = Aws::String>
52 CreateAgentRequest& WithAgentName(AgentNameT&& value) { SetAgentName(std::forward<AgentNameT>(value)); return *this;}
54
56
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template<typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
67 template<typename ClientTokenT = Aws::String>
68 CreateAgentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
70
72
76 inline const Aws::String& GetInstruction() const { return m_instruction; }
77 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
78 template<typename InstructionT = Aws::String>
79 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
80 template<typename InstructionT = Aws::String>
81 CreateAgentRequest& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
83
85
113 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
114 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
115 template<typename FoundationModelT = Aws::String>
116 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::forward<FoundationModelT>(value); }
117 template<typename FoundationModelT = Aws::String>
118 CreateAgentRequest& WithFoundationModel(FoundationModelT&& value) { SetFoundationModel(std::forward<FoundationModelT>(value)); return *this;}
120
122
125 inline const Aws::String& GetDescription() const { return m_description; }
126 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
127 template<typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
129 template<typename DescriptionT = Aws::String>
130 CreateAgentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
132
134
138 inline OrchestrationType GetOrchestrationType() const { return m_orchestrationType; }
139 inline bool OrchestrationTypeHasBeenSet() const { return m_orchestrationTypeHasBeenSet; }
140 inline void SetOrchestrationType(OrchestrationType value) { m_orchestrationTypeHasBeenSet = true; m_orchestrationType = value; }
143
145
148 inline const CustomOrchestration& GetCustomOrchestration() const { return m_customOrchestration; }
149 inline bool CustomOrchestrationHasBeenSet() const { return m_customOrchestrationHasBeenSet; }
150 template<typename CustomOrchestrationT = CustomOrchestration>
151 void SetCustomOrchestration(CustomOrchestrationT&& value) { m_customOrchestrationHasBeenSet = true; m_customOrchestration = std::forward<CustomOrchestrationT>(value); }
152 template<typename CustomOrchestrationT = CustomOrchestration>
153 CreateAgentRequest& WithCustomOrchestration(CustomOrchestrationT&& value) { SetCustomOrchestration(std::forward<CustomOrchestrationT>(value)); return *this;}
155
157
164 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
165 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
166 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
169
171
175 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
176 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
177 template<typename AgentResourceRoleArnT = Aws::String>
178 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value); }
179 template<typename AgentResourceRoleArnT = Aws::String>
180 CreateAgentRequest& WithAgentResourceRoleArn(AgentResourceRoleArnT&& value) { SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value)); return *this;}
182
184
188 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
189 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
190 template<typename CustomerEncryptionKeyArnT = Aws::String>
191 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
192 template<typename CustomerEncryptionKeyArnT = Aws::String>
193 CreateAgentRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
195
197
200 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
204 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 CreateAgentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
206 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
207 CreateAgentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
208 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
209 }
211
213
219 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
220 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
221 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
222 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
223 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
224 CreateAgentRequest& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value)); return *this;}
226
228
232 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
233 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
234 template<typename GuardrailConfigurationT = GuardrailConfiguration>
235 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
236 template<typename GuardrailConfigurationT = GuardrailConfiguration>
237 CreateAgentRequest& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
239
241
244 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
245 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
246 template<typename MemoryConfigurationT = MemoryConfiguration>
247 void SetMemoryConfiguration(MemoryConfigurationT&& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = std::forward<MemoryConfigurationT>(value); }
248 template<typename MemoryConfigurationT = MemoryConfiguration>
249 CreateAgentRequest& WithMemoryConfiguration(MemoryConfigurationT&& value) { SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value)); return *this;}
251
253
256 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
257 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
258 inline void SetAgentCollaboration(AgentCollaboration value) { m_agentCollaborationHasBeenSet = true; m_agentCollaboration = value; }
261 private:
262
263 Aws::String m_agentName;
264 bool m_agentNameHasBeenSet = false;
265
267 bool m_clientTokenHasBeenSet = true;
268
269 Aws::String m_instruction;
270 bool m_instructionHasBeenSet = false;
271
272 Aws::String m_foundationModel;
273 bool m_foundationModelHasBeenSet = false;
274
275 Aws::String m_description;
276 bool m_descriptionHasBeenSet = false;
277
279 bool m_orchestrationTypeHasBeenSet = false;
280
281 CustomOrchestration m_customOrchestration;
282 bool m_customOrchestrationHasBeenSet = false;
283
284 int m_idleSessionTTLInSeconds{0};
285 bool m_idleSessionTTLInSecondsHasBeenSet = false;
286
287 Aws::String m_agentResourceRoleArn;
288 bool m_agentResourceRoleArnHasBeenSet = false;
289
290 Aws::String m_customerEncryptionKeyArn;
291 bool m_customerEncryptionKeyArnHasBeenSet = false;
292
294 bool m_tagsHasBeenSet = false;
295
296 PromptOverrideConfiguration m_promptOverrideConfiguration;
297 bool m_promptOverrideConfigurationHasBeenSet = false;
298
299 GuardrailConfiguration m_guardrailConfiguration;
300 bool m_guardrailConfigurationHasBeenSet = false;
301
302 MemoryConfiguration m_memoryConfiguration;
303 bool m_memoryConfigurationHasBeenSet = false;
304
306 bool m_agentCollaborationHasBeenSet = false;
307 };
308
309} // namespace Model
310} // namespace BedrockAgent
311} // 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