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/core/utils/memory/stl/AWSString.h>
17namespace BedrockAgentRuntime {
40 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
42 m_guardrailConfigurationHasBeenSet =
true;
43 m_guardrailConfiguration = std::forward<GuardrailConfigurationT>(value);
45 template <
typename GuardrailConfigurationT = GuardrailConfiguration>
58 template <
typename KnowledgeBaseIdT = Aws::String>
60 m_knowledgeBaseIdHasBeenSet =
true;
61 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
63 template <
typename KnowledgeBaseIdT = Aws::String>
78 template <
typename NextTokenT = Aws::String>
80 m_nextTokenHasBeenSet =
true;
81 m_nextToken = std::forward<NextTokenT>(value);
83 template <
typename NextTokenT = Aws::String>
99 template <
typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
101 m_retrievalConfigurationHasBeenSet =
true;
102 m_retrievalConfiguration = std::forward<RetrievalConfigurationT>(value);
104 template <
typename RetrievalConfigurationT = KnowledgeBaseRetrievalConfiguration>
117 template <
typename RetrievalQueryT = KnowledgeBaseQuery>
119 m_retrievalQueryHasBeenSet =
true;
120 m_retrievalQuery = std::forward<RetrievalQueryT>(value);
122 template <
typename RetrievalQueryT = KnowledgeBaseQuery>
138 bool m_guardrailConfigurationHasBeenSet =
false;
139 bool m_knowledgeBaseIdHasBeenSet =
false;
140 bool m_nextTokenHasBeenSet =
false;
141 bool m_retrievalConfigurationHasBeenSet =
false;
142 bool m_retrievalQueryHasBeenSet =
false;
const Aws::String & GetKnowledgeBaseId() const
void SetKnowledgeBaseId(KnowledgeBaseIdT &&value)
void SetRetrievalQuery(RetrievalQueryT &&value)
RetrieveRequest & WithRetrievalQuery(RetrievalQueryT &&value)
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)
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 RetrievalConfigurationHasBeenSet() const
void SetGuardrailConfiguration(GuardrailConfigurationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String