7#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/KnowledgeBaseQuery.h>
11#include <aws/bedrock-agent-runtime/model/KnowledgeBaseRetrievalConfiguration.h>
12#include <aws/bedrock-agent-runtime/model/UserContext.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
18namespace BedrockAgentRuntime {
41 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
43 m_guardrailConfigurationHasBeenSet =
true;
44 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
46 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
59 template <
typename KnowledgeBaseIdT = Aws::String>
61 m_knowledgeBaseIdHasBeenSet =
true;
62 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
64 template <
typename KnowledgeBaseIdT = Aws::String>
79 template <
typename NextTokenT = Aws::String>
81 m_nextTokenHasBeenSet =
true;
82 m_nextToken = std::forward<NextTokenT>(value);
84 template <
typename NextTokenT = Aws::String>
100 template <
typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
102 m_retrievalConfigurationHasBeenSet =
true;
103 m_retrievalConfiguration = std::forward<RetrievalConfigurationT>(value);
105 template <
typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
118 template <
typename RetrievalQueryT = KnowledgeBaseQuery>
120 m_retrievalQueryHasBeenSet =
true;
121 m_retrievalQuery = std::forward<RetrievalQueryT>(value);
123 template <
typename RetrievalQueryT = KnowledgeBaseQuery>
134 template <
typename UserContextT = UserContext>
136 m_userContextHasBeenSet =
true;
137 m_userContext = std::forward<UserContextT>(value);
139 template <
typename UserContextT = UserContext>
157 bool m_guardrailConfigurationHasBeenSet =
false;
158 bool m_knowledgeBaseIdHasBeenSet =
false;
159 bool m_nextTokenHasBeenSet =
false;
160 bool m_retrievalConfigurationHasBeenSet =
false;
161 bool m_retrievalQueryHasBeenSet =
false;
162 bool m_userContextHasBeenSet =
false;
const Aws::String & GetKnowledgeBaseId() const
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetRetrievalQuery(RetrievalQueryT &&value)
RetrieveRequest & WithRetrievalQuery(RetrievalQueryT &&value)
const UserContext & GetUserContext() const
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
RetrieveRequest & WithGuardrailConfiguration(GuardrailConfigurationT &&value)
const GuardrailConfiguration & GetGuardrailConfiguration() const
bool NextTokenHasBeenSet() const
void SetNextToken(NextTokenT &&value)
RetrieveRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
RetrieveRequest & WithRetrievalConfiguration(RetrievalConfigurationT &&value)
const Aws::String & GetNextToken() const
bool GuardrailConfigurationHasBeenSet() const
void SetRetrievalConfiguration(RetrievalConfigurationT &&value)
RetrieveRequest & WithUserContext(UserContextT &&value)
bool RetrievalQueryHasBeenSet() const
const KnowledgeBaseRetrievalConfiguration & GetRetrievalConfiguration() const
bool KnowledgeBaseIdHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API RetrieveRequest()=default
RetrieveRequest & WithNextToken(NextTokenT &&value)
const KnowledgeBaseQuery & GetRetrievalQuery() const
virtual const char * GetServiceRequestName() const override
bool UserContextHasBeenSet() const
bool RetrievalConfigurationHasBeenSet() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
void SetUserContext(UserContextT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String