AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataSource.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/DataSourceType.h>
10#include <aws/appsync/model/DynamodbDataSourceConfig.h>
11#include <aws/appsync/model/LambdaDataSourceConfig.h>
12#include <aws/appsync/model/ElasticsearchDataSourceConfig.h>
13#include <aws/appsync/model/OpenSearchServiceDataSourceConfig.h>
14#include <aws/appsync/model/HttpDataSourceConfig.h>
15#include <aws/appsync/model/RelationalDatabaseDataSourceConfig.h>
16#include <aws/appsync/model/EventBridgeDataSourceConfig.h>
17#include <aws/appsync/model/DataSourceLevelMetricsConfig.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace AppSync
31{
32namespace Model
33{
34
41 {
42 public:
43 AWS_APPSYNC_API DataSource();
44 AWS_APPSYNC_API DataSource(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPSYNC_API DataSource& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetDataSourceArn() const{ return m_dataSourceArn; }
54 inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; }
55 inline void SetDataSourceArn(const Aws::String& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = value; }
56 inline void SetDataSourceArn(Aws::String&& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = std::move(value); }
57 inline void SetDataSourceArn(const char* value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn.assign(value); }
58 inline DataSource& WithDataSourceArn(const Aws::String& value) { SetDataSourceArn(value); return *this;}
59 inline DataSource& WithDataSourceArn(Aws::String&& value) { SetDataSourceArn(std::move(value)); return *this;}
60 inline DataSource& WithDataSourceArn(const char* value) { SetDataSourceArn(value); return *this;}
62
64
67 inline const Aws::String& GetName() const{ return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
70 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;}
73 inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 inline DataSource& WithName(const char* value) { SetName(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const{ return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
84 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
85 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
86 inline DataSource& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline DataSource& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline DataSource& WithDescription(const char* value) { SetDescription(value); return *this;}
90
92
107 inline const DataSourceType& GetType() const{ return m_type; }
108 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
109 inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
110 inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 inline DataSource& WithType(const DataSourceType& value) { SetType(value); return *this;}
112 inline DataSource& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;}
114
116
121 inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
122 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
123 inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
124 inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); }
125 inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
126 inline DataSource& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;}
127 inline DataSource& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;}
128 inline DataSource& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
130
132
135 inline const DynamodbDataSourceConfig& GetDynamodbConfig() const{ return m_dynamodbConfig; }
136 inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; }
137 inline void SetDynamodbConfig(const DynamodbDataSourceConfig& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = value; }
138 inline void SetDynamodbConfig(DynamodbDataSourceConfig&& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = std::move(value); }
139 inline DataSource& WithDynamodbConfig(const DynamodbDataSourceConfig& value) { SetDynamodbConfig(value); return *this;}
140 inline DataSource& WithDynamodbConfig(DynamodbDataSourceConfig&& value) { SetDynamodbConfig(std::move(value)); return *this;}
142
144
147 inline const LambdaDataSourceConfig& GetLambdaConfig() const{ return m_lambdaConfig; }
148 inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; }
149 inline void SetLambdaConfig(const LambdaDataSourceConfig& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = value; }
150 inline void SetLambdaConfig(LambdaDataSourceConfig&& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = std::move(value); }
151 inline DataSource& WithLambdaConfig(const LambdaDataSourceConfig& value) { SetLambdaConfig(value); return *this;}
152 inline DataSource& WithLambdaConfig(LambdaDataSourceConfig&& value) { SetLambdaConfig(std::move(value)); return *this;}
154
156
159 inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const{ return m_elasticsearchConfig; }
160 inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; }
161 inline void SetElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = value; }
162 inline void SetElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = std::move(value); }
166
168
171 inline const OpenSearchServiceDataSourceConfig& GetOpenSearchServiceConfig() const{ return m_openSearchServiceConfig; }
172 inline bool OpenSearchServiceConfigHasBeenSet() const { return m_openSearchServiceConfigHasBeenSet; }
173 inline void SetOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig& value) { m_openSearchServiceConfigHasBeenSet = true; m_openSearchServiceConfig = value; }
174 inline void SetOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig&& value) { m_openSearchServiceConfigHasBeenSet = true; m_openSearchServiceConfig = std::move(value); }
178
180
183 inline const HttpDataSourceConfig& GetHttpConfig() const{ return m_httpConfig; }
184 inline bool HttpConfigHasBeenSet() const { return m_httpConfigHasBeenSet; }
185 inline void SetHttpConfig(const HttpDataSourceConfig& value) { m_httpConfigHasBeenSet = true; m_httpConfig = value; }
186 inline void SetHttpConfig(HttpDataSourceConfig&& value) { m_httpConfigHasBeenSet = true; m_httpConfig = std::move(value); }
187 inline DataSource& WithHttpConfig(const HttpDataSourceConfig& value) { SetHttpConfig(value); return *this;}
188 inline DataSource& WithHttpConfig(HttpDataSourceConfig&& value) { SetHttpConfig(std::move(value)); return *this;}
190
192
195 inline const RelationalDatabaseDataSourceConfig& GetRelationalDatabaseConfig() const{ return m_relationalDatabaseConfig; }
196 inline bool RelationalDatabaseConfigHasBeenSet() const { return m_relationalDatabaseConfigHasBeenSet; }
197 inline void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = value; }
198 inline void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = std::move(value); }
202
204
207 inline const EventBridgeDataSourceConfig& GetEventBridgeConfig() const{ return m_eventBridgeConfig; }
208 inline bool EventBridgeConfigHasBeenSet() const { return m_eventBridgeConfigHasBeenSet; }
209 inline void SetEventBridgeConfig(const EventBridgeDataSourceConfig& value) { m_eventBridgeConfigHasBeenSet = true; m_eventBridgeConfig = value; }
210 inline void SetEventBridgeConfig(EventBridgeDataSourceConfig&& value) { m_eventBridgeConfigHasBeenSet = true; m_eventBridgeConfig = std::move(value); }
212 inline DataSource& WithEventBridgeConfig(EventBridgeDataSourceConfig&& value) { SetEventBridgeConfig(std::move(value)); return *this;}
214
216
227 inline const DataSourceLevelMetricsConfig& GetMetricsConfig() const{ return m_metricsConfig; }
228 inline bool MetricsConfigHasBeenSet() const { return m_metricsConfigHasBeenSet; }
229 inline void SetMetricsConfig(const DataSourceLevelMetricsConfig& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = value; }
230 inline void SetMetricsConfig(DataSourceLevelMetricsConfig&& value) { m_metricsConfigHasBeenSet = true; m_metricsConfig = std::move(value); }
231 inline DataSource& WithMetricsConfig(const DataSourceLevelMetricsConfig& value) { SetMetricsConfig(value); return *this;}
232 inline DataSource& WithMetricsConfig(DataSourceLevelMetricsConfig&& value) { SetMetricsConfig(std::move(value)); return *this;}
234 private:
235
236 Aws::String m_dataSourceArn;
237 bool m_dataSourceArnHasBeenSet = false;
238
239 Aws::String m_name;
240 bool m_nameHasBeenSet = false;
241
242 Aws::String m_description;
243 bool m_descriptionHasBeenSet = false;
244
245 DataSourceType m_type;
246 bool m_typeHasBeenSet = false;
247
248 Aws::String m_serviceRoleArn;
249 bool m_serviceRoleArnHasBeenSet = false;
250
251 DynamodbDataSourceConfig m_dynamodbConfig;
252 bool m_dynamodbConfigHasBeenSet = false;
253
254 LambdaDataSourceConfig m_lambdaConfig;
255 bool m_lambdaConfigHasBeenSet = false;
256
257 ElasticsearchDataSourceConfig m_elasticsearchConfig;
258 bool m_elasticsearchConfigHasBeenSet = false;
259
260 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
261 bool m_openSearchServiceConfigHasBeenSet = false;
262
263 HttpDataSourceConfig m_httpConfig;
264 bool m_httpConfigHasBeenSet = false;
265
266 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
267 bool m_relationalDatabaseConfigHasBeenSet = false;
268
269 EventBridgeDataSourceConfig m_eventBridgeConfig;
270 bool m_eventBridgeConfigHasBeenSet = false;
271
272 DataSourceLevelMetricsConfig m_metricsConfig;
273 bool m_metricsConfigHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace AppSync
278} // namespace Aws
void SetMetricsConfig(const DataSourceLevelMetricsConfig &value)
Definition DataSource.h:229
void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
Definition DataSource.h:198
DataSource & WithOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
Definition DataSource.h:175
DataSource & WithRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
Definition DataSource.h:199
void SetServiceRoleArn(const Aws::String &value)
Definition DataSource.h:123
DataSource & WithType(const DataSourceType &value)
Definition DataSource.h:111
const LambdaDataSourceConfig & GetLambdaConfig() const
Definition DataSource.h:147
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
Definition DataSource.h:159
DataSource & WithLambdaConfig(LambdaDataSourceConfig &&value)
Definition DataSource.h:152
DataSource & WithDataSourceArn(const char *value)
Definition DataSource.h:60
void SetDynamodbConfig(DynamodbDataSourceConfig &&value)
Definition DataSource.h:138
DataSource & WithMetricsConfig(const DataSourceLevelMetricsConfig &value)
Definition DataSource.h:231
bool RelationalDatabaseConfigHasBeenSet() const
Definition DataSource.h:196
DataSource & WithHttpConfig(HttpDataSourceConfig &&value)
Definition DataSource.h:188
const DynamodbDataSourceConfig & GetDynamodbConfig() const
Definition DataSource.h:135
DataSource & WithDataSourceArn(const Aws::String &value)
Definition DataSource.h:58
void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
Definition DataSource.h:197
const Aws::String & GetDescription() const
Definition DataSource.h:81
DataSource & WithElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
Definition DataSource.h:163
DataSource & WithServiceRoleArn(const char *value)
Definition DataSource.h:128
void SetHttpConfig(HttpDataSourceConfig &&value)
Definition DataSource.h:186
const DataSourceLevelMetricsConfig & GetMetricsConfig() const
Definition DataSource.h:227
bool ElasticsearchConfigHasBeenSet() const
Definition DataSource.h:160
void SetElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
Definition DataSource.h:161
void SetEventBridgeConfig(EventBridgeDataSourceConfig &&value)
Definition DataSource.h:210
void SetDynamodbConfig(const DynamodbDataSourceConfig &value)
Definition DataSource.h:137
DataSource & WithOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
Definition DataSource.h:176
void SetName(const Aws::String &value)
Definition DataSource.h:69
DataSource & WithMetricsConfig(DataSourceLevelMetricsConfig &&value)
Definition DataSource.h:232
void SetLambdaConfig(LambdaDataSourceConfig &&value)
Definition DataSource.h:150
AWS_APPSYNC_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithServiceRoleArn(Aws::String &&value)
Definition DataSource.h:127
bool EventBridgeConfigHasBeenSet() const
Definition DataSource.h:208
DataSource & WithElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
Definition DataSource.h:164
DataSource & WithEventBridgeConfig(const EventBridgeDataSourceConfig &value)
Definition DataSource.h:211
void SetHttpConfig(const HttpDataSourceConfig &value)
Definition DataSource.h:185
void SetServiceRoleArn(Aws::String &&value)
Definition DataSource.h:124
AWS_APPSYNC_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDataSourceArn() const
Definition DataSource.h:53
DataSource & WithLambdaConfig(const LambdaDataSourceConfig &value)
Definition DataSource.h:151
void SetDescription(const char *value)
Definition DataSource.h:85
void SetLambdaConfig(const LambdaDataSourceConfig &value)
Definition DataSource.h:149
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
Definition DataSource.h:171
DataSource & WithName(const char *value)
Definition DataSource.h:74
DataSource & WithDescription(Aws::String &&value)
Definition DataSource.h:87
DataSource & WithDataSourceArn(Aws::String &&value)
Definition DataSource.h:59
DataSource & WithDescription(const Aws::String &value)
Definition DataSource.h:86
DataSource & WithHttpConfig(const HttpDataSourceConfig &value)
Definition DataSource.h:187
DataSource & WithName(Aws::String &&value)
Definition DataSource.h:73
const DataSourceType & GetType() const
Definition DataSource.h:107
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
Definition DataSource.h:174
void SetDataSourceArn(Aws::String &&value)
Definition DataSource.h:56
const Aws::String & GetServiceRoleArn() const
Definition DataSource.h:121
bool OpenSearchServiceConfigHasBeenSet() const
Definition DataSource.h:172
void SetDescription(Aws::String &&value)
Definition DataSource.h:84
void SetType(DataSourceType &&value)
Definition DataSource.h:110
DataSource & WithName(const Aws::String &value)
Definition DataSource.h:72
void SetName(const char *value)
Definition DataSource.h:71
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
Definition DataSource.h:207
void SetMetricsConfig(DataSourceLevelMetricsConfig &&value)
Definition DataSource.h:230
DataSource & WithRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
Definition DataSource.h:200
DataSource & WithEventBridgeConfig(EventBridgeDataSourceConfig &&value)
Definition DataSource.h:212
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
Definition DataSource.h:195
const Aws::String & GetName() const
Definition DataSource.h:67
void SetType(const DataSourceType &value)
Definition DataSource.h:109
void SetEventBridgeConfig(const EventBridgeDataSourceConfig &value)
Definition DataSource.h:209
void SetDataSourceArn(const char *value)
Definition DataSource.h:57
DataSource & WithServiceRoleArn(const Aws::String &value)
Definition DataSource.h:126
DataSource & WithDescription(const char *value)
Definition DataSource.h:88
void SetElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
Definition DataSource.h:162
DataSource & WithDynamodbConfig(DynamodbDataSourceConfig &&value)
Definition DataSource.h:140
DataSource & WithType(DataSourceType &&value)
Definition DataSource.h:112
void SetDescription(const Aws::String &value)
Definition DataSource.h:83
DataSource & WithDynamodbConfig(const DynamodbDataSourceConfig &value)
Definition DataSource.h:139
void SetName(Aws::String &&value)
Definition DataSource.h:70
void SetServiceRoleArn(const char *value)
Definition DataSource.h:125
void SetDataSourceArn(const Aws::String &value)
Definition DataSource.h:55
const HttpDataSourceConfig & GetHttpConfig() const
Definition DataSource.h:183
void SetOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
Definition DataSource.h:173
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue