7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/AttributeFilter.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/kendra/model/UserContext.h>
13#include <aws/kendra/model/DocumentRelevanceConfiguration.h>
47 template<
typename IndexIdT = Aws::String>
48 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet =
true; m_indexId = std::forward<IndexIdT>(value); }
49 template<
typename IndexIdT = Aws::String>
66 template<
typename QueryTextT = Aws::String>
67 void SetQueryText(QueryTextT&& value) { m_queryTextHasBeenSet =
true; m_queryText = std::forward<QueryTextT>(value); }
68 template<
typename QueryTextT = Aws::String>
86 template<
typename AttributeFilterT = AttributeFilter>
87 void SetAttributeFilter(AttributeFilterT&& value) { m_attributeFilterHasBeenSet =
true; m_attributeFilter = std::forward<AttributeFilterT>(value); }
88 template<
typename AttributeFilterT = AttributeFilter>
100 template<
typename RequestedDocumentAttributesT = Aws::Vector<Aws::String>>
101 void SetRequestedDocumentAttributes(RequestedDocumentAttributesT&& value) { m_requestedDocumentAttributesHasBeenSet =
true; m_requestedDocumentAttributes = std::forward<RequestedDocumentAttributesT>(value); }
102 template<
typename RequestedDocumentAttributesT = Aws::Vector<Aws::String>>
104 template<
typename RequestedDocumentAttributesT = Aws::String>
105 RetrieveRequest&
AddRequestedDocumentAttributes(RequestedDocumentAttributesT&& value) { m_requestedDocumentAttributesHasBeenSet =
true; m_requestedDocumentAttributes.emplace_back(std::forward<RequestedDocumentAttributesT>(value));
return *
this; }
120 template<
typename DocumentRelevanceOverr
ideConfigurationsT = Aws::Vector<DocumentRelevanceConfiguration>>
121 void SetDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT&& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet =
true; m_documentRelevanceOverrideConfigurations = std::forward<DocumentRelevanceOverrideConfigurationsT>(value); }
122 template<
typename DocumentRelevanceOverr
ideConfigurationsT = Aws::Vector<DocumentRelevanceConfiguration>>
124 template<
typename DocumentRelevanceOverr
ideConfigurationsT = DocumentRelevanceConfiguration>
125 RetrieveRequest&
AddDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT&& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet =
true; m_documentRelevanceOverrideConfigurations.emplace_back(std::forward<DocumentRelevanceOverrideConfigurationsT>(value));
return *
this; }
136 inline void SetPageNumber(
int value) { m_pageNumberHasBeenSet =
true; m_pageNumber = value; }
148 inline void SetPageSize(
int value) { m_pageSizeHasBeenSet =
true; m_pageSize = value; }
158 template<
typename UserContextT = UserContext>
159 void SetUserContext(UserContextT&& value) { m_userContextHasBeenSet =
true; m_userContext = std::forward<UserContextT>(value); }
160 template<
typename UserContextT = UserContext>
166 bool m_indexIdHasBeenSet =
false;
169 bool m_queryTextHasBeenSet =
false;
172 bool m_attributeFilterHasBeenSet =
false;
175 bool m_requestedDocumentAttributesHasBeenSet =
false;
178 bool m_documentRelevanceOverrideConfigurationsHasBeenSet =
false;
181 bool m_pageNumberHasBeenSet =
false;
184 bool m_pageSizeHasBeenSet =
false;
186 UserContext m_userContext;
187 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