7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/KendraRequest.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/AttributeFilter.h>
12#include <aws/kendra/model/DocumentRelevanceConfiguration.h>
13#include <aws/kendra/model/UserContext.h>
43 template <
typename IndexIdT = Aws::String>
45 m_indexIdHasBeenSet =
true;
46 m_indexId = std::forward<IndexIdT>(value);
48 template <
typename IndexIdT = Aws::String>
68 template <
typename QueryTextT = Aws::String>
70 m_queryTextHasBeenSet =
true;
71 m_queryText = std::forward<QueryTextT>(value);
73 template <
typename QueryTextT = Aws::String>
94 template <
typename AttributeFilterT = AttributeFilter>
96 m_attributeFilterHasBeenSet =
true;
97 m_attributeFilter = std::forward<AttributeFilterT>(value);
99 template <
typename AttributeFilterT = AttributeFilter>
114 template <
typename RequestedDocumentAttributesT = Aws::Vector<Aws::String>>
116 m_requestedDocumentAttributesHasBeenSet =
true;
117 m_requestedDocumentAttributes = std::forward<RequestedDocumentAttributesT>(value);
119 template <
typename RequestedDocumentAttributesT = Aws::Vector<Aws::String>>
124 template <
typename RequestedDocumentAttributesT = Aws::String>
126 m_requestedDocumentAttributesHasBeenSet =
true;
127 m_requestedDocumentAttributes.emplace_back(std::forward<RequestedDocumentAttributesT>(value));
143 return m_documentRelevanceOverrideConfigurations;
146 template <
typename DocumentRelevanceOverr
ideConfigurationsT = Aws::Vector<DocumentRelevanceConfiguration>>
148 m_documentRelevanceOverrideConfigurationsHasBeenSet =
true;
149 m_documentRelevanceOverrideConfigurations = std::forward<DocumentRelevanceOverrideConfigurationsT>(value);
151 template <
typename DocumentRelevanceOverr
ideConfigurationsT = Aws::Vector<DocumentRelevanceConfiguration>>
156 template <
typename DocumentRelevanceOverr
ideConfigurationsT = DocumentRelevanceConfiguration>
158 m_documentRelevanceOverrideConfigurationsHasBeenSet =
true;
159 m_documentRelevanceOverrideConfigurations.emplace_back(std::forward<DocumentRelevanceOverrideConfigurationsT>(value));
173 m_pageNumberHasBeenSet =
true;
174 m_pageNumber = value;
191 m_pageSizeHasBeenSet =
true;
206 template <
typename UserContextT = UserContext>
208 m_userContextHasBeenSet =
true;
209 m_userContext = std::forward<UserContextT>(value);
211 template <
typename UserContextT = UserContext>
219 bool m_indexIdHasBeenSet =
false;
222 bool m_queryTextHasBeenSet =
false;
225 bool m_attributeFilterHasBeenSet =
false;
228 bool m_requestedDocumentAttributesHasBeenSet =
false;
231 bool m_documentRelevanceOverrideConfigurationsHasBeenSet =
false;
234 bool m_pageNumberHasBeenSet =
false;
237 bool m_pageSizeHasBeenSet =
false;
239 UserContext m_userContext;
240 bool m_userContextHasBeenSet =
false;
RetrieveRequest & WithPageNumber(int value)
bool QueryTextHasBeenSet() const
void SetRequestedDocumentAttributes(RequestedDocumentAttributesT &&value)
const AttributeFilter & GetAttributeFilter() const
RetrieveRequest & WithRequestedDocumentAttributes(RequestedDocumentAttributesT &&value)
RetrieveRequest & AddRequestedDocumentAttributes(RequestedDocumentAttributesT &&value)
void SetUserContext(UserContextT &&value)
void SetQueryText(QueryTextT &&value)
void SetPageSize(int value)
RetrieveRequest & AddDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT &&value)
int GetPageNumber() const
bool AttributeFilterHasBeenSet() const
bool IndexIdHasBeenSet() const
bool UserContextHasBeenSet() const
RetrieveRequest & WithQueryText(QueryTextT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetIndexId() const
void SetDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT &&value)
const Aws::String & GetQueryText() const
bool DocumentRelevanceOverrideConfigurationsHasBeenSet() const
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KENDRA_API RetrieveRequest()=default
bool PageNumberHasBeenSet() const
const Aws::Vector< Aws::String > & GetRequestedDocumentAttributes() const
RetrieveRequest & WithDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
bool RequestedDocumentAttributesHasBeenSet() const
const UserContext & GetUserContext() const
RetrieveRequest & WithIndexId(IndexIdT &&value)
bool PageSizeHasBeenSet() const
void SetAttributeFilter(AttributeFilterT &&value)
void SetPageNumber(int value)
const Aws::Vector< DocumentRelevanceConfiguration > & GetDocumentRelevanceOverrideConfigurations() const
void SetIndexId(IndexIdT &&value)
RetrieveRequest & WithUserContext(UserContextT &&value)
RetrieveRequest & WithAttributeFilter(AttributeFilterT &&value)
RetrieveRequest & WithPageSize(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector