AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateFeaturedResultsSetRequest.h
1
6#pragma once
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/FeaturedDocument.h>
12#include <aws/kendra/model/FeaturedResultsSetStatus.h>
13#include <aws/kendra/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace kendra {
19namespace Model {
20
24 public:
25 AWS_KENDRA_API CreateFeaturedResultsSetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateFeaturedResultsSet"; }
32
33 AWS_KENDRA_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetIndexId() const { return m_indexId; }
42 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
43 template <typename IndexIdT = Aws::String>
44 void SetIndexId(IndexIdT&& value) {
45 m_indexIdHasBeenSet = true;
46 m_indexId = std::forward<IndexIdT>(value);
47 }
48 template <typename IndexIdT = Aws::String>
50 SetIndexId(std::forward<IndexIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFeaturedResultsSetName() const { return m_featuredResultsSetName; }
60 inline bool FeaturedResultsSetNameHasBeenSet() const { return m_featuredResultsSetNameHasBeenSet; }
61 template <typename FeaturedResultsSetNameT = Aws::String>
62 void SetFeaturedResultsSetName(FeaturedResultsSetNameT&& value) {
63 m_featuredResultsSetNameHasBeenSet = true;
64 m_featuredResultsSetName = std::forward<FeaturedResultsSetNameT>(value);
65 }
66 template <typename FeaturedResultsSetNameT = Aws::String>
68 SetFeaturedResultsSetName(std::forward<FeaturedResultsSetNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::String& GetClientToken() const { return m_clientToken; }
98 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
99 template <typename ClientTokenT = Aws::String>
100 void SetClientToken(ClientTokenT&& value) {
101 m_clientTokenHasBeenSet = true;
102 m_clientToken = std::forward<ClientTokenT>(value);
103 }
104 template <typename ClientTokenT = Aws::String>
106 SetClientToken(std::forward<ClientTokenT>(value));
107 return *this;
108 }
110
112
122 inline FeaturedResultsSetStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
140 inline const Aws::Vector<Aws::String>& GetQueryTexts() const { return m_queryTexts; }
141 inline bool QueryTextsHasBeenSet() const { return m_queryTextsHasBeenSet; }
142 template <typename QueryTextsT = Aws::Vector<Aws::String>>
143 void SetQueryTexts(QueryTextsT&& value) {
144 m_queryTextsHasBeenSet = true;
145 m_queryTexts = std::forward<QueryTextsT>(value);
146 }
147 template <typename QueryTextsT = Aws::Vector<Aws::String>>
149 SetQueryTexts(std::forward<QueryTextsT>(value));
150 return *this;
151 }
152 template <typename QueryTextsT = Aws::String>
154 m_queryTextsHasBeenSet = true;
155 m_queryTexts.emplace_back(std::forward<QueryTextsT>(value));
156 return *this;
157 }
159
161
166 inline const Aws::Vector<FeaturedDocument>& GetFeaturedDocuments() const { return m_featuredDocuments; }
167 inline bool FeaturedDocumentsHasBeenSet() const { return m_featuredDocumentsHasBeenSet; }
168 template <typename FeaturedDocumentsT = Aws::Vector<FeaturedDocument>>
169 void SetFeaturedDocuments(FeaturedDocumentsT&& value) {
170 m_featuredDocumentsHasBeenSet = true;
171 m_featuredDocuments = std::forward<FeaturedDocumentsT>(value);
172 }
173 template <typename FeaturedDocumentsT = Aws::Vector<FeaturedDocument>>
175 SetFeaturedDocuments(std::forward<FeaturedDocumentsT>(value));
176 return *this;
177 }
178 template <typename FeaturedDocumentsT = FeaturedDocument>
180 m_featuredDocumentsHasBeenSet = true;
181 m_featuredDocuments.emplace_back(std::forward<FeaturedDocumentsT>(value));
182 return *this;
183 }
185
187
193 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 template <typename TagsT = Aws::Vector<Tag>>
196 void SetTags(TagsT&& value) {
197 m_tagsHasBeenSet = true;
198 m_tags = std::forward<TagsT>(value);
199 }
200 template <typename TagsT = Aws::Vector<Tag>>
202 SetTags(std::forward<TagsT>(value));
203 return *this;
204 }
205 template <typename TagsT = Tag>
207 m_tagsHasBeenSet = true;
208 m_tags.emplace_back(std::forward<TagsT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_indexId;
214 bool m_indexIdHasBeenSet = false;
215
216 Aws::String m_featuredResultsSetName;
217 bool m_featuredResultsSetNameHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 Aws::String m_clientToken;
223 bool m_clientTokenHasBeenSet = false;
224
226 bool m_statusHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_queryTexts;
229 bool m_queryTextsHasBeenSet = false;
230
231 Aws::Vector<FeaturedDocument> m_featuredDocuments;
232 bool m_featuredDocumentsHasBeenSet = false;
233
234 Aws::Vector<Tag> m_tags;
235 bool m_tagsHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace kendra
240} // namespace Aws
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