7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/AgentStatus.h>
10#include <aws/bedrock-agent/model/OrchestrationType.h>
11#include <aws/bedrock-agent/model/CustomOrchestration.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/bedrock-agent/model/PromptOverrideConfiguration.h>
15#include <aws/bedrock-agent/model/GuardrailConfiguration.h>
16#include <aws/bedrock-agent/model/MemoryConfiguration.h>
17#include <aws/bedrock-agent/model/AgentCollaboration.h>
43 AWS_BEDROCKAGENT_API
Agent() =
default;
55 template<
typename AgentIdT = Aws::String>
56 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet =
true; m_agentId = std::forward<AgentIdT>(value); }
57 template<
typename AgentIdT = Aws::String>
67 template<
typename AgentNameT = Aws::String>
68 void SetAgentName(AgentNameT&& value) { m_agentNameHasBeenSet =
true; m_agentName = std::forward<AgentNameT>(value); }
69 template<
typename AgentNameT = Aws::String>
79 template<
typename AgentArnT = Aws::String>
80 void SetAgentArn(AgentArnT&& value) { m_agentArnHasBeenSet =
true; m_agentArn = std::forward<AgentArnT>(value); }
81 template<
typename AgentArnT = Aws::String>
91 template<
typename AgentVersionT = Aws::String>
92 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet =
true; m_agentVersion = std::forward<AgentVersionT>(value); }
93 template<
typename AgentVersionT = Aws::String>
107 template<
typename ClientTokenT = Aws::String>
108 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
109 template<
typename ClientTokenT = Aws::String>
120 template<
typename InstructionT = Aws::String>
121 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet =
true; m_instruction = std::forward<InstructionT>(value); }
122 template<
typename InstructionT = Aws::String>
149 template<
typename FoundationModelT = Aws::String>
150 void SetFoundationModel(FoundationModelT&& value) { m_foundationModelHasBeenSet =
true; m_foundationModel = std::forward<FoundationModelT>(value); }
151 template<
typename FoundationModelT = Aws::String>
161 template<
typename DescriptionT = Aws::String>
162 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
163 template<
typename DescriptionT = Aws::String>
183 template<
typename CustomOrchestrationT = CustomOrchestration>
184 void SetCustomOrchestration(CustomOrchestrationT&& value) { m_customOrchestrationHasBeenSet =
true; m_customOrchestration = std::forward<CustomOrchestrationT>(value); }
185 template<
typename CustomOrchestrationT = CustomOrchestration>
210 template<
typename AgentResourceRoleArnT = Aws::String>
211 void SetAgentResourceRoleArn(AgentResourceRoleArnT&& value) { m_agentResourceRoleArnHasBeenSet =
true; m_agentResourceRoleArn = std::forward<AgentResourceRoleArnT>(value); }
212 template<
typename AgentResourceRoleArnT = Aws::String>
222 template<
typename CustomerEncryptionKeyArnT = Aws::String>
223 void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT&& value) { m_customerEncryptionKeyArnHasBeenSet =
true; m_customerEncryptionKeyArn = std::forward<CustomerEncryptionKeyArnT>(value); }
224 template<
typename CustomerEncryptionKeyArnT = Aws::String>
234 template<
typename CreatedAtT = Aws::Utils::DateTime>
235 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
236 template<
typename CreatedAtT = Aws::Utils::DateTime>
246 template<
typename UpdatedAtT = Aws::Utils::DateTime>
247 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
248 template<
typename UpdatedAtT = Aws::Utils::DateTime>
258 template<
typename PreparedAtT = Aws::Utils::DateTime>
259 void SetPreparedAt(PreparedAtT&& value) { m_preparedAtHasBeenSet =
true; m_preparedAt = std::forward<PreparedAtT>(value); }
260 template<
typename PreparedAtT = Aws::Utils::DateTime>
270 template<
typename FailureReasonsT = Aws::Vector<Aws::String>>
271 void SetFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet =
true; m_failureReasons = std::forward<FailureReasonsT>(value); }
272 template<
typename FailureReasonsT = Aws::Vector<Aws::String>>
274 template<
typename FailureReasonsT = Aws::String>
275 Agent&
AddFailureReasons(FailureReasonsT&& value) { m_failureReasonsHasBeenSet =
true; m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
return *
this; }
285 template<
typename RecommendedActionsT = Aws::Vector<Aws::String>>
286 void SetRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet =
true; m_recommendedActions = std::forward<RecommendedActionsT>(value); }
287 template<
typename RecommendedActionsT = Aws::Vector<Aws::String>>
289 template<
typename RecommendedActionsT = Aws::String>
290 Agent&
AddRecommendedActions(RecommendedActionsT&& value) { m_recommendedActionsHasBeenSet =
true; m_recommendedActions.emplace_back(std::forward<RecommendedActionsT>(value));
return *
this; }
302 template<
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
303 void SetPromptOverrideConfiguration(PromptOverrideConfigurationT&& value) { m_promptOverrideConfigurationHasBeenSet =
true; m_promptOverrideConfiguration = std::forward<PromptOverrideConfigurationT>(value); }
304 template<
typename PromptOverr
ideConfigurationT = PromptOverr
ideConfiguration>
314 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
315 void SetGuardrailConfiguration(GuardrailConfigurationT&& value) { m_guardrailConfigurationHasBeenSet =
true; m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value); }
316 template<
typename GuardrailConfigurationT = GuardrailConfiguration>
326 template<
typename MemoryConfigurationT = MemoryConfiguration>
327 void SetMemoryConfiguration(MemoryConfigurationT&& value) { m_memoryConfigurationHasBeenSet =
true; m_memoryConfiguration = std::forward<MemoryConfigurationT>(value); }
328 template<
typename MemoryConfigurationT = MemoryConfiguration>
344 bool m_agentIdHasBeenSet =
false;
347 bool m_agentNameHasBeenSet =
false;
350 bool m_agentArnHasBeenSet =
false;
353 bool m_agentVersionHasBeenSet =
false;
356 bool m_clientTokenHasBeenSet =
false;
359 bool m_instructionHasBeenSet =
false;
362 bool m_agentStatusHasBeenSet =
false;
365 bool m_foundationModelHasBeenSet =
false;
368 bool m_descriptionHasBeenSet =
false;
371 bool m_orchestrationTypeHasBeenSet =
false;
373 CustomOrchestration m_customOrchestration;
374 bool m_customOrchestrationHasBeenSet =
false;
376 int m_idleSessionTTLInSeconds{0};
377 bool m_idleSessionTTLInSecondsHasBeenSet =
false;
380 bool m_agentResourceRoleArnHasBeenSet =
false;
383 bool m_customerEncryptionKeyArnHasBeenSet =
false;
386 bool m_createdAtHasBeenSet =
false;
389 bool m_updatedAtHasBeenSet =
false;
392 bool m_preparedAtHasBeenSet =
false;
395 bool m_failureReasonsHasBeenSet =
false;
398 bool m_recommendedActionsHasBeenSet =
false;
400 PromptOverrideConfiguration m_promptOverrideConfiguration;
401 bool m_promptOverrideConfigurationHasBeenSet =
false;
403 GuardrailConfiguration m_guardrailConfiguration;
404 bool m_guardrailConfigurationHasBeenSet =
false;
406 MemoryConfiguration m_memoryConfiguration;
407 bool m_memoryConfigurationHasBeenSet =
false;
410 bool m_agentCollaborationHasBeenSet =
false;
bool CustomerEncryptionKeyArnHasBeenSet() const
const GuardrailConfiguration & GetGuardrailConfiguration() const
const PromptOverrideConfiguration & GetPromptOverrideConfiguration() const
void SetIdleSessionTTLInSeconds(int value)
bool FoundationModelHasBeenSet() const
bool AgentIdHasBeenSet() const
bool OrchestrationTypeHasBeenSet() const
Agent & WithInstruction(InstructionT &&value)
Agent & AddFailureReasons(FailureReasonsT &&value)
Agent & WithAgentArn(AgentArnT &&value)
Agent & WithFoundationModel(FoundationModelT &&value)
const Aws::Utils::DateTime & GetPreparedAt() const
Agent & WithAgentCollaboration(AgentCollaboration value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENT_API Agent()=default
OrchestrationType GetOrchestrationType() const
void SetMemoryConfiguration(MemoryConfigurationT &&value)
Agent & WithCreatedAt(CreatedAtT &&value)
bool FailureReasonsHasBeenSet() const
void SetAgentVersion(AgentVersionT &&value)
Agent & WithIdleSessionTTLInSeconds(int value)
bool DescriptionHasBeenSet() const
bool AgentCollaborationHasBeenSet() const
int GetIdleSessionTTLInSeconds() const
bool AgentStatusHasBeenSet() const
void SetRecommendedActions(RecommendedActionsT &&value)
bool AgentNameHasBeenSet() const
Agent & WithRecommendedActions(RecommendedActionsT &&value)
const MemoryConfiguration & GetMemoryConfiguration() const
Agent & WithAgentStatus(AgentStatus value)
Agent & WithClientToken(ClientTokenT &&value)
bool AgentResourceRoleArnHasBeenSet() const
void SetFailureReasons(FailureReasonsT &&value)
const Aws::String & GetClientToken() const
Agent & WithDescription(DescriptionT &&value)
Agent & WithOrchestrationType(OrchestrationType value)
const Aws::String & GetAgentArn() const
void SetCustomOrchestration(CustomOrchestrationT &&value)
void SetDescription(DescriptionT &&value)
bool PreparedAtHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetInstruction() const
bool PromptOverrideConfigurationHasBeenSet() const
const Aws::String & GetAgentName() const
Agent & WithAgentName(AgentNameT &&value)
AWS_BEDROCKAGENT_API Agent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAgentName(AgentNameT &&value)
Agent & WithAgentVersion(AgentVersionT &&value)
bool RecommendedActionsHasBeenSet() const
bool ClientTokenHasBeenSet() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
bool UpdatedAtHasBeenSet() const
void SetAgentArn(AgentArnT &&value)
Agent & WithAgentId(AgentIdT &&value)
Agent & WithMemoryConfiguration(MemoryConfigurationT &&value)
void SetOrchestrationType(OrchestrationType value)
void SetCreatedAt(CreatedAtT &&value)
Agent & WithPreparedAt(PreparedAtT &&value)
const Aws::String & GetDescription() const
void SetCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
Agent & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetPreparedAt(PreparedAtT &&value)
Agent & WithCustomOrchestration(CustomOrchestrationT &&value)
bool GuardrailConfigurationHasBeenSet() const
AgentCollaboration GetAgentCollaboration() const
Agent & WithAgentResourceRoleArn(AgentResourceRoleArnT &&value)
void SetAgentCollaboration(AgentCollaboration value)
const CustomOrchestration & GetCustomOrchestration() const
void SetClientToken(ClientTokenT &&value)
bool MemoryConfigurationHasBeenSet() const
void SetAgentStatus(AgentStatus value)
AgentStatus GetAgentStatus() const
const Aws::String & GetAgentVersion() const
AWS_BEDROCKAGENT_API Agent(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAgentResourceRoleArn() const
Agent & WithUpdatedAt(UpdatedAtT &&value)
bool CreatedAtHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
bool AgentVersionHasBeenSet() const
bool AgentArnHasBeenSet() const
Agent & WithFailureReasons(FailureReasonsT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
const Aws::String & GetFoundationModel() const
const Aws::Vector< Aws::String > & GetRecommendedActions() const
void SetFoundationModel(FoundationModelT &&value)
Agent & AddRecommendedActions(RecommendedActionsT &&value)
bool InstructionHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
Agent & WithCustomerEncryptionKeyArn(CustomerEncryptionKeyArnT &&value)
Agent & WithPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
void SetPromptOverrideConfiguration(PromptOverrideConfigurationT &&value)
void SetInstruction(InstructionT &&value)
void SetAgentResourceRoleArn(AgentResourceRoleArnT &&value)
void SetAgentId(AgentIdT &&value)
const Aws::String & GetCustomerEncryptionKeyArn() const
bool CustomOrchestrationHasBeenSet() const
bool IdleSessionTTLInSecondsHasBeenSet() const
const Aws::String & GetAgentId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue