AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/KendraRequest.h>
11#include <aws/kendra/Kendra_EXPORTS.h>
12#include <aws/kendra/model/CustomDocumentEnrichmentConfiguration.h>
13#include <aws/kendra/model/DataSourceConfiguration.h>
14#include <aws/kendra/model/DataSourceType.h>
15#include <aws/kendra/model/DataSourceVpcConfiguration.h>
16#include <aws/kendra/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace kendra {
22namespace Model {
23
27 public:
28 AWS_KENDRA_API CreateDataSourceRequest() = 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 "CreateDataSource"; }
35
36 AWS_KENDRA_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetIndexId() const { return m_indexId; }
64 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
65 template <typename IndexIdT = Aws::String>
66 void SetIndexId(IndexIdT&& value) {
67 m_indexIdHasBeenSet = true;
68 m_indexId = std::forward<IndexIdT>(value);
69 }
70 template <typename IndexIdT = Aws::String>
72 SetIndexId(std::forward<IndexIdT>(value));
73 return *this;
74 }
76
78
81 inline DataSourceType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(DataSourceType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
88 SetType(value);
89 return *this;
90 }
92
94
101 inline const DataSourceConfiguration& GetConfiguration() const { return m_configuration; }
102 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
103 template <typename ConfigurationT = DataSourceConfiguration>
104 void SetConfiguration(ConfigurationT&& value) {
105 m_configurationHasBeenSet = true;
106 m_configuration = std::forward<ConfigurationT>(value);
107 }
108 template <typename ConfigurationT = DataSourceConfiguration>
110 SetConfiguration(std::forward<ConfigurationT>(value));
111 return *this;
112 }
114
116
122 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
123 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
124 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
125 void SetVpcConfiguration(VpcConfigurationT&& value) {
126 m_vpcConfigurationHasBeenSet = true;
127 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
128 }
129 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
130 CreateDataSourceRequest& WithVpcConfiguration(VpcConfigurationT&& value) {
131 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetDescription() const { return m_description; }
141 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
142 template <typename DescriptionT = Aws::String>
143 void SetDescription(DescriptionT&& value) {
144 m_descriptionHasBeenSet = true;
145 m_description = std::forward<DescriptionT>(value);
146 }
147 template <typename DescriptionT = Aws::String>
149 SetDescription(std::forward<DescriptionT>(value));
150 return *this;
151 }
153
155
166 inline const Aws::String& GetSchedule() const { return m_schedule; }
167 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
168 template <typename ScheduleT = Aws::String>
169 void SetSchedule(ScheduleT&& value) {
170 m_scheduleHasBeenSet = true;
171 m_schedule = std::forward<ScheduleT>(value);
172 }
173 template <typename ScheduleT = Aws::String>
175 SetSchedule(std::forward<ScheduleT>(value));
176 return *this;
177 }
179
181
190 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
191 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
192 template <typename RoleArnT = Aws::String>
193 void SetRoleArn(RoleArnT&& value) {
194 m_roleArnHasBeenSet = true;
195 m_roleArn = std::forward<RoleArnT>(value);
196 }
197 template <typename RoleArnT = Aws::String>
199 SetRoleArn(std::forward<RoleArnT>(value));
200 return *this;
201 }
203
205
211 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
212 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 template <typename TagsT = Aws::Vector<Tag>>
214 void SetTags(TagsT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags = std::forward<TagsT>(value);
217 }
218 template <typename TagsT = Aws::Vector<Tag>>
220 SetTags(std::forward<TagsT>(value));
221 return *this;
222 }
223 template <typename TagsT = Tag>
225 m_tagsHasBeenSet = true;
226 m_tags.emplace_back(std::forward<TagsT>(value));
227 return *this;
228 }
230
232
237 inline const Aws::String& GetClientToken() const { return m_clientToken; }
238 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
239 template <typename ClientTokenT = Aws::String>
240 void SetClientToken(ClientTokenT&& value) {
241 m_clientTokenHasBeenSet = true;
242 m_clientToken = std::forward<ClientTokenT>(value);
243 }
244 template <typename ClientTokenT = Aws::String>
246 SetClientToken(std::forward<ClientTokenT>(value));
247 return *this;
248 }
250
252
260 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
261 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
262 template <typename LanguageCodeT = Aws::String>
263 void SetLanguageCode(LanguageCodeT&& value) {
264 m_languageCodeHasBeenSet = true;
265 m_languageCode = std::forward<LanguageCodeT>(value);
266 }
267 template <typename LanguageCodeT = Aws::String>
269 SetLanguageCode(std::forward<LanguageCodeT>(value));
270 return *this;
271 }
273
275
284 return m_customDocumentEnrichmentConfiguration;
285 }
286 inline bool CustomDocumentEnrichmentConfigurationHasBeenSet() const { return m_customDocumentEnrichmentConfigurationHasBeenSet; }
287 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
288 void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
289 m_customDocumentEnrichmentConfigurationHasBeenSet = true;
290 m_customDocumentEnrichmentConfiguration = std::forward<CustomDocumentEnrichmentConfigurationT>(value);
291 }
292 template <typename CustomDocumentEnrichmentConfigurationT = CustomDocumentEnrichmentConfiguration>
293 CreateDataSourceRequest& WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT&& value) {
294 SetCustomDocumentEnrichmentConfiguration(std::forward<CustomDocumentEnrichmentConfigurationT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_name;
300 bool m_nameHasBeenSet = false;
301
302 Aws::String m_indexId;
303 bool m_indexIdHasBeenSet = false;
304
306 bool m_typeHasBeenSet = false;
307
308 DataSourceConfiguration m_configuration;
309 bool m_configurationHasBeenSet = false;
310
311 DataSourceVpcConfiguration m_vpcConfiguration;
312 bool m_vpcConfigurationHasBeenSet = false;
313
314 Aws::String m_description;
315 bool m_descriptionHasBeenSet = false;
316
317 Aws::String m_schedule;
318 bool m_scheduleHasBeenSet = false;
319
320 Aws::String m_roleArn;
321 bool m_roleArnHasBeenSet = false;
322
323 Aws::Vector<Tag> m_tags;
324 bool m_tagsHasBeenSet = false;
325
327 bool m_clientTokenHasBeenSet = true;
328
329 Aws::String m_languageCode;
330 bool m_languageCodeHasBeenSet = false;
331
332 CustomDocumentEnrichmentConfiguration m_customDocumentEnrichmentConfiguration;
333 bool m_customDocumentEnrichmentConfigurationHasBeenSet = false;
334};
335
336} // namespace Model
337} // namespace kendra
338} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
const CustomDocumentEnrichmentConfiguration & GetCustomDocumentEnrichmentConfiguration() const
CreateDataSourceRequest & AddTags(TagsT &&value)
CreateDataSourceRequest & WithRoleArn(RoleArnT &&value)
CreateDataSourceRequest & WithSchedule(ScheduleT &&value)
const DataSourceConfiguration & GetConfiguration() const
CreateDataSourceRequest & WithName(NameT &&value)
CreateDataSourceRequest & WithIndexId(IndexIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KENDRA_API CreateDataSourceRequest()=default
void SetVpcConfiguration(VpcConfigurationT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
CreateDataSourceRequest & WithType(DataSourceType value)
CreateDataSourceRequest & WithLanguageCode(LanguageCodeT &&value)
CreateDataSourceRequest & WithCustomDocumentEnrichmentConfiguration(CustomDocumentEnrichmentConfigurationT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
CreateDataSourceRequest & WithConfiguration(ConfigurationT &&value)
CreateDataSourceRequest & WithClientToken(ClientTokenT &&value)
CreateDataSourceRequest & WithTags(TagsT &&value)
CreateDataSourceRequest & WithDescription(DescriptionT &&value)
CreateDataSourceRequest & WithVpcConfiguration(VpcConfigurationT &&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