AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
UpdateAgentRequest.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/bedrock-agent/model/PromptOverrideConfiguration.h>
13#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
14#include <aws/bedrock-agent/model/MemoryConfiguration.h>
15#include <aws/bedrock-agent/model/AgentCollaboration.h>
16#include <utility>
17
18namespace Aws
19{
20namespace BedrockAgent
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_BEDROCKAGENT_API UpdateAgentRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgent"; }
37
38 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetAgentId() const { return m_agentId; }
46 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
47 template<typename AgentIdT = Aws::String>
48 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
49 template<typename AgentIdT = Aws::String>
50 UpdateAgentRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
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 UpdateAgentRequest& WithAgentName(AgentNameT&& value) { SetAgentName(std::forward<AgentNameT>(value)); return *this;}
64
66
70 inline const Aws::String& GetInstruction() const { return m_instruction; }
71 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
72 template<typename InstructionT = Aws::String>
73 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
74 template<typename InstructionT = Aws::String>
75 UpdateAgentRequest& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
77
79
107 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
108 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
109 template<typename FoundationModelT = Aws::String>
110 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::forward<FoundationModelT>(value); }
111 template<typename FoundationModelT = Aws::String>
112 UpdateAgentRequest& WithFoundationModel(FoundationModelT&& value) { SetFoundationModel(std::forward<FoundationModelT>(value)); return *this;}
114
116
119 inline const Aws::String& GetDescription() const { return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 template<typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
123 template<typename DescriptionT = Aws::String>
124 UpdateAgentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
126
128
132 inline OrchestrationType GetOrchestrationType() const { return m_orchestrationType; }
133 inline bool OrchestrationTypeHasBeenSet() const { return m_orchestrationTypeHasBeenSet; }
134 inline void SetOrchestrationType(OrchestrationType value) { m_orchestrationTypeHasBeenSet = true; m_orchestrationType = value; }
137
139
142 inline const CustomOrchestration& GetCustomOrchestration() const { return m_customOrchestration; }
143 inline bool CustomOrchestrationHasBeenSet() const { return m_customOrchestrationHasBeenSet; }
144 template<typename CustomOrchestrationT = CustomOrchestration>
145 void SetCustomOrchestration(CustomOrchestrationT&& value) { m_customOrchestrationHasBeenSet = true; m_customOrchestration = std::forward<CustomOrchestrationT>(value); }
146 template<typename CustomOrchestrationT = CustomOrchestration>
147 UpdateAgentRequest& WithCustomOrchestration(CustomOrchestrationT&& value) { SetCustomOrchestration(std::forward<CustomOrchestrationT>(value)); return *this;}
149
151
158 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
159 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
160 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
163
165
169 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
170 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
171 template<typename AgentResourceRoleArnT = Aws::String>
172 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value); }
173 template<typename AgentResourceRoleArnT = Aws::String>
174 UpdateAgentRequest& WithAgentResourceRoleArn(AgentResourceRoleArnT&& value) { SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value)); return *this;}
176
178
182 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
183 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
184 template<typename CustomerEncryptionKeyArnT = Aws::String>
185 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
186 template<typename CustomerEncryptionKeyArnT = Aws::String>
187 UpdateAgentRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
189
191
197 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
198 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
199 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
200 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
201 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
202 UpdateAgentRequest& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value)); return *this;}
204
206
210 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
211 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
212 template<typename GuardrailConfigurationT = GuardrailConfiguration>
213 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
214 template<typename GuardrailConfigurationT = GuardrailConfiguration>
215 UpdateAgentRequest& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
217
219
222 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
223 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
224 template<typename MemoryConfigurationT = MemoryConfiguration>
225 void SetMemoryConfiguration(MemoryConfigurationT&& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = std::forward<MemoryConfigurationT>(value); }
226 template<typename MemoryConfigurationT = MemoryConfiguration>
227 UpdateAgentRequest& WithMemoryConfiguration(MemoryConfigurationT&& value) { SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value)); return *this;}
229
231
234 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
235 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
236 inline void SetAgentCollaboration(AgentCollaboration value) { m_agentCollaborationHasBeenSet = true; m_agentCollaboration = value; }
239 private:
240
241 Aws::String m_agentId;
242 bool m_agentIdHasBeenSet = false;
243
244 Aws::String m_agentName;
245 bool m_agentNameHasBeenSet = false;
246
247 Aws::String m_instruction;
248 bool m_instructionHasBeenSet = false;
249
250 Aws::String m_foundationModel;
251 bool m_foundationModelHasBeenSet = false;
252
253 Aws::String m_description;
254 bool m_descriptionHasBeenSet = false;
255
257 bool m_orchestrationTypeHasBeenSet = false;
258
259 CustomOrchestration m_customOrchestration;
260 bool m_customOrchestrationHasBeenSet = false;
261
262 int m_idleSessionTTLInSeconds{0};
263 bool m_idleSessionTTLInSecondsHasBeenSet = false;
264
265 Aws::String m_agentResourceRoleArn;
266 bool m_agentResourceRoleArnHasBeenSet = false;
267
268 Aws::String m_customerEncryptionKeyArn;
269 bool m_customerEncryptionKeyArnHasBeenSet = false;
270
271 PromptOverrideConfiguration m_promptOverrideConfiguration;
272 bool m_promptOverrideConfigurationHasBeenSet = false;
273
274 GuardrailConfiguration m_guardrailConfiguration;
275 bool m_guardrailConfigurationHasBeenSet = false;
276
277 MemoryConfiguration m_memoryConfiguration;
278 bool m_memoryConfigurationHasBeenSet = false;
279
281 bool m_agentCollaborationHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace BedrockAgent
286} // 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