7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/DataSourceLevelMetricsConfig.h>
9#include <aws/appsync/model/DataSourceType.h>
10#include <aws/appsync/model/DynamodbDataSourceConfig.h>
11#include <aws/appsync/model/ElasticsearchDataSourceConfig.h>
12#include <aws/appsync/model/EventBridgeDataSourceConfig.h>
13#include <aws/appsync/model/HttpDataSourceConfig.h>
14#include <aws/appsync/model/LambdaDataSourceConfig.h>
15#include <aws/appsync/model/OpenSearchServiceDataSourceConfig.h>
16#include <aws/appsync/model/RelationalDatabaseDataSourceConfig.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
49 template <
typename DataSourceArnT = Aws::String>
51 m_dataSourceArnHasBeenSet =
true;
52 m_dataSourceArn = std::forward<DataSourceArnT>(value);
54 template <
typename DataSourceArnT = Aws::String>
67 template <
typename NameT = Aws::String>
69 m_nameHasBeenSet =
true;
70 m_name = std::forward<NameT>(value);
72 template <
typename NameT = Aws::String>
74 SetName(std::forward<NameT>(value));
85 template <
typename DescriptionT = Aws::String>
87 m_descriptionHasBeenSet =
true;
88 m_description = std::forward<DescriptionT>(value);
90 template <
typename DescriptionT = Aws::String>
118 m_typeHasBeenSet =
true;
135 template <
typename ServiceRoleArnT = Aws::String>
137 m_serviceRoleArnHasBeenSet =
true;
138 m_serviceRoleArn = std::forward<ServiceRoleArnT>(value);
140 template <
typename ServiceRoleArnT = Aws::String>
153 template <
typename DynamodbConfigT = DynamodbDataSourceConfig>
155 m_dynamodbConfigHasBeenSet =
true;
156 m_dynamodbConfig = std::forward<DynamodbConfigT>(value);
158 template <
typename DynamodbConfigT = DynamodbDataSourceConfig>
171 template <
typename LambdaConfigT = LambdaDataSourceConfig>
173 m_lambdaConfigHasBeenSet =
true;
174 m_lambdaConfig = std::forward<LambdaConfigT>(value);
176 template <
typename LambdaConfigT = LambdaDataSourceConfig>
189 template <
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
191 m_elasticsearchConfigHasBeenSet =
true;
192 m_elasticsearchConfig = std::forward<ElasticsearchConfigT>(value);
194 template <
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
207 template <
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
209 m_openSearchServiceConfigHasBeenSet =
true;
210 m_openSearchServiceConfig = std::forward<OpenSearchServiceConfigT>(value);
212 template <
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
225 template <
typename HttpConfigT = HttpDataSourceConfig>
227 m_httpConfigHasBeenSet =
true;
228 m_httpConfig = std::forward<HttpConfigT>(value);
230 template <
typename HttpConfigT = HttpDataSourceConfig>
243 template <
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
245 m_relationalDatabaseConfigHasBeenSet =
true;
246 m_relationalDatabaseConfig = std::forward<RelationalDatabaseConfigT>(value);
248 template <
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
261 template <
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
263 m_eventBridgeConfigHasBeenSet =
true;
264 m_eventBridgeConfig = std::forward<EventBridgeConfigT>(value);
266 template <
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
288 m_metricsConfigHasBeenSet =
true;
289 m_metricsConfig = value;
307 DynamodbDataSourceConfig m_dynamodbConfig;
309 LambdaDataSourceConfig m_lambdaConfig;
311 ElasticsearchDataSourceConfig m_elasticsearchConfig;
313 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
315 HttpDataSourceConfig m_httpConfig;
317 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
319 EventBridgeDataSourceConfig m_eventBridgeConfig;
322 bool m_dataSourceArnHasBeenSet =
false;
323 bool m_nameHasBeenSet =
false;
324 bool m_descriptionHasBeenSet =
false;
325 bool m_typeHasBeenSet =
false;
326 bool m_serviceRoleArnHasBeenSet =
false;
327 bool m_dynamodbConfigHasBeenSet =
false;
328 bool m_lambdaConfigHasBeenSet =
false;
329 bool m_elasticsearchConfigHasBeenSet =
false;
330 bool m_openSearchServiceConfigHasBeenSet =
false;
331 bool m_httpConfigHasBeenSet =
false;
332 bool m_relationalDatabaseConfigHasBeenSet =
false;
333 bool m_eventBridgeConfigHasBeenSet =
false;
334 bool m_metricsConfigHasBeenSet =
false;
DataSource & WithType(DataSourceType value)
bool LambdaConfigHasBeenSet() const
DataSource & WithOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
void SetRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
const LambdaDataSourceConfig & GetLambdaConfig() const
void SetDataSourceArn(DataSourceArnT &&value)
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
void SetDescription(DescriptionT &&value)
void SetHttpConfig(HttpConfigT &&value)
bool RelationalDatabaseConfigHasBeenSet() const
DataSource & WithLambdaConfig(LambdaConfigT &&value)
bool DataSourceArnHasBeenSet() const
const DynamodbDataSourceConfig & GetDynamodbConfig() const
const Aws::String & GetDescription() const
DataSource & WithDataSourceArn(DataSourceArnT &&value)
AWS_APPSYNC_API DataSource()=default
void SetDynamodbConfig(DynamodbConfigT &&value)
bool ElasticsearchConfigHasBeenSet() const
bool DynamodbConfigHasBeenSet() const
void SetLambdaConfig(LambdaConfigT &&value)
bool TypeHasBeenSet() const
DataSource & WithRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
AWS_APPSYNC_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EventBridgeConfigHasBeenSet() const
void SetServiceRoleArn(ServiceRoleArnT &&value)
AWS_APPSYNC_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDataSourceArn() const
DataSource & WithServiceRoleArn(ServiceRoleArnT &&value)
void SetOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
void SetMetricsConfig(DataSourceLevelMetricsConfig value)
DataSourceLevelMetricsConfig GetMetricsConfig() const
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
DataSource & WithDescription(DescriptionT &&value)
void SetElasticsearchConfig(ElasticsearchConfigT &&value)
void SetEventBridgeConfig(EventBridgeConfigT &&value)
bool NameHasBeenSet() const
bool MetricsConfigHasBeenSet() const
DataSourceType GetType() const
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
bool ServiceRoleArnHasBeenSet() const
const Aws::String & GetServiceRoleArn() const
bool OpenSearchServiceConfigHasBeenSet() const
DataSource & WithMetricsConfig(DataSourceLevelMetricsConfig value)
void SetType(DataSourceType value)
DataSource & WithName(NameT &&value)
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
bool HttpConfigHasBeenSet() const
DataSource & WithElasticsearchConfig(ElasticsearchConfigT &&value)
const Aws::String & GetName() const
DataSource & WithEventBridgeConfig(EventBridgeConfigT &&value)
DataSource & WithHttpConfig(HttpConfigT &&value)
DataSource & WithDynamodbConfig(DynamodbConfigT &&value)
bool DescriptionHasBeenSet() const
const HttpDataSourceConfig & GetHttpConfig() const
void SetName(NameT &&value)
DataSourceLevelMetricsConfig
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue