AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/QBusinessRequest.h>
12#include <aws/qbusiness/QBusiness_EXPORTS.h>
13#include <aws/qbusiness/model/DataSourceVpcConfiguration.h>
14#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
15#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
16#include <aws/qbusiness/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace QBusiness {
22namespace Model {
23
27 public:
28 AWS_QBUSINESS_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_QBUSINESS_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
44 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
45 template <typename ApplicationIdT = Aws::String>
47 m_applicationIdHasBeenSet = true;
48 m_applicationId = std::forward<ApplicationIdT>(value);
49 }
50 template <typename ApplicationIdT = Aws::String>
52 SetApplicationId(std::forward<ApplicationIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetIndexId() const { return m_indexId; }
63 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
64 template <typename IndexIdT = Aws::String>
65 void SetIndexId(IndexIdT&& value) {
66 m_indexIdHasBeenSet = true;
67 m_indexId = std::forward<IndexIdT>(value);
68 }
69 template <typename IndexIdT = Aws::String>
71 SetIndexId(std::forward<IndexIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDisplayName() const { return m_displayName; }
81 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
82 template <typename DisplayNameT = Aws::String>
84 m_displayNameHasBeenSet = true;
85 m_displayName = std::forward<DisplayNameT>(value);
86 }
87 template <typename DisplayNameT = Aws::String>
89 SetDisplayName(std::forward<DisplayNameT>(value));
90 return *this;
91 }
93
95
115 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
116 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
117 template <typename ConfigurationT = Aws::Utils::Document>
119 m_configurationHasBeenSet = true;
120 m_configuration = std::forward<ConfigurationT>(value);
121 }
122 template <typename ConfigurationT = Aws::Utils::Document>
124 SetConfiguration(std::forward<ConfigurationT>(value));
125 return *this;
126 }
128
130
136 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
137 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
138 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
140 m_vpcConfigurationHasBeenSet = true;
141 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
142 }
143 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
145 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetDescription() const { return m_description; }
155 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
156 template <typename DescriptionT = Aws::String>
158 m_descriptionHasBeenSet = true;
159 m_description = std::forward<DescriptionT>(value);
160 }
161 template <typename DescriptionT = Aws::String>
163 SetDescription(std::forward<DescriptionT>(value));
164 return *this;
165 }
167
169
175 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 template <typename TagsT = Aws::Vector<Tag>>
178 void SetTags(TagsT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags = std::forward<TagsT>(value);
181 }
182 template <typename TagsT = Aws::Vector<Tag>>
184 SetTags(std::forward<TagsT>(value));
185 return *this;
186 }
187 template <typename TagsT = Tag>
189 m_tagsHasBeenSet = true;
190 m_tags.emplace_back(std::forward<TagsT>(value));
191 return *this;
192 }
194
196
205 inline const Aws::String& GetSyncSchedule() const { return m_syncSchedule; }
206 inline bool SyncScheduleHasBeenSet() const { return m_syncScheduleHasBeenSet; }
207 template <typename SyncScheduleT = Aws::String>
209 m_syncScheduleHasBeenSet = true;
210 m_syncSchedule = std::forward<SyncScheduleT>(value);
211 }
212 template <typename SyncScheduleT = Aws::String>
214 SetSyncSchedule(std::forward<SyncScheduleT>(value));
215 return *this;
216 }
218
220
225 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
226 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
227 template <typename RoleArnT = Aws::String>
228 void SetRoleArn(RoleArnT&& value) {
229 m_roleArnHasBeenSet = true;
230 m_roleArn = std::forward<RoleArnT>(value);
231 }
232 template <typename RoleArnT = Aws::String>
234 SetRoleArn(std::forward<RoleArnT>(value));
235 return *this;
236 }
238
240
245 inline const Aws::String& GetClientToken() const { return m_clientToken; }
246 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
247 template <typename ClientTokenT = Aws::String>
249 m_clientTokenHasBeenSet = true;
250 m_clientToken = std::forward<ClientTokenT>(value);
251 }
252 template <typename ClientTokenT = Aws::String>
254 SetClientToken(std::forward<ClientTokenT>(value));
255 return *this;
256 }
258
260
261 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
262 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
263 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
265 m_documentEnrichmentConfigurationHasBeenSet = true;
266 m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value);
267 }
268 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
270 SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value));
271 return *this;
272 }
274
276
280 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
281 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
282 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
284 m_mediaExtractionConfigurationHasBeenSet = true;
285 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
286 }
287 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
289 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
290 return *this;
291 }
293 private:
294 Aws::String m_applicationId;
295
296 Aws::String m_indexId;
297
298 Aws::String m_displayName;
299
300 Aws::Utils::Document m_configuration;
301
302 DataSourceVpcConfiguration m_vpcConfiguration;
303
304 Aws::String m_description;
305
306 Aws::Vector<Tag> m_tags;
307
308 Aws::String m_syncSchedule;
309
310 Aws::String m_roleArn;
311
313
314 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
315
316 MediaExtractionConfiguration m_mediaExtractionConfiguration;
317 bool m_applicationIdHasBeenSet = false;
318 bool m_indexIdHasBeenSet = false;
319 bool m_displayNameHasBeenSet = false;
320 bool m_configurationHasBeenSet = false;
321 bool m_vpcConfigurationHasBeenSet = false;
322 bool m_descriptionHasBeenSet = false;
323 bool m_tagsHasBeenSet = false;
324 bool m_syncScheduleHasBeenSet = false;
325 bool m_roleArnHasBeenSet = false;
326 bool m_clientTokenHasBeenSet = true;
327 bool m_documentEnrichmentConfigurationHasBeenSet = false;
328 bool m_mediaExtractionConfigurationHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace QBusiness
333} // namespace Aws
CreateDataSourceRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithDisplayName(DisplayNameT &&value)
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
CreateDataSourceRequest & WithVpcConfiguration(VpcConfigurationT &&value)
CreateDataSourceRequest & WithDescription(DescriptionT &&value)
AWS_QBUSINESS_API CreateDataSourceRequest()=default
CreateDataSourceRequest & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
CreateDataSourceRequest & WithSyncSchedule(SyncScheduleT &&value)
CreateDataSourceRequest & WithConfiguration(ConfigurationT &&value)
CreateDataSourceRequest & AddTags(TagsT &&value)
CreateDataSourceRequest & WithClientToken(ClientTokenT &&value)
CreateDataSourceRequest & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
CreateDataSourceRequest & WithApplicationId(ApplicationIdT &&value)
CreateDataSourceRequest & WithIndexId(IndexIdT &&value)
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
CreateDataSourceRequest & WithRoleArn(RoleArnT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector