AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace QBusiness
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_QBUSINESS_API CreateDataSourceRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
37
38 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
47 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
48 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
49 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
50 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
51 inline CreateDataSourceRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
52 inline CreateDataSourceRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
53 inline CreateDataSourceRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
55
57
61 inline const Aws::String& GetIndexId() const{ return m_indexId; }
62 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
63 inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
64 inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
65 inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
66 inline CreateDataSourceRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
67 inline CreateDataSourceRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
68 inline CreateDataSourceRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
70
72
75 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
76 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
77 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
78 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
79 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
80 inline CreateDataSourceRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
81 inline CreateDataSourceRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
82 inline CreateDataSourceRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
84
86
106 inline Aws::Utils::DocumentView GetConfiguration() const{ return m_configuration; }
107 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
108 inline void SetConfiguration(const Aws::Utils::Document& value) { m_configurationHasBeenSet = true; m_configuration = value; }
109 inline void SetConfiguration(Aws::Utils::Document&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
111 inline CreateDataSourceRequest& WithConfiguration(Aws::Utils::Document&& value) { SetConfiguration(std::move(value)); return *this;}
113
115
121 inline const DataSourceVpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
122 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
123 inline void SetVpcConfiguration(const DataSourceVpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
124 inline void SetVpcConfiguration(DataSourceVpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
128
130
133 inline const Aws::String& GetDescription() const{ return m_description; }
134 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
136 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
137 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
138 inline CreateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
139 inline CreateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
140 inline CreateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
142
144
150 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline CreateDataSourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 inline CreateDataSourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 inline CreateDataSourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 inline CreateDataSourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159
161
170 inline const Aws::String& GetSyncSchedule() const{ return m_syncSchedule; }
171 inline bool SyncScheduleHasBeenSet() const { return m_syncScheduleHasBeenSet; }
172 inline void SetSyncSchedule(const Aws::String& value) { m_syncScheduleHasBeenSet = true; m_syncSchedule = value; }
173 inline void SetSyncSchedule(Aws::String&& value) { m_syncScheduleHasBeenSet = true; m_syncSchedule = std::move(value); }
174 inline void SetSyncSchedule(const char* value) { m_syncScheduleHasBeenSet = true; m_syncSchedule.assign(value); }
175 inline CreateDataSourceRequest& WithSyncSchedule(const Aws::String& value) { SetSyncSchedule(value); return *this;}
176 inline CreateDataSourceRequest& WithSyncSchedule(Aws::String&& value) { SetSyncSchedule(std::move(value)); return *this;}
177 inline CreateDataSourceRequest& WithSyncSchedule(const char* value) { SetSyncSchedule(value); return *this;}
179
181
185 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
186 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
187 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
188 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
189 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
190 inline CreateDataSourceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
191 inline CreateDataSourceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
192 inline CreateDataSourceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
194
196
201 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
202 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
203 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
204 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
205 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
206 inline CreateDataSourceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
207 inline CreateDataSourceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
208 inline CreateDataSourceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
210
212
213 inline const DocumentEnrichmentConfiguration& GetDocumentEnrichmentConfiguration() const{ return m_documentEnrichmentConfiguration; }
214 inline bool DocumentEnrichmentConfigurationHasBeenSet() const { return m_documentEnrichmentConfigurationHasBeenSet; }
215 inline void SetDocumentEnrichmentConfiguration(const DocumentEnrichmentConfiguration& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = value; }
216 inline void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration&& value) { m_documentEnrichmentConfigurationHasBeenSet = true; m_documentEnrichmentConfiguration = std::move(value); }
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
249 Aws::String m_clientToken;
250 bool m_clientTokenHasBeenSet = false;
251
252 DocumentEnrichmentConfiguration m_documentEnrichmentConfiguration;
253 bool m_documentEnrichmentConfigurationHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace QBusiness
258} // namespace Aws
void SetConfiguration(const Aws::Utils::Document &value)
CreateDataSourceRequest & WithDocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration &&value)
CreateDataSourceRequest & WithRoleArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithSyncSchedule(const char *value)
CreateDataSourceRequest & WithDescription(Aws::String &&value)
CreateDataSourceRequest & WithClientToken(const char *value)
CreateDataSourceRequest & WithDescription(const char *value)
CreateDataSourceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDataSourceRequest & WithApplicationId(const Aws::String &value)
CreateDataSourceRequest & WithRoleArn(const Aws::String &value)
CreateDataSourceRequest & WithDisplayName(const Aws::String &value)
void SetVpcConfiguration(DataSourceVpcConfiguration &&value)
CreateDataSourceRequest & AddTags(const Tag &value)
void SetDocumentEnrichmentConfiguration(DocumentEnrichmentConfiguration &&value)
void SetDocumentEnrichmentConfiguration(const DocumentEnrichmentConfiguration &value)
CreateDataSourceRequest & WithDisplayName(Aws::String &&value)
CreateDataSourceRequest & WithClientToken(const Aws::String &value)
CreateDataSourceRequest & WithDisplayName(const char *value)
void SetConfiguration(Aws::Utils::Document &&value)
CreateDataSourceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataSourceRequest & WithClientToken(Aws::String &&value)
CreateDataSourceRequest & WithVpcConfiguration(const DataSourceVpcConfiguration &value)
CreateDataSourceRequest & WithDocumentEnrichmentConfiguration(const DocumentEnrichmentConfiguration &value)
CreateDataSourceRequest & WithVpcConfiguration(DataSourceVpcConfiguration &&value)
const DataSourceVpcConfiguration & GetVpcConfiguration() const
CreateDataSourceRequest & WithIndexId(Aws::String &&value)
CreateDataSourceRequest & WithApplicationId(Aws::String &&value)
CreateDataSourceRequest & WithRoleArn(const char *value)
CreateDataSourceRequest & WithSyncSchedule(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const DocumentEnrichmentConfiguration & GetDocumentEnrichmentConfiguration() const
CreateDataSourceRequest & WithIndexId(const Aws::String &value)
CreateDataSourceRequest & WithConfiguration(const Aws::Utils::Document &value)
void SetVpcConfiguration(const DataSourceVpcConfiguration &value)
CreateDataSourceRequest & AddTags(Tag &&value)
CreateDataSourceRequest & WithApplicationId(const char *value)
CreateDataSourceRequest & WithDescription(const Aws::String &value)
CreateDataSourceRequest & WithConfiguration(Aws::Utils::Document &&value)
CreateDataSourceRequest & WithIndexId(const char *value)
CreateDataSourceRequest & WithSyncSchedule(Aws::String &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector