AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/appsync/AppSyncRequest.h>
8#include <aws/appsync/AppSync_EXPORTS.h>
9#include <aws/appsync/model/DataSourceLevelMetricsConfig.h>
10#include <aws/appsync/model/DataSourceType.h>
11#include <aws/appsync/model/DynamodbDataSourceConfig.h>
12#include <aws/appsync/model/ElasticsearchDataSourceConfig.h>
13#include <aws/appsync/model/EventBridgeDataSourceConfig.h>
14#include <aws/appsync/model/HttpDataSourceConfig.h>
15#include <aws/appsync/model/LambdaDataSourceConfig.h>
16#include <aws/appsync/model/OpenSearchServiceDataSourceConfig.h>
17#include <aws/appsync/model/RelationalDatabaseDataSourceConfig.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19
20#include <utility>
21
22namespace Aws {
23namespace AppSync {
24namespace Model {
25
29 public:
30 AWS_APPSYNC_API UpdateDataSourceRequest() = default;
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 "UpdateDataSource"; }
37
38 AWS_APPSYNC_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetApiId() const { return m_apiId; }
45 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
46 template <typename ApiIdT = Aws::String>
47 void SetApiId(ApiIdT&& value) {
48 m_apiIdHasBeenSet = true;
49 m_apiId = std::forward<ApiIdT>(value);
50 }
51 template <typename ApiIdT = Aws::String>
53 SetApiId(std::forward<ApiIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline DataSourceType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(DataSourceType value) {
101 m_typeHasBeenSet = true;
102 m_type = value;
103 }
105 SetType(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
115 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
116 template <typename ServiceRoleArnT = Aws::String>
117 void SetServiceRoleArn(ServiceRoleArnT&& value) {
118 m_serviceRoleArnHasBeenSet = true;
119 m_serviceRoleArn = std::forward<ServiceRoleArnT>(value);
120 }
121 template <typename ServiceRoleArnT = Aws::String>
122 UpdateDataSourceRequest& WithServiceRoleArn(ServiceRoleArnT&& value) {
123 SetServiceRoleArn(std::forward<ServiceRoleArnT>(value));
124 return *this;
125 }
127
129
132 inline const DynamodbDataSourceConfig& GetDynamodbConfig() const { return m_dynamodbConfig; }
133 inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; }
134 template <typename DynamodbConfigT = DynamodbDataSourceConfig>
135 void SetDynamodbConfig(DynamodbConfigT&& value) {
136 m_dynamodbConfigHasBeenSet = true;
137 m_dynamodbConfig = std::forward<DynamodbConfigT>(value);
138 }
139 template <typename DynamodbConfigT = DynamodbDataSourceConfig>
140 UpdateDataSourceRequest& WithDynamodbConfig(DynamodbConfigT&& value) {
141 SetDynamodbConfig(std::forward<DynamodbConfigT>(value));
142 return *this;
143 }
145
147
150 inline const LambdaDataSourceConfig& GetLambdaConfig() const { return m_lambdaConfig; }
151 inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; }
152 template <typename LambdaConfigT = LambdaDataSourceConfig>
153 void SetLambdaConfig(LambdaConfigT&& value) {
154 m_lambdaConfigHasBeenSet = true;
155 m_lambdaConfig = std::forward<LambdaConfigT>(value);
156 }
157 template <typename LambdaConfigT = LambdaDataSourceConfig>
159 SetLambdaConfig(std::forward<LambdaConfigT>(value));
160 return *this;
161 }
163
165
171 inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const { return m_elasticsearchConfig; }
172 inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; }
173 template <typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
174 void SetElasticsearchConfig(ElasticsearchConfigT&& value) {
175 m_elasticsearchConfigHasBeenSet = true;
176 m_elasticsearchConfig = std::forward<ElasticsearchConfigT>(value);
177 }
178 template <typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
179 UpdateDataSourceRequest& WithElasticsearchConfig(ElasticsearchConfigT&& value) {
180 SetElasticsearchConfig(std::forward<ElasticsearchConfigT>(value));
181 return *this;
182 }
184
186
189 inline const OpenSearchServiceDataSourceConfig& GetOpenSearchServiceConfig() const { return m_openSearchServiceConfig; }
190 inline bool OpenSearchServiceConfigHasBeenSet() const { return m_openSearchServiceConfigHasBeenSet; }
191 template <typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
192 void SetOpenSearchServiceConfig(OpenSearchServiceConfigT&& value) {
193 m_openSearchServiceConfigHasBeenSet = true;
194 m_openSearchServiceConfig = std::forward<OpenSearchServiceConfigT>(value);
195 }
196 template <typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
197 UpdateDataSourceRequest& WithOpenSearchServiceConfig(OpenSearchServiceConfigT&& value) {
198 SetOpenSearchServiceConfig(std::forward<OpenSearchServiceConfigT>(value));
199 return *this;
200 }
202
204
207 inline const HttpDataSourceConfig& GetHttpConfig() const { return m_httpConfig; }
208 inline bool HttpConfigHasBeenSet() const { return m_httpConfigHasBeenSet; }
209 template <typename HttpConfigT = HttpDataSourceConfig>
210 void SetHttpConfig(HttpConfigT&& value) {
211 m_httpConfigHasBeenSet = true;
212 m_httpConfig = std::forward<HttpConfigT>(value);
213 }
214 template <typename HttpConfigT = HttpDataSourceConfig>
216 SetHttpConfig(std::forward<HttpConfigT>(value));
217 return *this;
218 }
220
222
225 inline const RelationalDatabaseDataSourceConfig& GetRelationalDatabaseConfig() const { return m_relationalDatabaseConfig; }
226 inline bool RelationalDatabaseConfigHasBeenSet() const { return m_relationalDatabaseConfigHasBeenSet; }
227 template <typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
228 void SetRelationalDatabaseConfig(RelationalDatabaseConfigT&& value) {
229 m_relationalDatabaseConfigHasBeenSet = true;
230 m_relationalDatabaseConfig = std::forward<RelationalDatabaseConfigT>(value);
231 }
232 template <typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
233 UpdateDataSourceRequest& WithRelationalDatabaseConfig(RelationalDatabaseConfigT&& value) {
234 SetRelationalDatabaseConfig(std::forward<RelationalDatabaseConfigT>(value));
235 return *this;
236 }
238
240
243 inline const EventBridgeDataSourceConfig& GetEventBridgeConfig() const { return m_eventBridgeConfig; }
244 inline bool EventBridgeConfigHasBeenSet() const { return m_eventBridgeConfigHasBeenSet; }
245 template <typename EventBridgeConfigT = EventBridgeDataSourceConfig>
246 void SetEventBridgeConfig(EventBridgeConfigT&& value) {
247 m_eventBridgeConfigHasBeenSet = true;
248 m_eventBridgeConfig = std::forward<EventBridgeConfigT>(value);
249 }
250 template <typename EventBridgeConfigT = EventBridgeDataSourceConfig>
251 UpdateDataSourceRequest& WithEventBridgeConfig(EventBridgeConfigT&& value) {
252 SetEventBridgeConfig(std::forward<EventBridgeConfigT>(value));
253 return *this;
254 }
256
258
269 inline DataSourceLevelMetricsConfig GetMetricsConfig() const { return m_metricsConfig; }
270 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
272 m_metricsConfigHasBeenSet = true;
273 m_metricsConfig = value;
274 }
276 SetMetricsConfig(value);
277 return *this;
278 }
280 private:
281 Aws::String m_apiId;
282
283 Aws::String m_name;
284
285 Aws::String m_description;
286
288
289 Aws::String m_serviceRoleArn;
290
291 DynamodbDataSourceConfig m_dynamodbConfig;
292
293 LambdaDataSourceConfig m_lambdaConfig;
294
295 ElasticsearchDataSourceConfig m_elasticsearchConfig;
296
297 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
298
299 HttpDataSourceConfig m_httpConfig;
300
301 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
302
303 EventBridgeDataSourceConfig m_eventBridgeConfig;
304
306 bool m_apiIdHasBeenSet = false;
307 bool m_nameHasBeenSet = false;
308 bool m_descriptionHasBeenSet = false;
309 bool m_typeHasBeenSet = false;
310 bool m_serviceRoleArnHasBeenSet = false;
311 bool m_dynamodbConfigHasBeenSet = false;
312 bool m_lambdaConfigHasBeenSet = false;
313 bool m_elasticsearchConfigHasBeenSet = false;
314 bool m_openSearchServiceConfigHasBeenSet = false;
315 bool m_httpConfigHasBeenSet = false;
316 bool m_relationalDatabaseConfigHasBeenSet = false;
317 bool m_eventBridgeConfigHasBeenSet = false;
318 bool m_metricsConfigHasBeenSet = false;
319};
320
321} // namespace Model
322} // namespace AppSync
323} // namespace Aws
void SetOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
DataSourceLevelMetricsConfig GetMetricsConfig() const
UpdateDataSourceRequest & WithEventBridgeConfig(EventBridgeConfigT &&value)
UpdateDataSourceRequest & WithOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
UpdateDataSourceRequest & WithHttpConfig(HttpConfigT &&value)
UpdateDataSourceRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
void SetElasticsearchConfig(ElasticsearchConfigT &&value)
virtual const char * GetServiceRequestName() const override
const HttpDataSourceConfig & GetHttpConfig() const
UpdateDataSourceRequest & WithMetricsConfig(DataSourceLevelMetricsConfig value)
UpdateDataSourceRequest & WithElasticsearchConfig(ElasticsearchConfigT &&value)
UpdateDataSourceRequest & WithDynamodbConfig(DynamodbConfigT &&value)
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
UpdateDataSourceRequest & WithName(NameT &&value)
UpdateDataSourceRequest & WithApiId(ApiIdT &&value)
UpdateDataSourceRequest & WithLambdaConfig(LambdaConfigT &&value)
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
void SetRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
const DynamodbDataSourceConfig & GetDynamodbConfig() const
UpdateDataSourceRequest & WithType(DataSourceType value)
void SetEventBridgeConfig(EventBridgeConfigT &&value)
AWS_APPSYNC_API UpdateDataSourceRequest()=default
void SetMetricsConfig(DataSourceLevelMetricsConfig value)
const LambdaDataSourceConfig & GetLambdaConfig() const
UpdateDataSourceRequest & WithRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String