AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Document.h>
11#include <aws/qbusiness/model/DataSourceVpcConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
14#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
15#include <aws/qbusiness/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace QBusiness
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_QBUSINESS_API CreateDataSourceRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
38
39 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
48 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
49 template<typename ApplicationIdT = Aws::String>
50 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
51 template<typename ApplicationIdT = Aws::String>
52 CreateDataSourceRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
54
56
60 inline const Aws::String& GetIndexId() const { return m_indexId; }
61 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
62 template<typename IndexIdT = Aws::String>
63 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
64 template<typename IndexIdT = Aws::String>
65 CreateDataSourceRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDisplayName() const { return m_displayName; }
73 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
74 template<typename DisplayNameT = Aws::String>
75 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
76 template<typename DisplayNameT = Aws::String>
77 CreateDataSourceRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
79
81
101 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
102 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
103 template<typename ConfigurationT = Aws::Utils::Document>
104 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
105 template<typename ConfigurationT = Aws::Utils::Document>
106 CreateDataSourceRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
108
110
116 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
117 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
118 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
119 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
120 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
121 CreateDataSourceRequest& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
123
125
128 inline const Aws::String& GetDescription() const { return m_description; }
129 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 template<typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
132 template<typename DescriptionT = Aws::String>
133 CreateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
135
137
143 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Vector<Tag>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Vector<Tag>>
148 CreateDataSourceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsT = Tag>
150 CreateDataSourceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
152
154
163 inline const Aws::String& GetSyncSchedule() const { return m_syncSchedule; }
164 inline bool SyncScheduleHasBeenSet() const { return m_syncScheduleHasBeenSet; }
165 template<typename SyncScheduleT = Aws::String>
166 void SetSyncSchedule(SyncScheduleT&& value) { m_syncScheduleHasBeenSet = true; m_syncSchedule = std::forward<SyncScheduleT>(value); }
167 template<typename SyncScheduleT = Aws::String>
168 CreateDataSourceRequest& WithSyncSchedule(SyncScheduleT&& value) { SetSyncSchedule(std::forward<SyncScheduleT>(value)); return *this;}
170
172
176 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
177 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
178 template<typename RoleArnT = Aws::String>
179 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
180 template<typename RoleArnT = Aws::String>
181 CreateDataSourceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
183
185
190 inline const Aws::String& GetClientToken() const { return m_clientToken; }
191 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
192 template<typename ClientTokenT = Aws::String>
193 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
194 template<typename ClientTokenT = Aws::String>
195 CreateDataSourceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
197
199
200 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
201 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
202 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
203 void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value); }
204 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
205 CreateDataSourceRequest& WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value)); return *this;}
207
209
213 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
214 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
215 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
216 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { m_mediaExtractionConfigurationHasBeenSet = true; m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value); }
217 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
218 CreateDataSourceRequest& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value)); return *this;}
220 private:
221
222 Aws::String m_applicationId;
223 bool m_applicationIdHasBeenSet = false;
224
225 Aws::String m_indexId;
226 bool m_indexIdHasBeenSet = false;
227
228 Aws::String m_displayName;
229 bool m_displayNameHasBeenSet = false;
230
231 Aws::Utils::Document m_configuration;
232 bool m_configurationHasBeenSet = false;
233
234 DataSourceVpcConfiguration m_vpcConfiguration;
235 bool m_vpcConfigurationHasBeenSet = false;
236
237 Aws::String m_description;
238 bool m_descriptionHasBeenSet = false;
239
240 Aws::Vector<Tag> m_tags;
241 bool m_tagsHasBeenSet = false;
242
243 Aws::String m_syncSchedule;
244 bool m_syncScheduleHasBeenSet = false;
245
246 Aws::String m_roleArn;
247 bool m_roleArnHasBeenSet = false;
248
250 bool m_clientTokenHasBeenSet = true;
251
252 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
253 bool m_documentEnrichmentConfigurationHasBeenSet = false;
254
255 MediaExtractionConfiguration m_mediaExtractionConfiguration;
256 bool m_mediaExtractionConfigurationHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace QBusiness
261} // 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