AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateAgentRequest.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/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace BedrockAgent {
21namespace Model {
22
26 public:
27 AWS_BEDROCKAGENT_API UpdateAgentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgent"; }
34
35 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAgentId() const { return m_agentId; }
42 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
43 template <typename AgentIdT = Aws::String>
44 void SetAgentId(AgentIdT&& value) {
45 m_agentIdHasBeenSet = true;
46 m_agentId = std::forward<AgentIdT>(value);
47 }
48 template <typename AgentIdT = Aws::String>
49 UpdateAgentRequest& WithAgentId(AgentIdT&& value) {
50 SetAgentId(std::forward<AgentIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAgentName() const { return m_agentName; }
60 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
61 template <typename AgentNameT = Aws::String>
62 void SetAgentName(AgentNameT&& value) {
63 m_agentNameHasBeenSet = true;
64 m_agentName = std::forward<AgentNameT>(value);
65 }
66 template <typename AgentNameT = Aws::String>
67 UpdateAgentRequest& WithAgentName(AgentNameT&& value) {
68 SetAgentName(std::forward<AgentNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetInstruction() const { return m_instruction; }
79 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
80 template <typename InstructionT = Aws::String>
81 void SetInstruction(InstructionT&& value) {
82 m_instructionHasBeenSet = true;
83 m_instruction = std::forward<InstructionT>(value);
84 }
85 template <typename InstructionT = Aws::String>
86 UpdateAgentRequest& WithInstruction(InstructionT&& value) {
87 SetInstruction(std::forward<InstructionT>(value));
88 return *this;
89 }
91
93
121 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
122 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
123 template <typename FoundationModelT = Aws::String>
124 void SetFoundationModel(FoundationModelT&& value) {
125 m_foundationModelHasBeenSet = true;
126 m_foundationModel = std::forward<FoundationModelT>(value);
127 }
128 template <typename FoundationModelT = Aws::String>
129 UpdateAgentRequest& WithFoundationModel(FoundationModelT&& value) {
130 SetFoundationModel(std::forward<FoundationModelT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetDescription() const { return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 template <typename DescriptionT = Aws::String>
142 void SetDescription(DescriptionT&& value) {
143 m_descriptionHasBeenSet = true;
144 m_description = std::forward<DescriptionT>(value);
145 }
146 template <typename DescriptionT = Aws::String>
147 UpdateAgentRequest& WithDescription(DescriptionT&& value) {
148 SetDescription(std::forward<DescriptionT>(value));
149 return *this;
150 }
152
154
158 inline OrchestrationType GetOrchestrationType() const { return m_orchestrationType; }
159 inline bool OrchestrationTypeHasBeenSet() const { return m_orchestrationTypeHasBeenSet; }
161 m_orchestrationTypeHasBeenSet = true;
162 m_orchestrationType = value;
163 }
166 return *this;
167 }
169
171
174 inline const CustomOrchestration& GetCustomOrchestration() const { return m_customOrchestration; }
175 inline bool CustomOrchestrationHasBeenSet() const { return m_customOrchestrationHasBeenSet; }
176 template <typename CustomOrchestrationT = CustomOrchestration>
177 void SetCustomOrchestration(CustomOrchestrationT&& value) {
178 m_customOrchestrationHasBeenSet = true;
179 m_customOrchestration = std::forward<CustomOrchestrationT>(value);
180 }
181 template <typename CustomOrchestrationT = CustomOrchestration>
182 UpdateAgentRequest& WithCustomOrchestration(CustomOrchestrationT&& value) {
183 SetCustomOrchestration(std::forward<CustomOrchestrationT>(value));
184 return *this;
185 }
187
189
196 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
197 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
198 inline void SetIdleSessionTTLInSeconds(int value) {
199 m_idleSessionTTLInSecondsHasBeenSet = true;
200 m_idleSessionTTLInSeconds = value;
201 }
204 return *this;
205 }
207
209
213 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
214 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
215 template <typename AgentResourceRoleArnT = Aws::String>
216 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) {
217 m_agentResourceRoleArnHasBeenSet = true;
218 m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value);
219 }
220 template <typename AgentResourceRoleArnT = Aws::String>
221 UpdateAgentRequest& WithAgentResourceRoleArn(AgentResourceRoleArnT&& value) {
222 SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value));
223 return *this;
224 }
226
228
232 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
233 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
234 template <typename CustomerEncryptionKeyArnT = Aws::String>
235 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
236 m_customerEncryptionKeyArnHasBeenSet = true;
237 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
238 }
239 template <typename CustomerEncryptionKeyArnT = Aws::String>
240 UpdateAgentRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) {
241 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
242 return *this;
243 }
245
247
253 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
254 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
255 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
256 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) {
257 m_promptOverrideConfigurationHasBeenSet = true;
258 m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value);
259 }
260 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
261 UpdateAgentRequest& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) {
262 SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value));
263 return *this;
264 }
266
268
272 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
273 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
274 template <typename GuardrailConfigurationT = GuardrailConfiguration>
275 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) {
276 m_guardrailConfigurationHasBeenSet = true;
277 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
278 }
279 template <typename GuardrailConfigurationT = GuardrailConfiguration>
280 UpdateAgentRequest& WithGuardrailConfiguration(GuardrailConfigurationT&& value) {
281 SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value));
282 return *this;
283 }
285
287
290 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
291 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
292 template <typename MemoryConfigurationT = MemoryConfiguration>
293 void SetMemoryConfiguration(MemoryConfigurationT&& value) {
294 m_memoryConfigurationHasBeenSet = true;
295 m_memoryConfiguration = std::forward<MemoryConfigurationT>(value);
296 }
297 template <typename MemoryConfigurationT = MemoryConfiguration>
298 UpdateAgentRequest& WithMemoryConfiguration(MemoryConfigurationT&& value) {
299 SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value));
300 return *this;
301 }
303
305
308 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
309 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
311 m_agentCollaborationHasBeenSet = true;
312 m_agentCollaboration = value;
313 }
316 return *this;
317 }
319 private:
320 Aws::String m_agentId;
321
322 Aws::String m_agentName;
323
324 Aws::String m_instruction;
325
326 Aws::String m_foundationModel;
327
328 Aws::String m_description;
329
331
332 CustomOrchestration m_customOrchestration;
333
334 int m_idleSessionTTLInSeconds{0};
335
336 Aws::String m_agentResourceRoleArn;
337
338 Aws::String m_customerEncryptionKeyArn;
339
340 PromptOverrideConfiguration m_promptOverrideConfiguration;
341
342 GuardrailConfiguration m_guardrailConfiguration;
343
344 MemoryConfiguration m_memoryConfiguration;
345
347 bool m_agentIdHasBeenSet = false;
348 bool m_agentNameHasBeenSet = false;
349 bool m_instructionHasBeenSet = false;
350 bool m_foundationModelHasBeenSet = false;
351 bool m_descriptionHasBeenSet = false;
352 bool m_orchestrationTypeHasBeenSet = false;
353 bool m_customOrchestrationHasBeenSet = false;
354 bool m_idleSessionTTLInSecondsHasBeenSet = false;
355 bool m_agentResourceRoleArnHasBeenSet = false;
356 bool m_customerEncryptionKeyArnHasBeenSet = false;
357 bool m_promptOverrideConfigurationHasBeenSet = false;
358 bool m_guardrailConfigurationHasBeenSet = false;
359 bool m_memoryConfigurationHasBeenSet = false;
360 bool m_agentCollaborationHasBeenSet = false;
361};
362
363} // namespace Model
364} // namespace BedrockAgent
365} // namespace Aws
UpdateAgentRequest & WithDescription(DescriptionT &&value)
void SetAgentCollaboration(AgentCollaboration value)
void SetFoundationModel(FoundationModelT &&value)
UpdateAgentRequest & WithIdleSessionTTLInSeconds(int value)
void SetAgentResourceRoleArn(AgentResourceRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAgentRequest & WithAgentResourceRoleArn(AgentResourceRoleArnT &&value)
const MemoryConfiguration & GetMemoryConfiguration() const
void SetPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
UpdateAgentRequest & WithMemoryConfiguration(MemoryConfigurationT &&value)
const CustomOrchestration & GetCustomOrchestration() const
UpdateAgentRequest & WithAgentName(AgentNameT &&value)
void SetMemoryConfiguration(MemoryConfigurationT &&value)
void SetCustomOrchestration(CustomOrchestrationT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateAgentRequest & WithAgentCollaboration(AgentCollaboration value)
UpdateAgentRequest & WithPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
UpdateAgentRequest & WithOrchestrationType(OrchestrationType value)
UpdateAgentRequest & WithAgentId(AgentIdT &&value)
UpdateAgentRequest & WithInstruction(InstructionT &&value)
UpdateAgentRequest & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
const GuardrailConfiguration & GetGuardrailConfiguration() const
UpdateAgentRequest & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetOrchestrationType(OrchestrationType value)
UpdateAgentRequest & WithCustomOrchestration(CustomOrchestrationT &&value)
UpdateAgentRequest & WithFoundationModel(FoundationModelT &&value)
AWS_BEDROCKAGENT_API UpdateAgentRequest()=default
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
const Aws::String & GetCustomerEncryptionKeyArn() const
const Aws::String & GetAgentResourceRoleArn() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String