AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RetrieveRequest.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace kendra
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_KENDRA_API RetrieveRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "Retrieve"; }
35
36 AWS_KENDRA_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetIndexId() const { return m_indexId; }
46 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
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>
50 RetrieveRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
52
54
64 inline const Aws::String& GetQueryText() const { return m_queryText; }
65 inline bool QueryTextHasBeenSet() const { return m_queryTextHasBeenSet; }
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>
69 RetrieveRequest& WithQueryText(QueryTextT&& value) { SetQueryText(std::forward<QueryTextT>(value)); return *this;}
71
73
84 inline const AttributeFilter& GetAttributeFilter() const { return m_attributeFilter; }
85 inline bool AttributeFilterHasBeenSet() const { return m_attributeFilterHasBeenSet; }
86 template<typename AttributeFilterT = AttributeFilter>
87 void SetAttributeFilter(AttributeFilterT&& value) { m_attributeFilterHasBeenSet = true; m_attributeFilter = std::forward<AttributeFilterT>(value); }
88 template<typename AttributeFilterT = AttributeFilter>
89 RetrieveRequest& WithAttributeFilter(AttributeFilterT&& value) { SetAttributeFilter(std::forward<AttributeFilterT>(value)); return *this;}
91
93
98 inline const Aws::Vector<Aws::String>& GetRequestedDocumentAttributes() const { return m_requestedDocumentAttributes; }
99 inline bool RequestedDocumentAttributesHasBeenSet() const { return m_requestedDocumentAttributesHasBeenSet; }
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>>
103 RetrieveRequest& WithRequestedDocumentAttributes(RequestedDocumentAttributesT&& value) { SetRequestedDocumentAttributes(std::forward<RequestedDocumentAttributesT>(value)); return *this;}
104 template<typename RequestedDocumentAttributesT = Aws::String>
105 RetrieveRequest& AddRequestedDocumentAttributes(RequestedDocumentAttributesT&& value) { m_requestedDocumentAttributesHasBeenSet = true; m_requestedDocumentAttributes.emplace_back(std::forward<RequestedDocumentAttributesT>(value)); return *this; }
107
109
118 inline const Aws::Vector<DocumentRelevanceConfiguration>& GetDocumentRelevanceOverrideConfigurations() const { return m_documentRelevanceOverrideConfigurations; }
119 inline bool DocumentRelevanceOverrideConfigurationsHasBeenSet() const { return m_documentRelevanceOverrideConfigurationsHasBeenSet; }
120 template<typename DocumentRelevanceOverrideConfigurationsT = Aws::Vector<DocumentRelevanceConfiguration>>
121 void SetDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT&& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet = true; m_documentRelevanceOverrideConfigurations = std::forward<DocumentRelevanceOverrideConfigurationsT>(value); }
122 template<typename DocumentRelevanceOverrideConfigurationsT = Aws::Vector<DocumentRelevanceConfiguration>>
123 RetrieveRequest& WithDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT&& value) { SetDocumentRelevanceOverrideConfigurations(std::forward<DocumentRelevanceOverrideConfigurationsT>(value)); return *this;}
124 template<typename DocumentRelevanceOverrideConfigurationsT = DocumentRelevanceConfiguration>
125 RetrieveRequest& AddDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT&& value) { m_documentRelevanceOverrideConfigurationsHasBeenSet = true; m_documentRelevanceOverrideConfigurations.emplace_back(std::forward<DocumentRelevanceOverrideConfigurationsT>(value)); return *this; }
127
129
134 inline int GetPageNumber() const { return m_pageNumber; }
135 inline bool PageNumberHasBeenSet() const { return m_pageNumberHasBeenSet; }
136 inline void SetPageNumber(int value) { m_pageNumberHasBeenSet = true; m_pageNumber = value; }
137 inline RetrieveRequest& WithPageNumber(int value) { SetPageNumber(value); return *this;}
139
141
146 inline int GetPageSize() const { return m_pageSize; }
147 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
148 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
149 inline RetrieveRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
151
153
156 inline const UserContext& GetUserContext() const { return m_userContext; }
157 inline bool UserContextHasBeenSet() const { return m_userContextHasBeenSet; }
158 template<typename UserContextT = UserContext>
159 void SetUserContext(UserContextT&& value) { m_userContextHasBeenSet = true; m_userContext = std::forward<UserContextT>(value); }
160 template<typename UserContextT = UserContext>
161 RetrieveRequest& WithUserContext(UserContextT&& value) { SetUserContext(std::forward<UserContextT>(value)); return *this;}
163 private:
164
165 Aws::String m_indexId;
166 bool m_indexIdHasBeenSet = false;
167
168 Aws::String m_queryText;
169 bool m_queryTextHasBeenSet = false;
170
171 AttributeFilter m_attributeFilter;
172 bool m_attributeFilterHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_requestedDocumentAttributes;
175 bool m_requestedDocumentAttributesHasBeenSet = false;
176
177 Aws::Vector<DocumentRelevanceConfiguration> m_documentRelevanceOverrideConfigurations;
178 bool m_documentRelevanceOverrideConfigurationsHasBeenSet = false;
179
180 int m_pageNumber{0};
181 bool m_pageNumberHasBeenSet = false;
182
183 int m_pageSize{0};
184 bool m_pageSizeHasBeenSet = false;
185
186 UserContext m_userContext;
187 bool m_userContextHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace kendra
192} // namespace Aws
RetrieveRequest & WithPageNumber(int value)
void SetRequestedDocumentAttributes(RequestedDocumentAttributesT &&value)
const AttributeFilter & GetAttributeFilter() const
RetrieveRequest & WithRequestedDocumentAttributes(RequestedDocumentAttributesT &&value)
RetrieveRequest & AddRequestedDocumentAttributes(RequestedDocumentAttributesT &&value)
void SetUserContext(UserContextT &&value)
void SetQueryText(QueryTextT &&value)
RetrieveRequest & AddDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT &&value)
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
const Aws::Vector< Aws::String > & GetRequestedDocumentAttributes() const
RetrieveRequest & WithDocumentRelevanceOverrideConfigurations(DocumentRelevanceOverrideConfigurationsT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
const UserContext & GetUserContext() const
RetrieveRequest & WithIndexId(IndexIdT &&value)
void SetAttributeFilter(AttributeFilterT &&value)
const Aws::Vector< DocumentRelevanceConfiguration > & GetDocumentRelevanceOverrideConfigurations() const
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