AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/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 <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 AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
46 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
47 inline void SetAgentCollaboration(AgentCollaboration value) { m_agentCollaborationHasBeenSet = true; m_agentCollaboration = value; }
50
52
55 inline const Aws::String& GetAgentId() const { return m_agentId; }
56 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
57 template<typename AgentIdT = Aws::String>
58 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
59 template<typename AgentIdT = Aws::String>
60 UpdateAgentRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetAgentName() const { return m_agentName; }
68 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
69 template<typename AgentNameT = Aws::String>
70 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet = true; m_agentName = std::forward<AgentNameT>(value); }
71 template<typename AgentNameT = Aws::String>
72 UpdateAgentRequest& WithAgentName(AgentNameT&& value) { SetAgentName(std::forward<AgentNameT>(value)); return *this;}
74
76
80 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
81 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
82 template<typename AgentResourceRoleArnT = Aws::String>
83 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value); }
84 template<typename AgentResourceRoleArnT = Aws::String>
85 UpdateAgentRequest& WithAgentResourceRoleArn(AgentResourceRoleArnT&& value) { SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value)); return *this;}
87
89
92 inline const CustomOrchestration& GetCustomOrchestration() const { return m_customOrchestration; }
93 inline bool CustomOrchestrationHasBeenSet() const { return m_customOrchestrationHasBeenSet; }
94 template<typename CustomOrchestrationT = CustomOrchestration>
95 void SetCustomOrchestration(CustomOrchestrationT&& value) { m_customOrchestrationHasBeenSet = true; m_customOrchestration = std::forward<CustomOrchestrationT>(value); }
96 template<typename CustomOrchestrationT = CustomOrchestration>
97 UpdateAgentRequest& WithCustomOrchestration(CustomOrchestrationT&& value) { SetCustomOrchestration(std::forward<CustomOrchestrationT>(value)); return *this;}
99
101
105 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
106 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
107 template<typename CustomerEncryptionKeyArnT = Aws::String>
108 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
109 template<typename CustomerEncryptionKeyArnT = Aws::String>
110 UpdateAgentRequest& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
112
114
117 inline const Aws::String& GetDescription() const { return m_description; }
118 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
119 template<typename DescriptionT = Aws::String>
120 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
121 template<typename DescriptionT = Aws::String>
122 UpdateAgentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
124
126
154 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
155 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
156 template<typename FoundationModelT = Aws::String>
157 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::forward<FoundationModelT>(value); }
158 template<typename FoundationModelT = Aws::String>
159 UpdateAgentRequest& WithFoundationModel(FoundationModelT&& value) { SetFoundationModel(std::forward<FoundationModelT>(value)); return *this;}
161
163
167 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
168 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
169 template<typename GuardrailConfigurationT = GuardrailConfiguration>
170 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
171 template<typename GuardrailConfigurationT = GuardrailConfiguration>
172 UpdateAgentRequest& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
174
176
183 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
184 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
185 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
188
190
194 inline const Aws::String& GetInstruction() const { return m_instruction; }
195 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
196 template<typename InstructionT = Aws::String>
197 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
198 template<typename InstructionT = Aws::String>
199 UpdateAgentRequest& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
201
203
206 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
207 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
208 template<typename MemoryConfigurationT = MemoryConfiguration>
209 void SetMemoryConfiguration(MemoryConfigurationT&& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = std::forward<MemoryConfigurationT>(value); }
210 template<typename MemoryConfigurationT = MemoryConfiguration>
211 UpdateAgentRequest& WithMemoryConfiguration(MemoryConfigurationT&& value) { SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value)); return *this;}
213
215
219 inline OrchestrationType GetOrchestrationType() const { return m_orchestrationType; }
220 inline bool OrchestrationTypeHasBeenSet() const { return m_orchestrationTypeHasBeenSet; }
221 inline void SetOrchestrationType(OrchestrationType value) { m_orchestrationTypeHasBeenSet = true; m_orchestrationType = value; }
224
226
232 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
233 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
234 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
235 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
236 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
237 UpdateAgentRequest& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value)); return *this;}
239 private:
240
242 bool m_agentCollaborationHasBeenSet = false;
243
244 Aws::String m_agentId;
245 bool m_agentIdHasBeenSet = false;
246
247 Aws::String m_agentName;
248 bool m_agentNameHasBeenSet = false;
249
250 Aws::String m_agentResourceRoleArn;
251 bool m_agentResourceRoleArnHasBeenSet = false;
252
253 CustomOrchestration m_customOrchestration;
254 bool m_customOrchestrationHasBeenSet = false;
255
256 Aws::String m_customerEncryptionKeyArn;
257 bool m_customerEncryptionKeyArnHasBeenSet = false;
258
259 Aws::String m_description;
260 bool m_descriptionHasBeenSet = false;
261
262 Aws::String m_foundationModel;
263 bool m_foundationModelHasBeenSet = false;
264
265 GuardrailConfiguration m_guardrailConfiguration;
266 bool m_guardrailConfigurationHasBeenSet = false;
267
268 int m_idleSessionTTLInSeconds{0};
269 bool m_idleSessionTTLInSecondsHasBeenSet = false;
270
271 Aws::String m_instruction;
272 bool m_instructionHasBeenSet = false;
273
274 MemoryConfiguration m_memoryConfiguration;
275 bool m_memoryConfigurationHasBeenSet = false;
276
278 bool m_orchestrationTypeHasBeenSet = false;
279
280 PromptOverrideConfiguration m_promptOverrideConfiguration;
281 bool m_promptOverrideConfigurationHasBeenSet = 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