AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/bedrock-agent/model/AgentCollaboration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-agent/model/CustomOrchestration.h>
12#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
13#include <aws/bedrock-agent/model/MemoryConfiguration.h>
14#include <aws/bedrock-agent/model/OrchestrationType.h>
15#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
16#include <aws/core/utils/memory/stl/AWSMap.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 AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
48 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
49 inline void SetAgentCollaboration(AgentCollaboration value) { m_agentCollaborationHasBeenSet = true; m_agentCollaboration = value; }
52
54
57 inline const Aws::String& GetAgentName() const { return m_agentName; }
58 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
59 template<typename AgentNameT = Aws::String>
60 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet = true; m_agentName = std::forward<AgentNameT>(value); }
61 template<typename AgentNameT = Aws::String>
62 CreateAgentRequest& WithAgentName(AgentNameT&& value) { SetAgentName(std::forward<AgentNameT>(value)); return *this;}
64
66
70 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
71 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
72 template<typename AgentResourceRoleArnT = Aws::String>
73 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value); }
74 template<typename AgentResourceRoleArnT = Aws::String>
75 CreateAgentRequest& WithAgentResourceRoleArn(AgentResourceRoleArnT&& value) { SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value)); return *this;}
77
79
86 inline const Aws::String& GetClientToken() const { return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 template<typename ClientTokenT = Aws::String>
89 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
90 template<typename ClientTokenT = Aws::String>
91 CreateAgentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
93
95
98 inline const CustomOrchestration& GetCustomOrchestration() const { return m_customOrchestration; }
99 inline bool CustomOrchestrationHasBeenSet() const { return m_customOrchestrationHasBeenSet; }
100 template<typename CustomOrchestrationT = CustomOrchestration>
101 void SetCustomOrchestration(CustomOrchestrationT&& value) { m_customOrchestrationHasBeenSet = true; m_customOrchestration = std::forward<CustomOrchestrationT>(value); }
102 template<typename CustomOrchestrationT = CustomOrchestration>
103 CreateAgentRequest& WithCustomOrchestration(CustomOrchestrationT&& value) { SetCustomOrchestration(std::forward<CustomOrchestrationT>(value)); return *this;}
105
107
111 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
112 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
113 template<typename CustomerEncryptionKeyArnT = Aws::String>
114 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
115 template<typename CustomerEncryptionKeyArnT = Aws::String>
116 CreateAgentRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
118
120
123 inline const Aws::String& GetDescription() const { return m_description; }
124 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
125 template<typename DescriptionT = Aws::String>
126 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
127 template<typename DescriptionT = Aws::String>
128 CreateAgentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
130
132
160 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
161 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
162 template<typename FoundationModelT = Aws::String>
163 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::forward<FoundationModelT>(value); }
164 template<typename FoundationModelT = Aws::String>
165 CreateAgentRequest& WithFoundationModel(FoundationModelT&& value) { SetFoundationModel(std::forward<FoundationModelT>(value)); return *this;}
167
169
173 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
174 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
175 template<typename GuardrailConfigurationT = GuardrailConfiguration>
176 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
177 template<typename GuardrailConfigurationT = GuardrailConfiguration>
178 CreateAgentRequest& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
180
182
189 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
190 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
191 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
194
196
200 inline const Aws::String& GetInstruction() const { return m_instruction; }
201 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
202 template<typename InstructionT = Aws::String>
203 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
204 template<typename InstructionT = Aws::String>
205 CreateAgentRequest& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
207
209
212 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
213 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
214 template<typename MemoryConfigurationT = MemoryConfiguration>
215 void SetMemoryConfiguration(MemoryConfigurationT&& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = std::forward<MemoryConfigurationT>(value); }
216 template<typename MemoryConfigurationT = MemoryConfiguration>
217 CreateAgentRequest& WithMemoryConfiguration(MemoryConfigurationT&& value) { SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value)); return *this;}
219
221
225 inline OrchestrationType GetOrchestrationType() const { return m_orchestrationType; }
226 inline bool OrchestrationTypeHasBeenSet() const { return m_orchestrationTypeHasBeenSet; }
227 inline void SetOrchestrationType(OrchestrationType value) { m_orchestrationTypeHasBeenSet = true; m_orchestrationType = value; }
230
232
238 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
239 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
240 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
241 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
242 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
243 CreateAgentRequest& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value)); return *this;}
245
247
250 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
251 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
252 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
253 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
254 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
255 CreateAgentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
256 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
257 CreateAgentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
258 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
259 }
261 private:
262
264 bool m_agentCollaborationHasBeenSet = false;
265
266 Aws::String m_agentName;
267 bool m_agentNameHasBeenSet = false;
268
269 Aws::String m_agentResourceRoleArn;
270 bool m_agentResourceRoleArnHasBeenSet = false;
271
273 bool m_clientTokenHasBeenSet = true;
274
275 CustomOrchestration m_customOrchestration;
276 bool m_customOrchestrationHasBeenSet = false;
277
278 Aws::String m_customerEncryptionKeyArn;
279 bool m_customerEncryptionKeyArnHasBeenSet = false;
280
281 Aws::String m_description;
282 bool m_descriptionHasBeenSet = false;
283
284 Aws::String m_foundationModel;
285 bool m_foundationModelHasBeenSet = false;
286
287 GuardrailConfiguration m_guardrailConfiguration;
288 bool m_guardrailConfigurationHasBeenSet = false;
289
290 int m_idleSessionTTLInSeconds{0};
291 bool m_idleSessionTTLInSecondsHasBeenSet = false;
292
293 Aws::String m_instruction;
294 bool m_instructionHasBeenSet = false;
295
296 MemoryConfiguration m_memoryConfiguration;
297 bool m_memoryConfigurationHasBeenSet = false;
298
300 bool m_orchestrationTypeHasBeenSet = false;
301
302 PromptOverrideConfiguration m_promptOverrideConfiguration;
303 bool m_promptOverrideConfigurationHasBeenSet = false;
304
306 bool m_tagsHasBeenSet = 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