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>
46 template <
typename ApiIdT = Aws::String>
48 m_apiIdHasBeenSet =
true;
49 m_apiId = std::forward<ApiIdT>(value);
51 template <
typename ApiIdT = Aws::String>
53 SetApiId(std::forward<ApiIdT>(value));
64 template <
typename NameT = Aws::String>
66 m_nameHasBeenSet =
true;
67 m_name = std::forward<NameT>(value);
69 template <
typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
82 template <
typename DescriptionT = Aws::String>
84 m_descriptionHasBeenSet =
true;
85 m_description = std::forward<DescriptionT>(value);
87 template <
typename DescriptionT = Aws::String>
101 m_typeHasBeenSet =
true;
118 template <
typename ServiceRoleArnT = Aws::String>
120 m_serviceRoleArnHasBeenSet =
true;
121 m_serviceRoleArn = std::forward<ServiceRoleArnT>(value);
123 template <
typename ServiceRoleArnT = Aws::String>
136 template <
typename DynamodbConfigT = DynamodbDataSourceConfig>
138 m_dynamodbConfigHasBeenSet =
true;
139 m_dynamodbConfig = std::forward<DynamodbConfigT>(value);
141 template <
typename DynamodbConfigT = DynamodbDataSourceConfig>
154 template <
typename LambdaConfigT = LambdaDataSourceConfig>
156 m_lambdaConfigHasBeenSet =
true;
157 m_lambdaConfig = std::forward<LambdaConfigT>(value);
159 template <
typename LambdaConfigT = LambdaDataSourceConfig>
176 template <
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
178 m_elasticsearchConfigHasBeenSet =
true;
179 m_elasticsearchConfig = std::forward<ElasticsearchConfigT>(value);
181 template <
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
194 template <
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
196 m_openSearchServiceConfigHasBeenSet =
true;
197 m_openSearchServiceConfig = std::forward<OpenSearchServiceConfigT>(value);
199 template <
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
212 template <
typename HttpConfigT = HttpDataSourceConfig>
214 m_httpConfigHasBeenSet =
true;
215 m_httpConfig = std::forward<HttpConfigT>(value);
217 template <
typename HttpConfigT = HttpDataSourceConfig>
230 template <
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
232 m_relationalDatabaseConfigHasBeenSet =
true;
233 m_relationalDatabaseConfig = std::forward<RelationalDatabaseConfigT>(value);
235 template <
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
248 template <
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
250 m_eventBridgeConfigHasBeenSet =
true;
251 m_eventBridgeConfig = std::forward<EventBridgeConfigT>(value);
253 template <
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
275 m_metricsConfigHasBeenSet =
true;
276 m_metricsConfig = value;
294 DynamodbDataSourceConfig m_dynamodbConfig;
296 LambdaDataSourceConfig m_lambdaConfig;
298 ElasticsearchDataSourceConfig m_elasticsearchConfig;
300 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
302 HttpDataSourceConfig m_httpConfig;
304 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
306 EventBridgeDataSourceConfig m_eventBridgeConfig;
309 bool m_apiIdHasBeenSet =
false;
310 bool m_nameHasBeenSet =
false;
311 bool m_descriptionHasBeenSet =
false;
312 bool m_typeHasBeenSet =
false;
313 bool m_serviceRoleArnHasBeenSet =
false;
314 bool m_dynamodbConfigHasBeenSet =
false;
315 bool m_lambdaConfigHasBeenSet =
false;
316 bool m_elasticsearchConfigHasBeenSet =
false;
317 bool m_openSearchServiceConfigHasBeenSet =
false;
318 bool m_httpConfigHasBeenSet =
false;
319 bool m_relationalDatabaseConfigHasBeenSet =
false;
320 bool m_eventBridgeConfigHasBeenSet =
false;
321 bool m_metricsConfigHasBeenSet =
false;
CreateDataSourceRequest & WithMetricsConfig(DataSourceLevelMetricsConfig value)
void SetElasticsearchConfig(ElasticsearchConfigT &&value)
const HttpDataSourceConfig & GetHttpConfig() const
bool LambdaConfigHasBeenSet() const
bool ServiceRoleArnHasBeenSet() const
CreateDataSourceRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetApiId() const
const Aws::String & GetName() const
void SetType(DataSourceType value)
void SetEventBridgeConfig(EventBridgeConfigT &&value)
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
void SetServiceRoleArn(ServiceRoleArnT &&value)
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
bool EventBridgeConfigHasBeenSet() const
void SetRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
AWS_APPSYNC_API CreateDataSourceRequest()=default
bool OpenSearchServiceConfigHasBeenSet() const
const DynamodbDataSourceConfig & GetDynamodbConfig() const
void SetApiId(ApiIdT &&value)
bool DescriptionHasBeenSet() const
bool RelationalDatabaseConfigHasBeenSet() const
CreateDataSourceRequest & WithName(NameT &&value)
CreateDataSourceRequest & WithDescription(DescriptionT &&value)
DataSourceType GetType() const
AWS_APPSYNC_API Aws::String SerializePayload() const override
void SetLambdaConfig(LambdaConfigT &&value)
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
bool HttpConfigHasBeenSet() const
void SetHttpConfig(HttpConfigT &&value)
bool TypeHasBeenSet() const
void SetDescription(DescriptionT &&value)
CreateDataSourceRequest & WithLambdaConfig(LambdaConfigT &&value)
void SetDynamodbConfig(DynamodbConfigT &&value)
const LambdaDataSourceConfig & GetLambdaConfig() const
virtual const char * GetServiceRequestName() const override
bool ElasticsearchConfigHasBeenSet() const
bool MetricsConfigHasBeenSet() const
bool NameHasBeenSet() const
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
CreateDataSourceRequest & WithRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
CreateDataSourceRequest & WithEventBridgeConfig(EventBridgeConfigT &&value)
CreateDataSourceRequest & WithDynamodbConfig(DynamodbConfigT &&value)
DataSourceLevelMetricsConfig GetMetricsConfig() const
bool DynamodbConfigHasBeenSet() const
void SetName(NameT &&value)
CreateDataSourceRequest & WithOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
CreateDataSourceRequest & WithType(DataSourceType value)
CreateDataSourceRequest & WithApiId(ApiIdT &&value)
CreateDataSourceRequest & WithHttpConfig(HttpConfigT &&value)
void SetOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
void SetMetricsConfig(DataSourceLevelMetricsConfig value)
CreateDataSourceRequest & WithElasticsearchConfig(ElasticsearchConfigT &&value)
const Aws::String & GetServiceRoleArn() const
bool ApiIdHasBeenSet() const
DataSourceLevelMetricsConfig
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String