7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appsync/model/DataSourceType.h>
11#include <aws/appsync/model/DynamodbDataSourceConfig.h>
12#include <aws/appsync/model/LambdaDataSourceConfig.h>
13#include <aws/appsync/model/ElasticsearchDataSourceConfig.h>
14#include <aws/appsync/model/OpenSearchServiceDataSourceConfig.h>
15#include <aws/appsync/model/HttpDataSourceConfig.h>
16#include <aws/appsync/model/RelationalDatabaseDataSourceConfig.h>
17#include <aws/appsync/model/EventBridgeDataSourceConfig.h>
18#include <aws/appsync/model/DataSourceLevelMetricsConfig.h>
50 template<
typename ApiIdT = Aws::String>
51 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet =
true; m_apiId = std::forward<ApiIdT>(value); }
52 template<
typename ApiIdT = Aws::String>
62 template<
typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
64 template<
typename NameT = Aws::String>
74 template<
typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
76 template<
typename DescriptionT = Aws::String>
98 template<
typename ServiceRoleArnT = Aws::String>
99 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
100 template<
typename ServiceRoleArnT = Aws::String>
110 template<
typename DynamodbConfigT = DynamodbDataSourceConfig>
111 void SetDynamodbConfig(DynamodbConfigT&& value) { m_dynamodbConfigHasBeenSet =
true; m_dynamodbConfig = std::forward<DynamodbConfigT>(value); }
112 template<
typename DynamodbConfigT = DynamodbDataSourceConfig>
122 template<
typename LambdaConfigT = LambdaDataSourceConfig>
123 void SetLambdaConfig(LambdaConfigT&& value) { m_lambdaConfigHasBeenSet =
true; m_lambdaConfig = std::forward<LambdaConfigT>(value); }
124 template<
typename LambdaConfigT = LambdaDataSourceConfig>
138 template<
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
139 void SetElasticsearchConfig(ElasticsearchConfigT&& value) { m_elasticsearchConfigHasBeenSet =
true; m_elasticsearchConfig = std::forward<ElasticsearchConfigT>(value); }
140 template<
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
150 template<
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
151 void SetOpenSearchServiceConfig(OpenSearchServiceConfigT&& value) { m_openSearchServiceConfigHasBeenSet =
true; m_openSearchServiceConfig = std::forward<OpenSearchServiceConfigT>(value); }
152 template<
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
162 template<
typename HttpConfigT = HttpDataSourceConfig>
163 void SetHttpConfig(HttpConfigT&& value) { m_httpConfigHasBeenSet =
true; m_httpConfig = std::forward<HttpConfigT>(value); }
164 template<
typename HttpConfigT = HttpDataSourceConfig>
174 template<
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
175 void SetRelationalDatabaseConfig(RelationalDatabaseConfigT&& value) { m_relationalDatabaseConfigHasBeenSet =
true; m_relationalDatabaseConfig = std::forward<RelationalDatabaseConfigT>(value); }
176 template<
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
186 template<
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
187 void SetEventBridgeConfig(EventBridgeConfigT&& value) { m_eventBridgeConfigHasBeenSet =
true; m_eventBridgeConfig = std::forward<EventBridgeConfigT>(value); }
188 template<
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
212 bool m_apiIdHasBeenSet =
false;
215 bool m_nameHasBeenSet =
false;
218 bool m_descriptionHasBeenSet =
false;
221 bool m_typeHasBeenSet =
false;
224 bool m_serviceRoleArnHasBeenSet =
false;
226 DynamodbDataSourceConfig m_dynamodbConfig;
227 bool m_dynamodbConfigHasBeenSet =
false;
229 LambdaDataSourceConfig m_lambdaConfig;
230 bool m_lambdaConfigHasBeenSet =
false;
232 ElasticsearchDataSourceConfig m_elasticsearchConfig;
233 bool m_elasticsearchConfigHasBeenSet =
false;
235 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
236 bool m_openSearchServiceConfigHasBeenSet =
false;
238 HttpDataSourceConfig m_httpConfig;
239 bool m_httpConfigHasBeenSet =
false;
241 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
242 bool m_relationalDatabaseConfigHasBeenSet =
false;
244 EventBridgeDataSourceConfig m_eventBridgeConfig;
245 bool m_eventBridgeConfigHasBeenSet =
false;
248 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