AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/GuardrailConfiguration.h>
11#include <aws/bedrock-agent/model/MemoryConfiguration.h>
12#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace BedrockAgent
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BEDROCKAGENT_API CreateAgentRequest();
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
39
41
44 inline const Aws::String& GetAgentName() const{ return m_agentName; }
45 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
46 inline void SetAgentName(const Aws::String& value) { m_agentNameHasBeenSet = true; m_agentName = value; }
47 inline void SetAgentName(Aws::String&& value) { m_agentNameHasBeenSet = true; m_agentName = std::move(value); }
48 inline void SetAgentName(const char* value) { m_agentNameHasBeenSet = true; m_agentName.assign(value); }
49 inline CreateAgentRequest& WithAgentName(const Aws::String& value) { SetAgentName(value); return *this;}
50 inline CreateAgentRequest& WithAgentName(Aws::String&& value) { SetAgentName(std::move(value)); return *this;}
51 inline CreateAgentRequest& WithAgentName(const char* value) { SetAgentName(value); return *this;}
53
55
59 inline const Aws::String& GetAgentResourceRoleArn() const{ return m_agentResourceRoleArn; }
60 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
61 inline void SetAgentResourceRoleArn(const Aws::String& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = value; }
62 inline void SetAgentResourceRoleArn(Aws::String&& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = std::move(value); }
63 inline void SetAgentResourceRoleArn(const char* value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn.assign(value); }
65 inline CreateAgentRequest& WithAgentResourceRoleArn(Aws::String&& value) { SetAgentResourceRoleArn(std::move(value)); return *this;}
66 inline CreateAgentRequest& WithAgentResourceRoleArn(const char* value) { SetAgentResourceRoleArn(value); return *this;}
68
70
77 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
80 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
81 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
82 inline CreateAgentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
83 inline CreateAgentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
84 inline CreateAgentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
86
88
92 inline const Aws::String& GetCustomerEncryptionKeyArn() const{ return m_customerEncryptionKeyArn; }
93 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
94 inline void SetCustomerEncryptionKeyArn(const Aws::String& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = value; }
95 inline void SetCustomerEncryptionKeyArn(Aws::String&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::move(value); }
96 inline void SetCustomerEncryptionKeyArn(const char* value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn.assign(value); }
99 inline CreateAgentRequest& WithCustomerEncryptionKeyArn(const char* value) { SetCustomerEncryptionKeyArn(value); return *this;}
101
103
106 inline const Aws::String& GetDescription() const{ return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
111 inline CreateAgentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
112 inline CreateAgentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
113 inline CreateAgentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115
117
145 inline const Aws::String& GetFoundationModel() const{ return m_foundationModel; }
146 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
147 inline void SetFoundationModel(const Aws::String& value) { m_foundationModelHasBeenSet = true; m_foundationModel = value; }
148 inline void SetFoundationModel(Aws::String&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::move(value); }
149 inline void SetFoundationModel(const char* value) { m_foundationModelHasBeenSet = true; m_foundationModel.assign(value); }
150 inline CreateAgentRequest& WithFoundationModel(const Aws::String& value) { SetFoundationModel(value); return *this;}
151 inline CreateAgentRequest& WithFoundationModel(Aws::String&& value) { SetFoundationModel(std::move(value)); return *this;}
152 inline CreateAgentRequest& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;}
154
156
160 inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; }
161 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
162 inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; }
163 inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); }
167
169
176 inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; }
177 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
178 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
181
183
187 inline const Aws::String& GetInstruction() const{ return m_instruction; }
188 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
189 inline void SetInstruction(const Aws::String& value) { m_instructionHasBeenSet = true; m_instruction = value; }
190 inline void SetInstruction(Aws::String&& value) { m_instructionHasBeenSet = true; m_instruction = std::move(value); }
191 inline void SetInstruction(const char* value) { m_instructionHasBeenSet = true; m_instruction.assign(value); }
192 inline CreateAgentRequest& WithInstruction(const Aws::String& value) { SetInstruction(value); return *this;}
193 inline CreateAgentRequest& WithInstruction(Aws::String&& value) { SetInstruction(std::move(value)); return *this;}
194 inline CreateAgentRequest& WithInstruction(const char* value) { SetInstruction(value); return *this;}
196
198
201 inline const MemoryConfiguration& GetMemoryConfiguration() const{ return m_memoryConfiguration; }
202 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
203 inline void SetMemoryConfiguration(const MemoryConfiguration& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = value; }
204 inline void SetMemoryConfiguration(MemoryConfiguration&& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = std::move(value); }
208
210
216 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const{ return m_promptOverrideConfiguration; }
217 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
218 inline void SetPromptOverrideConfiguration(const PromptOverrideConfiguration& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = value; }
219 inline void SetPromptOverrideConfiguration(PromptOverrideConfiguration&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::move(value); }
223
225
228 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
229 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
230 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
231 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
232 inline CreateAgentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
233 inline CreateAgentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
234 inline CreateAgentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
235 inline CreateAgentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
236 inline CreateAgentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
237 inline CreateAgentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
238 inline CreateAgentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
239 inline CreateAgentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
240 inline CreateAgentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
242 private:
243
244 Aws::String m_agentName;
245 bool m_agentNameHasBeenSet = false;
246
247 Aws::String m_agentResourceRoleArn;
248 bool m_agentResourceRoleArnHasBeenSet = false;
249
250 Aws::String m_clientToken;
251 bool m_clientTokenHasBeenSet = false;
252
253 Aws::String m_customerEncryptionKeyArn;
254 bool m_customerEncryptionKeyArnHasBeenSet = false;
255
256 Aws::String m_description;
257 bool m_descriptionHasBeenSet = false;
258
259 Aws::String m_foundationModel;
260 bool m_foundationModelHasBeenSet = false;
261
262 GuardrailConfiguration m_guardrailConfiguration;
263 bool m_guardrailConfigurationHasBeenSet = false;
264
265 int m_idleSessionTTLInSeconds;
266 bool m_idleSessionTTLInSecondsHasBeenSet = false;
267
268 Aws::String m_instruction;
269 bool m_instructionHasBeenSet = false;
270
271 MemoryConfiguration m_memoryConfiguration;
272 bool m_memoryConfigurationHasBeenSet = false;
273
274 PromptOverrideConfiguration m_promptOverrideConfiguration;
275 bool m_promptOverrideConfigurationHasBeenSet = false;
276
278 bool m_tagsHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace BedrockAgent
283} // namespace Aws
void SetAgentResourceRoleArn(const Aws::String &value)
const Aws::String & GetAgentResourceRoleArn() const
const GuardrailConfiguration & GetGuardrailConfiguration() const
CreateAgentRequest & AddTags(const char *key, Aws::String &&value)
void SetInstruction(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateAgentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAgentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAgentRequest & WithFoundationModel(const Aws::String &value)
CreateAgentRequest & WithAgentName(const char *value)
CreateAgentRequest & WithAgentResourceRoleArn(Aws::String &&value)
CreateAgentRequest & WithFoundationModel(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAgentRequest & WithCustomerEncryptionKeyArn(const char *value)
CreateAgentRequest & WithAgentResourceRoleArn(const Aws::String &value)
CreateAgentRequest & WithMemoryConfiguration(MemoryConfiguration &&value)
void SetMemoryConfiguration(MemoryConfiguration &&value)
CreateAgentRequest & WithClientToken(Aws::String &&value)
CreateAgentRequest & WithGuardrailConfiguration(const GuardrailConfiguration &value)
CreateAgentRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetGuardrailConfiguration(GuardrailConfiguration &&value)
CreateAgentRequest & WithCustomerEncryptionKeyArn(const Aws::String &value)
CreateAgentRequest & WithGuardrailConfiguration(GuardrailConfiguration &&value)
CreateAgentRequest & WithAgentName(Aws::String &&value)
void SetPromptOverrideConfiguration(PromptOverrideConfiguration &&value)
CreateAgentRequest & WithInstruction(Aws::String &&value)
CreateAgentRequest & WithClientToken(const char *value)
CreateAgentRequest & WithInstruction(const char *value)
CreateAgentRequest & WithFoundationModel(const char *value)
CreateAgentRequest & WithDescription(Aws::String &&value)
CreateAgentRequest & WithDescription(const Aws::String &value)
CreateAgentRequest & AddTags(const char *key, const char *value)
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
void SetCustomerEncryptionKeyArn(Aws::String &&value)
void SetFoundationModel(const Aws::String &value)
CreateAgentRequest & WithAgentName(const Aws::String &value)
void SetAgentName(const Aws::String &value)
void SetCustomerEncryptionKeyArn(const Aws::String &value)
void SetDescription(const Aws::String &value)
CreateAgentRequest & AddTags(Aws::String &&key, const char *value)
CreateAgentRequest & WithMemoryConfiguration(const MemoryConfiguration &value)
CreateAgentRequest & WithPromptOverrideConfiguration(PromptOverrideConfiguration &&value)
void SetPromptOverrideConfiguration(const PromptOverrideConfiguration &value)
CreateAgentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAgentRequest & WithDescription(const char *value)
void SetGuardrailConfiguration(const GuardrailConfiguration &value)
CreateAgentRequest & WithAgentResourceRoleArn(const char *value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
CreateAgentRequest & WithPromptOverrideConfiguration(const PromptOverrideConfiguration &value)
CreateAgentRequest & WithCustomerEncryptionKeyArn(Aws::String &&value)
void SetClientToken(const Aws::String &value)
CreateAgentRequest & WithInstruction(const Aws::String &value)
const Aws::String & GetCustomerEncryptionKeyArn() const
CreateAgentRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAgentRequest & WithClientToken(const Aws::String &value)
CreateAgentRequest & WithIdleSessionTTLInSeconds(int value)
CreateAgentRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetMemoryConfiguration(const MemoryConfiguration &value)
const MemoryConfiguration & GetMemoryConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&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