AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AgentVersion.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/AgentCollaboration.h>
10#include <aws/bedrock-agent/model/AgentStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
14#include <aws/bedrock-agent/model/MemoryConfiguration.h>
15#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace BedrockAgent
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_BEDROCKAGENT_API AgentVersion() = default;
42 AWS_BEDROCKAGENT_API AgentVersion(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENT_API AgentVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
52 inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
53 template<typename AgentArnT = Aws::String>
54 void SetAgentArn(AgentArnT&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::forward<AgentArnT>(value); }
55 template<typename AgentArnT = Aws::String>
56 AgentVersion& WithAgentArn(AgentArnT&& value) { SetAgentArn(std::forward<AgentArnT>(value)); return *this;}
58
60
63 inline AgentCollaboration GetAgentCollaboration() const { return m_agentCollaboration; }
64 inline bool AgentCollaborationHasBeenSet() const { return m_agentCollaborationHasBeenSet; }
65 inline void SetAgentCollaboration(AgentCollaboration value) { m_agentCollaborationHasBeenSet = true; m_agentCollaboration = value; }
68
70
73 inline const Aws::String& GetAgentId() const { return m_agentId; }
74 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
75 template<typename AgentIdT = Aws::String>
76 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
77 template<typename AgentIdT = Aws::String>
78 AgentVersion& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
80
82
85 inline const Aws::String& GetAgentName() const { return m_agentName; }
86 inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
87 template<typename AgentNameT = Aws::String>
88 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet = true; m_agentName = std::forward<AgentNameT>(value); }
89 template<typename AgentNameT = Aws::String>
90 AgentVersion& WithAgentName(AgentNameT&& value) { SetAgentName(std::forward<AgentNameT>(value)); return *this;}
92
94
98 inline const Aws::String& GetAgentResourceRoleArn() const { return m_agentResourceRoleArn; }
99 inline bool AgentResourceRoleArnHasBeenSet() const { return m_agentResourceRoleArnHasBeenSet; }
100 template<typename AgentResourceRoleArnT = Aws::String>
101 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) { m_agentResourceRoleArnHasBeenSet = true; m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value); }
102 template<typename AgentResourceRoleArnT = Aws::String>
103 AgentVersion& WithAgentResourceRoleArn(AgentResourceRoleArnT&& value) { SetAgentResourceRoleArn(std::forward<AgentResourceRoleArnT>(value)); return *this;}
105
107
110 inline AgentStatus GetAgentStatus() const { return m_agentStatus; }
111 inline bool AgentStatusHasBeenSet() const { return m_agentStatusHasBeenSet; }
112 inline void SetAgentStatus(AgentStatus value) { m_agentStatusHasBeenSet = true; m_agentStatus = value; }
113 inline AgentVersion& WithAgentStatus(AgentStatus value) { SetAgentStatus(value); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
121 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
122 template<typename CreatedAtT = Aws::Utils::DateTime>
123 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
124 template<typename CreatedAtT = Aws::Utils::DateTime>
125 AgentVersion& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
127
129
132 inline const Aws::String& GetCustomerEncryptionKeyArn() const { return m_customerEncryptionKeyArn; }
133 inline bool CustomerEncryptionKeyArnHasBeenSet() const { return m_customerEncryptionKeyArnHasBeenSet; }
134 template<typename CustomerEncryptionKeyArnT = Aws::String>
135 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet = true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
136 template<typename CustomerEncryptionKeyArnT = Aws::String>
137 AgentVersion& WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { SetCustomerEncryptionKeyArn(std::forward<CustomerEncryptionKeyArnT>(value)); return *this;}
139
141
144 inline const Aws::String& GetDescription() const { return m_description; }
145 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
146 template<typename DescriptionT = Aws::String>
147 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
148 template<typename DescriptionT = Aws::String>
149 AgentVersion& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
151
153
156 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
157 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
158 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
159 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons = std::forward<FailureReasonsT>(value); }
160 template<typename FailureReasonsT = Aws::Vector<Aws::String>>
161 AgentVersion& WithFailureReasons(FailureReasonsT&& value) { SetFailureReasons(std::forward<FailureReasonsT>(value)); return *this;}
162 template<typename FailureReasonsT = Aws::String>
163 AgentVersion& AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet = true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value)); return *this; }
165
167
170 inline const Aws::String& GetFoundationModel() const { return m_foundationModel; }
171 inline bool FoundationModelHasBeenSet() const { return m_foundationModelHasBeenSet; }
172 template<typename FoundationModelT = Aws::String>
173 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet = true; m_foundationModel = std::forward<FoundationModelT>(value); }
174 template<typename FoundationModelT = Aws::String>
175 AgentVersion& WithFoundationModel(FoundationModelT&& value) { SetFoundationModel(std::forward<FoundationModelT>(value)); return *this;}
177
179
182 inline const GuardrailConfiguration& GetGuardrailConfiguration() const { return m_guardrailConfiguration; }
183 inline bool GuardrailConfigurationHasBeenSet() const { return m_guardrailConfigurationHasBeenSet; }
184 template<typename GuardrailConfigurationT = GuardrailConfiguration>
185 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet = true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
186 template<typename GuardrailConfigurationT = GuardrailConfiguration>
187 AgentVersion& WithGuardrailConfiguration(GuardrailConfigurationT&& value) { SetGuardrailConfiguration(std::forward<GuardrailConfigurationT>(value)); return *this;}
189
191
198 inline int GetIdleSessionTTLInSeconds() const { return m_idleSessionTTLInSeconds; }
199 inline bool IdleSessionTTLInSecondsHasBeenSet() const { return m_idleSessionTTLInSecondsHasBeenSet; }
200 inline void SetIdleSessionTTLInSeconds(int value) { m_idleSessionTTLInSecondsHasBeenSet = true; m_idleSessionTTLInSeconds = value; }
201 inline AgentVersion& WithIdleSessionTTLInSeconds(int value) { SetIdleSessionTTLInSeconds(value); return *this;}
203
205
208 inline const Aws::String& GetInstruction() const { return m_instruction; }
209 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
210 template<typename InstructionT = Aws::String>
211 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
212 template<typename InstructionT = Aws::String>
213 AgentVersion& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
215
217
221 inline const MemoryConfiguration& GetMemoryConfiguration() const { return m_memoryConfiguration; }
222 inline bool MemoryConfigurationHasBeenSet() const { return m_memoryConfigurationHasBeenSet; }
223 template<typename MemoryConfigurationT = MemoryConfiguration>
224 void SetMemoryConfiguration(MemoryConfigurationT&& value) { m_memoryConfigurationHasBeenSet = true; m_memoryConfiguration = std::forward<MemoryConfigurationT>(value); }
225 template<typename MemoryConfigurationT = MemoryConfiguration>
226 AgentVersion& WithMemoryConfiguration(MemoryConfigurationT&& value) { SetMemoryConfiguration(std::forward<MemoryConfigurationT>(value)); return *this;}
228
230
236 inline const PromptOverrideConfiguration& GetPromptOverrideConfiguration() const { return m_promptOverrideConfiguration; }
237 inline bool PromptOverrideConfigurationHasBeenSet() const { return m_promptOverrideConfigurationHasBeenSet; }
238 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
239 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet = true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
240 template<typename PromptOverrideConfigurationT = PromptOverrideConfiguration>
241 AgentVersion& WithPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { SetPromptOverrideConfiguration(std::forward<PromptOverrideConfigurationT>(value)); return *this;}
243
245
249 inline const Aws::Vector<Aws::String>& GetRecommendedActions() const { return m_recommendedActions; }
250 inline bool RecommendedActionsHasBeenSet() const { return m_recommendedActionsHasBeenSet; }
251 template<typename RecommendedActionsT = Aws::Vector<Aws::String>>
252 void SetRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions = std::forward<RecommendedActionsT>(value); }
253 template<typename RecommendedActionsT = Aws::Vector<Aws::String>>
254 AgentVersion& WithRecommendedActions(RecommendedActionsT&& value) { SetRecommendedActions(std::forward<RecommendedActionsT>(value)); return *this;}
255 template<typename RecommendedActionsT = Aws::String>
256 AgentVersion& AddRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet = true; m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value)); return *this; }
258
260
263 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
264 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
265 template<typename UpdatedAtT = Aws::Utils::DateTime>
266 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
267 template<typename UpdatedAtT = Aws::Utils::DateTime>
268 AgentVersion& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
270
272
275 inline const Aws::String& GetVersion() const { return m_version; }
276 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
277 template<typename VersionT = Aws::String>
278 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
279 template<typename VersionT = Aws::String>
280 AgentVersion& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
282 private:
283
284 Aws::String m_agentArn;
285 bool m_agentArnHasBeenSet = false;
286
288 bool m_agentCollaborationHasBeenSet = false;
289
290 Aws::String m_agentId;
291 bool m_agentIdHasBeenSet = false;
292
293 Aws::String m_agentName;
294 bool m_agentNameHasBeenSet = false;
295
296 Aws::String m_agentResourceRoleArn;
297 bool m_agentResourceRoleArnHasBeenSet = false;
298
299 AgentStatus m_agentStatus{AgentStatus::NOT_SET};
300 bool m_agentStatusHasBeenSet = false;
301
302 Aws::Utils::DateTime m_createdAt{};
303 bool m_createdAtHasBeenSet = false;
304
305 Aws::String m_customerEncryptionKeyArn;
306 bool m_customerEncryptionKeyArnHasBeenSet = false;
307
308 Aws::String m_description;
309 bool m_descriptionHasBeenSet = false;
310
311 Aws::Vector<Aws::String> m_failureReasons;
312 bool m_failureReasonsHasBeenSet = false;
313
314 Aws::String m_foundationModel;
315 bool m_foundationModelHasBeenSet = false;
316
317 GuardrailConfiguration m_guardrailConfiguration;
318 bool m_guardrailConfigurationHasBeenSet = false;
319
320 int m_idleSessionTTLInSeconds{0};
321 bool m_idleSessionTTLInSecondsHasBeenSet = false;
322
323 Aws::String m_instruction;
324 bool m_instructionHasBeenSet = false;
325
326 MemoryConfiguration m_memoryConfiguration;
327 bool m_memoryConfigurationHasBeenSet = false;
328
329 PromptOverrideConfiguration m_promptOverrideConfiguration;
330 bool m_promptOverrideConfigurationHasBeenSet = false;
331
332 Aws::Vector<Aws::String> m_recommendedActions;
333 bool m_recommendedActionsHasBeenSet = false;
334
335 Aws::Utils::DateTime m_updatedAt{};
336 bool m_updatedAtHasBeenSet = false;
337
338 Aws::String m_version;
339 bool m_versionHasBeenSet = false;
340 };
341
342} // namespace Model
343} // namespace BedrockAgent
344} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue