AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFeaturedResultsSetRequest.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/FeaturedResultsSetStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/kendra/model/FeaturedDocument.h>
13#include <aws/kendra/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace kendra
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_KENDRA_API CreateFeaturedResultsSetRequest() = 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 "CreateFeaturedResultsSet"; }
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 CreateFeaturedResultsSetRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetFeaturedResultsSetName() const { return m_featuredResultsSetName; }
58 inline bool FeaturedResultsSetNameHasBeenSet() const { return m_featuredResultsSetNameHasBeenSet; }
59 template<typename FeaturedResultsSetNameT = Aws::String>
60 void SetFeaturedResultsSetName(FeaturedResultsSetNameT&& value) { m_featuredResultsSetNameHasBeenSet = true; m_featuredResultsSetName = std::forward<FeaturedResultsSetNameT>(value); }
61 template<typename FeaturedResultsSetNameT = Aws::String>
62 CreateFeaturedResultsSetRequest& WithFeaturedResultsSetName(FeaturedResultsSetNameT&& value) { SetFeaturedResultsSetName(std::forward<FeaturedResultsSetNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreateFeaturedResultsSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
83 inline const Aws::String& GetClientToken() const { return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 template<typename ClientTokenT = Aws::String>
86 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
87 template<typename ClientTokenT = Aws::String>
88 CreateFeaturedResultsSetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
90
92
102 inline FeaturedResultsSetStatus GetStatus() const { return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(FeaturedResultsSetStatus value) { m_statusHasBeenSet = true; m_status = value; }
107
109
114 inline const Aws::Vector<Aws::String>& GetQueryTexts() const { return m_queryTexts; }
115 inline bool QueryTextsHasBeenSet() const { return m_queryTextsHasBeenSet; }
116 template<typename QueryTextsT = Aws::Vector<Aws::String>>
117 void SetQueryTexts(QueryTextsT&& value) { m_queryTextsHasBeenSet = true; m_queryTexts = std::forward<QueryTextsT>(value); }
118 template<typename QueryTextsT = Aws::Vector<Aws::String>>
119 CreateFeaturedResultsSetRequest& WithQueryTexts(QueryTextsT&& value) { SetQueryTexts(std::forward<QueryTextsT>(value)); return *this;}
120 template<typename QueryTextsT = Aws::String>
121 CreateFeaturedResultsSetRequest& AddQueryTexts(QueryTextsT&& value) { m_queryTextsHasBeenSet = true; m_queryTexts.emplace_back(std::forward<QueryTextsT>(value)); return *this; }
123
125
130 inline const Aws::Vector<FeaturedDocument>& GetFeaturedDocuments() const { return m_featuredDocuments; }
131 inline bool FeaturedDocumentsHasBeenSet() const { return m_featuredDocumentsHasBeenSet; }
132 template<typename FeaturedDocumentsT = Aws::Vector<FeaturedDocument>>
133 void SetFeaturedDocuments(FeaturedDocumentsT&& value) { m_featuredDocumentsHasBeenSet = true; m_featuredDocuments = std::forward<FeaturedDocumentsT>(value); }
134 template<typename FeaturedDocumentsT = Aws::Vector<FeaturedDocument>>
135 CreateFeaturedResultsSetRequest& WithFeaturedDocuments(FeaturedDocumentsT&& value) { SetFeaturedDocuments(std::forward<FeaturedDocumentsT>(value)); return *this;}
136 template<typename FeaturedDocumentsT = FeaturedDocument>
137 CreateFeaturedResultsSetRequest& AddFeaturedDocuments(FeaturedDocumentsT&& value) { m_featuredDocumentsHasBeenSet = true; m_featuredDocuments.emplace_back(std::forward<FeaturedDocumentsT>(value)); return *this; }
139
141
147 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Vector<Tag>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Vector<Tag>>
152 CreateFeaturedResultsSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsT = Tag>
154 CreateFeaturedResultsSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
156 private:
157
158 Aws::String m_indexId;
159 bool m_indexIdHasBeenSet = false;
160
161 Aws::String m_featuredResultsSetName;
162 bool m_featuredResultsSetNameHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::String m_clientToken;
168 bool m_clientTokenHasBeenSet = false;
169
171 bool m_statusHasBeenSet = false;
172
173 Aws::Vector<Aws::String> m_queryTexts;
174 bool m_queryTextsHasBeenSet = false;
175
176 Aws::Vector<FeaturedDocument> m_featuredDocuments;
177 bool m_featuredDocumentsHasBeenSet = false;
178
179 Aws::Vector<Tag> m_tags;
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace kendra
185} // 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