AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AgentVersion.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/AgentCollaboration.h>
9#include <aws/bedrock-agent/model/AgentStatus.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/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgent {
27namespace Model {
28
35 public:
36 AWS_BEDROCKAGENT_API AgentVersion() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
49 m_agentIdHasBeenSet = true;
50 m_agentId = std::forward<AgentIdT>(value);
51 }
52 template <typename AgentIdT = Aws::String>
54 SetAgentId(std::forward<AgentIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAgentName() const { return m_agentName; }
64 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
65 template <typename AgentNameT = Aws::String>
66 void SetAgentName(AgentNameT&& value) {
67 m_agentNameHasBeenSet = true;
68 m_agentName = std::forward<AgentNameT>(value);
69 }
70 template <typename AgentNameT = Aws::String>
72 SetAgentName(std::forward<AgentNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
82 inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
83 template <typename AgentArnT = Aws::String>
84 void SetAgentArn(AgentArnT&& value) {
85 m_agentArnHasBeenSet = true;
86 m_agentArn = std::forward<AgentArnT>(value);
87 }
88 template <typename AgentArnT = Aws::String>
90 SetAgentArn(std::forward<AgentArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetVersion() const { return m_version; }
100 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
101 template <typename VersionT = Aws::String>
102 void SetVersion(VersionT&& value) {
103 m_versionHasBeenSet = true;
104 m_version = std::forward<VersionT>(value);
105 }
106 template <typename VersionT = Aws::String>
108 SetVersion(std::forward<VersionT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetInstruction() const { return m_instruction; }
118 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
119 template <typename InstructionT = Aws::String>
121 m_instructionHasBeenSet = true;
122 m_instruction = std::forward<InstructionT>(value);
123 }
124 template <typename InstructionT = Aws::String>
126 SetInstruction(std::forward<InstructionT>(value));
127 return *this;
128 }
130
132
135 inline AgentStatus GetAgentStatus() const { return m_agentStatus; }
136 inline bool AgentStatusHasBeenSet() const { return m_agentStatusHasBeenSet; }
137 inline void SetAgentStatus(AgentStatus value) {
138 m_agentStatusHasBeenSet = true;
139 m_agentStatus = value;
140 }
142 SetAgentStatus(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
152 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
153 template <typename FoundationModelT = Aws::String>
155 m_foundationModelHasBeenSet = true;
156 m_foundationModel = std::forward<FoundationModelT>(value);
157 }
158 template <typename FoundationModelT = Aws::String>
160 SetFoundationModel(std::forward<FoundationModelT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDescription() const { return m_description; }
170 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 template <typename DescriptionT = Aws::String>
173 m_descriptionHasBeenSet = true;
174 m_description = std::forward<DescriptionT>(value);
175 }
176 template <typename DescriptionT = Aws::String>
178 SetDescription(std::forward<DescriptionT>(value));
179 return *this;
180 }
182
184
191 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
192 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
193 inline void SetIdleSessionTTLInSeconds(int value) {
194 m_idleSessionTTLInSecondsHasBeenSet = true;
195 m_idleSessionTTLInSeconds = value;
196 }
199 return *this;
200 }
202
204
208 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
209 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
210 template <typename AgentResourceRoleArnT = Aws::String>
212 m_agentResourceRoleArnHasBeenSet = true;
213 m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value);
214 }
215 template <typename AgentResourceRoleArnT = Aws::String>
217 SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
227 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
228 template <typename CustomerEncryptionKeyArnT = Aws::String>
230 m_customerEncryptionKeyArnHasBeenSet = true;
231 m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value);
232 }
233 template <typename CustomerEncryptionKeyArnT = Aws::String>
235 SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
245 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
246 template <typename CreatedAtT = Aws::Utils::DateTime>
247 void SetCreatedAt(CreatedAtT&& value) {
248 m_createdAtHasBeenSet = true;
249 m_createdAt = std::forward<CreatedAtT>(value);
250 }
251 template <typename CreatedAtT = Aws::Utils::DateTime>
253 SetCreatedAt(std::forward<CreatedAtT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
263 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
264 template <typename UpdatedAtT = Aws::Utils::DateTime>
265 void SetUpdatedAt(UpdatedAtT&& value) {
266 m_updatedAtHasBeenSet = true;
267 m_updatedAt = std::forward<UpdatedAtT>(value);
268 }
269 template <typename UpdatedAtT = Aws::Utils::DateTime>
271 SetUpdatedAt(std::forward<UpdatedAtT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
281 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
282 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
284 m_failureReasonsHasBeenSet = true;
285 m_failureReasons = std::forward<FailureReasonsT>(value);
286 }
287 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
289 SetFailureReasons(std::forward<FailureReasonsT>(value));
290 return *this;
291 }
292 template <typename FailureReasonsT = Aws::String>
294 m_failureReasonsHasBeenSet = true;
295 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
296 return *this;
297 }
299
301
305 inline const Aws::Vector<Aws::String>& GetRecommendedActions() const { return m_recommendedActions; }
306 inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; }
307 template <typename RecommendedActionsT = Aws::Vector<Aws::String>>
309 m_recommendedActionsHasBeenSet = true;
310 m_recommendedActions = std::forward<RecommendedActionsT>(value);
311 }
312 template <typename RecommendedActionsT = Aws::Vector<Aws::String>>
314 SetRecommendedActions(std::forward<RecommendedActionsT>(value));
315 return *this;
316 }
317 template <typename RecommendedActionsT = Aws::String>
319 m_recommendedActionsHasBeenSet = true;
320 m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value));
321 return *this;
322 }
324
326
332 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
333 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
334 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
336 m_promptOverrideConfigurationHasBeenSet = true;
337 m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value);
338 }
339 template <typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
341 SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value));
342 return *this;
343 }
345
347
350 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
351 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
352 template <typename GuardrailConfigurationT = GuardrailConfiguration>
354 m_guardrailConfigurationHasBeenSet = true;
355 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
356 }
357 template <typename GuardrailConfigurationT = GuardrailConfiguration>
359 SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value));
360 return *this;
361 }
363
365
369 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
370 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
371 template <typename MemoryConfigurationT = MemoryConfiguration>
373 m_memoryConfigurationHasBeenSet = true;
374 m_memoryConfiguration = std::forward<MemoryConfigurationT>(value);
375 }
376 template <typename MemoryConfigurationT = MemoryConfiguration>
378 SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value));
379 return *this;
380 }
382
384
387 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
388 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
390 m_agentCollaborationHasBeenSet = true;
391 m_agentCollaboration = value;
392 }
395 return *this;
396 }
398 private:
399 Aws::String m_agentId;
400
401 Aws::String m_agentName;
402
403 Aws::String m_agentArn;
404
405 Aws::String m_version;
406
407 Aws::String m_instruction;
408
409 AgentStatus m_agentStatus{AgentStatus::NOT_SET};
410
411 Aws::String m_foundationModel;
412
413 Aws::String m_description;
414
415 int m_idleSessionTTLInSeconds{0};
416
417 Aws::String m_agentResourceRoleArn;
418
419 Aws::String m_customerEncryptionKeyArn;
420
421 Aws::Utils::DateTime m_createdAt{};
422
423 Aws::Utils::DateTime m_updatedAt{};
424
425 Aws::Vector<Aws::String> m_failureReasons;
426
427 Aws::Vector<Aws::String> m_recommendedActions;
428
429 PromptOverrideConfiguration m_promptOverrideConfiguration;
430
431 GuardrailConfiguration m_guardrailConfiguration;
432
433 MemoryConfiguration m_memoryConfiguration;
434
436 bool m_agentIdHasBeenSet = false;
437 bool m_agentNameHasBeenSet = false;
438 bool m_agentArnHasBeenSet = false;
439 bool m_versionHasBeenSet = false;
440 bool m_instructionHasBeenSet = false;
441 bool m_agentStatusHasBeenSet = false;
442 bool m_foundationModelHasBeenSet = false;
443 bool m_descriptionHasBeenSet = false;
444 bool m_idleSessionTTLInSecondsHasBeenSet = false;
445 bool m_agentResourceRoleArnHasBeenSet = false;
446 bool m_customerEncryptionKeyArnHasBeenSet = false;
447 bool m_createdAtHasBeenSet = false;
448 bool m_updatedAtHasBeenSet = false;
449 bool m_failureReasonsHasBeenSet = false;
450 bool m_recommendedActionsHasBeenSet = false;
451 bool m_promptOverrideConfigurationHasBeenSet = false;
452 bool m_guardrailConfigurationHasBeenSet = false;
453 bool m_memoryConfigurationHasBeenSet = false;
454 bool m_agentCollaborationHasBeenSet = false;
455};
456
457} // namespace Model
458} // namespace BedrockAgent
459} // namespace Aws
AgentVersion & WithFailureReasons(FailureReasonsT &&value)
AgentVersion & WithFoundationModel(FoundationModelT &&value)
AgentVersion & WithVersion(VersionT &&value)
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetAgentStatus(AgentStatus value)
AgentVersion & WithRecommendedActions(RecommendedActionsT &&value)
const Aws::Vector< Aws::String > & GetRecommendedActions() const
const Aws::String & GetAgentResourceRoleArn() const
const Aws::String & GetAgentId() const
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
AgentVersion & WithPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
const Aws::String & GetInstruction() const
const Aws::String & GetAgentArn() const
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetAgentName() const
void SetMemoryConfiguration(MemoryConfigurationT &&value)
void SetAgentName(AgentNameT &&value)
void SetInstruction(InstructionT &&value)
void SetPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
void SetFoundationModel(FoundationModelT &&value)
AWS_BEDROCKAGENT_API AgentVersion(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
AgentVersion & WithMemoryConfiguration(MemoryConfigurationT &&value)
AgentVersion & WithInstruction(InstructionT &&value)
AgentVersion & WithAgentCollaboration(AgentCollaboration value)
void SetRecommendedActions(RecommendedActionsT &&value)
void SetAgentArn(AgentArnT &&value)
AgentVersion & AddFailureReasons(FailureReasonsT &&value)
const Aws::String & GetDescription() const
AgentVersion & AddRecommendedActions(RecommendedActionsT &&value)
AgentCollaboration GetAgentCollaboration() const
void SetUpdatedAt(UpdatedAtT &&value)
void SetFailureReasons(FailureReasonsT &&value)
AWS_BEDROCKAGENT_API AgentVersion()=default
void SetCreatedAt(CreatedAtT &&value)
AgentVersion & WithAgentArn(AgentArnT &&value)
AgentVersion & WithAgentStatus(AgentStatus value)
void SetAgentCollaboration(AgentCollaboration value)
AgentVersion & WithUpdatedAt(UpdatedAtT &&value)
AgentVersion & WithAgentId(AgentIdT &&value)
AgentVersion & WithAgentResourceRoleArn(AgentResourceRoleArnT &&value)
AgentVersion & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetVersion() const
AWS_BEDROCKAGENT_API AgentVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFoundationModel() const
const MemoryConfiguration & GetMemoryConfiguration() const
AgentVersion & WithCreatedAt(CreatedAtT &&value)
AgentVersion & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
AgentVersion & WithAgentName(AgentNameT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
AgentVersion & WithIdleSessionTTLInSeconds(int value)
const GuardrailConfiguration & GetGuardrailConfiguration() const
const Aws::String & GetCustomerEncryptionKeyArn() const
AgentVersion & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
void SetAgentResourceRoleArn(AgentResourceRoleArnT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue