AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/QBusinessRequest.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/DataSourceVpcConfiguration.h>
12#include <aws/qbusiness/model/DocumentEnrichmentConfiguration.h>
13#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QBusiness {
19namespace Model {
20
24 public:
25 AWS_QBUSINESS_API UpdateDataSourceRequest() = 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 "UpdateDataSource"; }
32
33 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
41 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
42 template <typename ApplicationIdT = Aws::String>
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIndexId() const { return m_indexId; }
59 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
60 template <typename IndexIdT = Aws::String>
61 void SetIndexId(IndexIdT&& value) {
62 m_indexIdHasBeenSet = true;
63 m_indexId = std::forward<IndexIdT>(value);
64 }
65 template <typename IndexIdT = Aws::String>
67 SetIndexId(std::forward<IndexIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
77 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
78 template <typename DataSourceIdT = Aws::String>
80 m_dataSourceIdHasBeenSet = true;
81 m_dataSourceId = std::forward<DataSourceIdT>(value);
82 }
83 template <typename DataSourceIdT = Aws::String>
85 SetDataSourceId(std::forward<DataSourceIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDisplayName() const { return m_displayName; }
95 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
96 template <typename DisplayNameT = Aws::String>
98 m_displayNameHasBeenSet = true;
99 m_displayName = std::forward<DisplayNameT>(value);
100 }
101 template <typename DisplayNameT = Aws::String>
103 SetDisplayName(std::forward<DisplayNameT>(value));
104 return *this;
105 }
107
109
110 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
111 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
112 template <typename ConfigurationT = Aws::Utils::Document>
114 m_configurationHasBeenSet = true;
115 m_configuration = std::forward<ConfigurationT>(value);
116 }
117 template <typename ConfigurationT = Aws::Utils::Document>
119 SetConfiguration(std::forward<ConfigurationT>(value));
120 return *this;
121 }
123
125
126 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
127 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
128 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
130 m_vpcConfigurationHasBeenSet = true;
131 m_vpcConfiguration = std::forward<VpcConfigurationT>(value);
132 }
133 template <typename VpcConfigurationT = DataSourceVpcConfiguration>
135 SetVpcConfiguration(std::forward<VpcConfigurationT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetDescription() const { return m_description; }
145 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
146 template <typename DescriptionT = Aws::String>
148 m_descriptionHasBeenSet = true;
149 m_description = std::forward<DescriptionT>(value);
150 }
151 template <typename DescriptionT = Aws::String>
153 SetDescription(std::forward<DescriptionT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetSyncSchedule() const { return m_syncSchedule; }
163 inline bool SyncScheduleHasBeenSet() const { return m_syncScheduleHasBeenSet; }
164 template <typename SyncScheduleT = Aws::String>
166 m_syncScheduleHasBeenSet = true;
167 m_syncSchedule = std::forward<SyncScheduleT>(value);
168 }
169 template <typename SyncScheduleT = Aws::String>
171 SetSyncSchedule(std::forward<SyncScheduleT>(value));
172 return *this;
173 }
175
177
181 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
182 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
183 template <typename RoleArnT = Aws::String>
184 void SetRoleArn(RoleArnT&& value) {
185 m_roleArnHasBeenSet = true;
186 m_roleArn = std::forward<RoleArnT>(value);
187 }
188 template <typename RoleArnT = Aws::String>
190 SetRoleArn(std::forward<RoleArnT>(value));
191 return *this;
192 }
194
196
197 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
198 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
199 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
201 m_documentEnrichmentConfigurationHasBeenSet = true;
202 m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value);
203 }
204 template <typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
206 SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value));
207 return *this;
208 }
210
212
216 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
217 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
218 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
220 m_mediaExtractionConfigurationHasBeenSet = true;
221 m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value);
222 }
223 template <typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
225 SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_applicationId;
231
232 Aws::String m_indexId;
233
234 Aws::String m_dataSourceId;
235
236 Aws::String m_displayName;
237
238 Aws::Utils::Document m_configuration;
239
240 DataSourceVpcConfiguration m_vpcConfiguration;
241
242 Aws::String m_description;
243
244 Aws::String m_syncSchedule;
245
246 Aws::String m_roleArn;
247
248 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
249
250 MediaExtractionConfiguration m_mediaExtractionConfiguration;
251 bool m_applicationIdHasBeenSet = false;
252 bool m_indexIdHasBeenSet = false;
253 bool m_dataSourceIdHasBeenSet = false;
254 bool m_displayNameHasBeenSet = false;
255 bool m_configurationHasBeenSet = false;
256 bool m_vpcConfigurationHasBeenSet = false;
257 bool m_descriptionHasBeenSet = false;
258 bool m_syncScheduleHasBeenSet = false;
259 bool m_roleArnHasBeenSet = false;
260 bool m_documentEnrichmentConfigurationHasBeenSet = false;
261 bool m_mediaExtractionConfigurationHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace QBusiness
266} // namespace Aws
UpdateDataSourceRequest & WithConfiguration(ConfigurationT &&value)
UpdateDataSourceRequest & WithSyncSchedule(SyncScheduleT &&value)
const MediaExtractionConfiguration & GetMediaExtractionConfiguration() const
virtual const char * GetServiceRequestName() const override
AWS_QBUSINESS_API Aws::String SerializePayload() const override
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
UpdateDataSourceRequest & WithMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
UpdateDataSourceRequest & WithDisplayName(DisplayNameT &&value)
UpdateDataSourceRequest & WithVpcConfiguration(VpcConfigurationT &&value)
void SetMediaExtractionConfiguration(MediaExtractionConfigurationT &&value)
UpdateDataSourceRequest & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT &&value)
UpdateDataSourceRequest & WithApplicationId(ApplicationIdT &&value)
UpdateDataSourceRequest & WithDataSourceId(DataSourceIdT &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
UpdateDataSourceRequest & WithIndexId(IndexIdT &&value)
AWS_QBUSINESS_API UpdateDataSourceRequest()=default
UpdateDataSourceRequest & WithRoleArn(RoleArnT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String