AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateDataSourceRequest.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/qbusiness/model/DocumentEnrichmentConfiguration.h>
13#include <aws/qbusiness/model/MediaExtractionConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace QBusiness
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_QBUSINESS_API UpdateDataSourceRequest() = 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 "UpdateDataSource"; }
35
36 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
45 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
46 template<typename ApplicationIdT = Aws::String>
47 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
48 template<typename ApplicationIdT = Aws::String>
49 UpdateDataSourceRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetIndexId() const { return m_indexId; }
57 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
58 template<typename IndexIdT = Aws::String>
59 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
60 template<typename IndexIdT = Aws::String>
61 UpdateDataSourceRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
69 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
70 template<typename DataSourceIdT = Aws::String>
71 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
72 template<typename DataSourceIdT = Aws::String>
73 UpdateDataSourceRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
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>
83 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
84 template<typename DisplayNameT = Aws::String>
85 UpdateDataSourceRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
87
89
90 inline Aws::Utils::DocumentView GetConfiguration() const { return m_configuration; }
91 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
92 template<typename ConfigurationT = Aws::Utils::Document>
93 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
94 template<typename ConfigurationT = Aws::Utils::Document>
95 UpdateDataSourceRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
97
99
100 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
101 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
102 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
103 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
104 template<typename VpcConfigurationT = DataSourceVpcConfiguration>
105 UpdateDataSourceRequest& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template<typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
116 template<typename DescriptionT = Aws::String>
117 UpdateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
119
121
124 inline const Aws::String& GetSyncSchedule() const { return m_syncSchedule; }
125 inline bool SyncScheduleHasBeenSet() const { return m_syncScheduleHasBeenSet; }
126 template<typename SyncScheduleT = Aws::String>
127 void SetSyncSchedule(SyncScheduleT&& value) { m_syncScheduleHasBeenSet = true; m_syncSchedule = std::forward<SyncScheduleT>(value); }
128 template<typename SyncScheduleT = Aws::String>
129 UpdateDataSourceRequest& WithSyncSchedule(SyncScheduleT&& value) { SetSyncSchedule(std::forward<SyncScheduleT>(value)); return *this;}
131
133
137 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
138 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
139 template<typename RoleArnT = Aws::String>
140 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
141 template<typename RoleArnT = Aws::String>
142 UpdateDataSourceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
144
146
147 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const { return m_documentEnrichmentConfiguration; }
148 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
149 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
150 void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = std::forward<DocumentEnrichmentConfigurationT>(value); }
151 template<typename DocumentEnrichmentConfigurationT = DocumentEnrichmentConfiguration>
152 UpdateDataSourceRequest& WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfigurationT&& value) { SetDocumentEnrichmentConfiguration(std::forward<DocumentEnrichmentConfigurationT>(value)); return *this;}
154
156
160 inline const MediaExtractionConfiguration& GetMediaExtractionConfiguration() const { return m_mediaExtractionConfiguration; }
161 inline bool MediaExtractionConfigurationHasBeenSet() const { return m_mediaExtractionConfigurationHasBeenSet; }
162 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
163 void SetMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { m_mediaExtractionConfigurationHasBeenSet = true; m_mediaExtractionConfiguration = std::forward<MediaExtractionConfigurationT>(value); }
164 template<typename MediaExtractionConfigurationT = MediaExtractionConfiguration>
165 UpdateDataSourceRequest& WithMediaExtractionConfiguration(MediaExtractionConfigurationT&& value) { SetMediaExtractionConfiguration(std::forward<MediaExtractionConfigurationT>(value)); return *this;}
167 private:
168
169 Aws::String m_applicationId;
170 bool m_applicationIdHasBeenSet = false;
171
172 Aws::String m_indexId;
173 bool m_indexIdHasBeenSet = false;
174
175 Aws::String m_dataSourceId;
176 bool m_dataSourceIdHasBeenSet = false;
177
178 Aws::String m_displayName;
179 bool m_displayNameHasBeenSet = false;
180
181 Aws::Utils::Document m_configuration;
182 bool m_configurationHasBeenSet = false;
183
184 DataSourceVpcConfiguration m_vpcConfiguration;
185 bool m_vpcConfigurationHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 Aws::String m_syncSchedule;
191 bool m_syncScheduleHasBeenSet = false;
192
193 Aws::String m_roleArn;
194 bool m_roleArnHasBeenSet = false;
195
196 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
197 bool m_documentEnrichmentConfigurationHasBeenSet = false;
198
199 MediaExtractionConfiguration m_mediaExtractionConfiguration;
200 bool m_mediaExtractionConfigurationHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace QBusiness
205} // 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