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>
55 template<
typename DataSourceArnT = Aws::String>
56 void SetDataSourceArn(DataSourceArnT&& value) { m_dataSourceArnHasBeenSet =
true; m_dataSourceArn = std::forward<DataSourceArnT>(value); }
57 template<
typename DataSourceArnT = Aws::String>
67 template<
typename NameT = Aws::String>
68 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
69 template<
typename NameT = Aws::String>
79 template<
typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
81 template<
typename DescriptionT = Aws::String>
117 template<
typename ServiceRoleArnT = Aws::String>
118 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
119 template<
typename ServiceRoleArnT = Aws::String>
129 template<
typename DynamodbConfigT = DynamodbDataSourceConfig>
130 void SetDynamodbConfig(DynamodbConfigT&& value) { m_dynamodbConfigHasBeenSet =
true; m_dynamodbConfig = std::forward<DynamodbConfigT>(value); }
131 template<
typename DynamodbConfigT = DynamodbDataSourceConfig>
141 template<
typename LambdaConfigT = LambdaDataSourceConfig>
142 void SetLambdaConfig(LambdaConfigT&& value) { m_lambdaConfigHasBeenSet =
true; m_lambdaConfig = std::forward<LambdaConfigT>(value); }
143 template<
typename LambdaConfigT = LambdaDataSourceConfig>
153 template<
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
154 void SetElasticsearchConfig(ElasticsearchConfigT&& value) { m_elasticsearchConfigHasBeenSet =
true; m_elasticsearchConfig = std::forward<ElasticsearchConfigT>(value); }
155 template<
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
165 template<
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
166 void SetOpenSearchServiceConfig(OpenSearchServiceConfigT&& value) { m_openSearchServiceConfigHasBeenSet =
true; m_openSearchServiceConfig = std::forward<OpenSearchServiceConfigT>(value); }
167 template<
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
177 template<
typename HttpConfigT = HttpDataSourceConfig>
178 void SetHttpConfig(HttpConfigT&& value) { m_httpConfigHasBeenSet =
true; m_httpConfig = std::forward<HttpConfigT>(value); }
179 template<
typename HttpConfigT = HttpDataSourceConfig>
189 template<
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
190 void SetRelationalDatabaseConfig(RelationalDatabaseConfigT&& value) { m_relationalDatabaseConfigHasBeenSet =
true; m_relationalDatabaseConfig = std::forward<RelationalDatabaseConfigT>(value); }
191 template<
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
201 template<
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
202 void SetEventBridgeConfig(EventBridgeConfigT&& value) { m_eventBridgeConfigHasBeenSet =
true; m_eventBridgeConfig = std::forward<EventBridgeConfigT>(value); }
203 template<
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
227 bool m_dataSourceArnHasBeenSet =
false;
230 bool m_nameHasBeenSet =
false;
233 bool m_descriptionHasBeenSet =
false;
236 bool m_typeHasBeenSet =
false;
239 bool m_serviceRoleArnHasBeenSet =
false;
241 DynamodbDataSourceConfig m_dynamodbConfig;
242 bool m_dynamodbConfigHasBeenSet =
false;
244 LambdaDataSourceConfig m_lambdaConfig;
245 bool m_lambdaConfigHasBeenSet =
false;
247 ElasticsearchDataSourceConfig m_elasticsearchConfig;
248 bool m_elasticsearchConfigHasBeenSet =
false;
250 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
251 bool m_openSearchServiceConfigHasBeenSet =
false;
253 HttpDataSourceConfig m_httpConfig;
254 bool m_httpConfigHasBeenSet =
false;
256 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
257 bool m_relationalDatabaseConfigHasBeenSet =
false;
259 EventBridgeDataSourceConfig m_eventBridgeConfig;
260 bool m_eventBridgeConfigHasBeenSet =
false;
263 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