AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/GuardrailConfiguration.h>
11#include <aws/bedrock-agent/model/MemoryConfiguration.h>
12#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BedrockAgent
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKAGENT_API UpdateAgentRequest();
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
37
39
42 inline const Aws::String& GetAgentId() const{ return m_agentId; }
43 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
44 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
45 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
46 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
47 inline UpdateAgentRequest& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
48 inline UpdateAgentRequest& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
49 inline UpdateAgentRequest& WithAgentId(const char* value) { SetAgentId(value); return *this;}
51
53
56 inline const Aws::String& GetAgentName() const{ return m_agentName; }
57 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
58 inline void SetAgentName(const Aws::String& value) { m_agentNameHasBeenSet = true; m_agentName = value; }
59 inline void SetAgentName(Aws::String&& value) { m_agentNameHasBeenSet = true; m_agentName = std::move(value); }
60 inline void SetAgentName(const char* value) { m_agentNameHasBeenSet = true; m_agentName.assign(value); }
61 inline UpdateAgentRequest& WithAgentName(const Aws::String& value) { SetAgentName(value); return *this;}
62 inline UpdateAgentRequest& WithAgentName(Aws::String&& value) { SetAgentName(std::move(value)); return *this;}
63 inline UpdateAgentRequest& WithAgentName(const char* value) { SetAgentName(value); return *this;}
65
67
71 inline const Aws::String& GetAgentResourceRoleArn() const{ return m_agentResourceRoleArn; }
72 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
73 inline void SetAgentResourceRoleArn(const Aws::String& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = value; }
74 inline void SetAgentResourceRoleArn(Aws::String&& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = std::move(value); }
75 inline void SetAgentResourceRoleArn(const char* value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn.assign(value); }
77 inline UpdateAgentRequest& WithAgentResourceRoleArn(Aws::String&& value) { SetAgentResourceRoleArn(std::move(value)); return *this;}
78 inline UpdateAgentRequest& WithAgentResourceRoleArn(const char* value) { SetAgentResourceRoleArn(value); return *this;}
80
82
86 inline const Aws::String& GetCustomerEncryptionKeyArn() const{ return m_customerEncryptionKeyArn; }
87 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
88 inline void SetCustomerEncryptionKeyArn(const Aws::String& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = value; }
89 inline void SetCustomerEncryptionKeyArn(Aws::String&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::move(value); }
90 inline void SetCustomerEncryptionKeyArn(const char* value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn.assign(value); }
93 inline UpdateAgentRequest& WithCustomerEncryptionKeyArn(const char* value) { SetCustomerEncryptionKeyArn(value); return *this;}
95
97
100 inline const Aws::String& GetDescription() const{ return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 inline UpdateAgentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 inline UpdateAgentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
107 inline UpdateAgentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
109
111
139 inline const Aws::String& GetFoundationModel() const{ return m_foundationModel; }
140 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
141 inline void SetFoundationModel(const Aws::String& value) { m_foundationModelHasBeenSet = true; m_foundationModel = value; }
142 inline void SetFoundationModel(Aws::String&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::move(value); }
143 inline void SetFoundationModel(const char* value) { m_foundationModelHasBeenSet = true; m_foundationModel.assign(value); }
144 inline UpdateAgentRequest& WithFoundationModel(const Aws::String& value) { SetFoundationModel(value); return *this;}
145 inline UpdateAgentRequest& WithFoundationModel(Aws::String&& value) { SetFoundationModel(std::move(value)); return *this;}
146 inline UpdateAgentRequest& WithFoundationModel(const char* value) { SetFoundationModel(value); return *this;}
148
150
154 inline const GuardrailConfiguration& GetGuardrailConfiguration() const{ return m_guardrailConfiguration; }
155 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
156 inline void SetGuardrailConfiguration(const GuardrailConfiguration& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = value; }
157 inline void SetGuardrailConfiguration(GuardrailConfiguration&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::move(value); }
161
163
170 inline int GetIdleSessionTTLInSeconds() const{ return m_idleSessionTTLInSeconds; }
171 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
172 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
175
177
181 inline const Aws::String& GetInstruction() const{ return m_instruction; }
182 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
183 inline void SetInstruction(const Aws::String& value) { m_instructionHasBeenSet = true; m_instruction = value; }
184 inline void SetInstruction(Aws::String&& value) { m_instructionHasBeenSet = true; m_instruction = std::move(value); }
185 inline void SetInstruction(const char* value) { m_instructionHasBeenSet = true; m_instruction.assign(value); }
186 inline UpdateAgentRequest& WithInstruction(const Aws::String& value) { SetInstruction(value); return *this;}
187 inline UpdateAgentRequest& WithInstruction(Aws::String&& value) { SetInstruction(std::move(value)); return *this;}
188 inline UpdateAgentRequest& WithInstruction(const char* value) { SetInstruction(value); return *this;}
190
192
195 inline const MemoryConfiguration& GetMemoryConfiguration() const{ return m_memoryConfiguration; }
196 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
197 inline void SetMemoryConfiguration(const MemoryConfiguration& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = value; }
198 inline void SetMemoryConfiguration(MemoryConfiguration&& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = std::move(value); }
202
204
210 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const{ return m_promptOverrideConfiguration; }
211 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
212 inline void SetPromptOverrideConfiguration(const PromptOverrideConfiguration& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = value; }
213 inline void SetPromptOverrideConfiguration(PromptOverrideConfiguration&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::move(value); }
217 private:
218
219 Aws::String m_agentId;
220 bool m_agentIdHasBeenSet = false;
221
222 Aws::String m_agentName;
223 bool m_agentNameHasBeenSet = false;
224
225 Aws::String m_agentResourceRoleArn;
226 bool m_agentResourceRoleArnHasBeenSet = false;
227
228 Aws::String m_customerEncryptionKeyArn;
229 bool m_customerEncryptionKeyArnHasBeenSet = false;
230
231 Aws::String m_description;
232 bool m_descriptionHasBeenSet = false;
233
234 Aws::String m_foundationModel;
235 bool m_foundationModelHasBeenSet = false;
236
237 GuardrailConfiguration m_guardrailConfiguration;
238 bool m_guardrailConfigurationHasBeenSet = false;
239
240 int m_idleSessionTTLInSeconds;
241 bool m_idleSessionTTLInSecondsHasBeenSet = false;
242
243 Aws::String m_instruction;
244 bool m_instructionHasBeenSet = false;
245
246 MemoryConfiguration m_memoryConfiguration;
247 bool m_memoryConfigurationHasBeenSet = false;
248
249 PromptOverrideConfiguration m_promptOverrideConfiguration;
250 bool m_promptOverrideConfigurationHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace BedrockAgent
255} // namespace Aws
void SetPromptOverrideConfiguration(PromptOverrideConfiguration &&value)
UpdateAgentRequest & WithIdleSessionTTLInSeconds(int value)
UpdateAgentRequest & WithInstruction(Aws::String &&value)
UpdateAgentRequest & WithAgentResourceRoleArn(const char *value)
virtual const char * GetServiceRequestName() const override
const MemoryConfiguration & GetMemoryConfiguration() const
UpdateAgentRequest & WithPromptOverrideConfiguration(const PromptOverrideConfiguration &value)
void SetPromptOverrideConfiguration(const PromptOverrideConfiguration &value)
UpdateAgentRequest & WithDescription(const char *value)
UpdateAgentRequest & WithMemoryConfiguration(const MemoryConfiguration &value)
UpdateAgentRequest & WithCustomerEncryptionKeyArn(const char *value)
UpdateAgentRequest & WithAgentName(Aws::String &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateAgentRequest & WithFoundationModel(Aws::String &&value)
UpdateAgentRequest & WithAgentResourceRoleArn(Aws::String &&value)
void SetAgentResourceRoleArn(const Aws::String &value)
UpdateAgentRequest & WithInstruction(const char *value)
void SetCustomerEncryptionKeyArn(const Aws::String &value)
UpdateAgentRequest & WithAgentId(const char *value)
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
UpdateAgentRequest & WithFoundationModel(const char *value)
void SetGuardrailConfiguration(const GuardrailConfiguration &value)
void SetAgentName(const Aws::String &value)
UpdateAgentRequest & WithAgentName(const char *value)
void SetDescription(const Aws::String &value)
UpdateAgentRequest & WithGuardrailConfiguration(const GuardrailConfiguration &value)
void SetMemoryConfiguration(const MemoryConfiguration &value)
UpdateAgentRequest & WithMemoryConfiguration(MemoryConfiguration &&value)
void SetInstruction(const Aws::String &value)
void SetGuardrailConfiguration(GuardrailConfiguration &&value)
UpdateAgentRequest & WithGuardrailConfiguration(GuardrailConfiguration &&value)
UpdateAgentRequest & WithDescription(Aws::String &&value)
UpdateAgentRequest & WithAgentName(const Aws::String &value)
UpdateAgentRequest & WithAgentResourceRoleArn(const Aws::String &value)
UpdateAgentRequest & WithFoundationModel(const Aws::String &value)
UpdateAgentRequest & WithDescription(const Aws::String &value)
const GuardrailConfiguration & GetGuardrailConfiguration() const
void SetFoundationModel(const Aws::String &value)
UpdateAgentRequest & WithPromptOverrideConfiguration(PromptOverrideConfiguration &&value)
UpdateAgentRequest & WithCustomerEncryptionKeyArn(const Aws::String &value)
UpdateAgentRequest & WithAgentId(const Aws::String &value)
UpdateAgentRequest & WithAgentId(Aws::String &&value)
UpdateAgentRequest & WithCustomerEncryptionKeyArn(Aws::String &&value)
const Aws::String & GetCustomerEncryptionKeyArn() const
UpdateAgentRequest & WithInstruction(const Aws::String &value)
void SetCustomerEncryptionKeyArn(Aws::String &&value)
void SetMemoryConfiguration(MemoryConfiguration &&value)
const Aws::String & GetAgentResourceRoleArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String