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>
52 inline void SetApiId(
const char* value) { m_apiIdHasBeenSet =
true; m_apiId.assign(value); }
66 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
80 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
108 inline void SetServiceRoleArn(
const char* value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn.assign(value); }
224 bool m_apiIdHasBeenSet =
false;
227 bool m_nameHasBeenSet =
false;
230 bool m_descriptionHasBeenSet =
false;
233 bool m_typeHasBeenSet =
false;
236 bool m_serviceRoleArnHasBeenSet =
false;
239 bool m_dynamodbConfigHasBeenSet =
false;
242 bool m_lambdaConfigHasBeenSet =
false;
245 bool m_elasticsearchConfigHasBeenSet =
false;
248 bool m_openSearchServiceConfigHasBeenSet =
false;
251 bool m_httpConfigHasBeenSet =
false;
254 bool m_relationalDatabaseConfigHasBeenSet =
false;
257 bool m_eventBridgeConfigHasBeenSet =
false;
260 bool m_metricsConfigHasBeenSet =
false;
void SetName(const char *value)
void SetType(DataSourceType &&value)
CreateDataSourceRequest & WithServiceRoleArn(const Aws::String &value)
const HttpDataSourceConfig & GetHttpConfig() const
bool LambdaConfigHasBeenSet() const
bool ServiceRoleArnHasBeenSet() const
void SetApiId(const Aws::String &value)
CreateDataSourceRequest & WithDescription(const Aws::String &value)
void SetDescription(const char *value)
CreateDataSourceRequest & WithEventBridgeConfig(EventBridgeDataSourceConfig &&value)
const Aws::String & GetDescription() const
const Aws::String & GetApiId() const
void SetApiId(Aws::String &&value)
void SetName(const Aws::String &value)
void SetMetricsConfig(DataSourceLevelMetricsConfig &&value)
CreateDataSourceRequest & WithOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
const Aws::String & GetName() const
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
CreateDataSourceRequest & WithApiId(const Aws::String &value)
bool EventBridgeConfigHasBeenSet() const
CreateDataSourceRequest & WithServiceRoleArn(Aws::String &&value)
CreateDataSourceRequest & WithMetricsConfig(const DataSourceLevelMetricsConfig &value)
const DataSourceLevelMetricsConfig & GetMetricsConfig() const
CreateDataSourceRequest & WithType(const DataSourceType &value)
void SetServiceRoleArn(Aws::String &&value)
const DataSourceType & GetType() const
bool OpenSearchServiceConfigHasBeenSet() const
CreateDataSourceRequest & WithDynamodbConfig(DynamodbDataSourceConfig &&value)
void SetElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
CreateDataSourceRequest & WithDescription(const char *value)
CreateDataSourceRequest & WithLambdaConfig(LambdaDataSourceConfig &&value)
const DynamodbDataSourceConfig & GetDynamodbConfig() const
bool DescriptionHasBeenSet() const
bool RelationalDatabaseConfigHasBeenSet() const
CreateDataSourceRequest & WithName(const Aws::String &value)
void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
CreateDataSourceRequest & WithApiId(const char *value)
CreateDataSourceRequest & WithElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
void SetName(Aws::String &&value)
CreateDataSourceRequest & WithRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
bool HttpConfigHasBeenSet() const
bool TypeHasBeenSet() const
CreateDataSourceRequest & WithName(Aws::String &&value)
void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
CreateDataSourceRequest & WithApiId(Aws::String &&value)
void SetDynamodbConfig(const DynamodbDataSourceConfig &value)
CreateDataSourceRequest & WithServiceRoleArn(const char *value)
CreateDataSourceRequest & WithOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
CreateDataSourceRequest & WithType(DataSourceType &&value)
void SetDescription(const Aws::String &value)
void SetDescription(Aws::String &&value)
CreateDataSourceRequest & WithRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
void SetOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
const LambdaDataSourceConfig & GetLambdaConfig() const
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithDescription(Aws::String &&value)
bool ElasticsearchConfigHasBeenSet() const
void SetMetricsConfig(const DataSourceLevelMetricsConfig &value)
void SetElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
void SetHttpConfig(const HttpDataSourceConfig &value)
bool MetricsConfigHasBeenSet() const
void SetServiceRoleArn(const char *value)
AWS_APPSYNC_API CreateDataSourceRequest()
CreateDataSourceRequest & WithHttpConfig(HttpDataSourceConfig &&value)
bool NameHasBeenSet() const
void SetLambdaConfig(LambdaDataSourceConfig &&value)
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
CreateDataSourceRequest & WithDynamodbConfig(const DynamodbDataSourceConfig &value)
CreateDataSourceRequest & WithHttpConfig(const HttpDataSourceConfig &value)
CreateDataSourceRequest & WithEventBridgeConfig(const EventBridgeDataSourceConfig &value)
void SetEventBridgeConfig(EventBridgeDataSourceConfig &&value)
void SetLambdaConfig(const LambdaDataSourceConfig &value)
void SetDynamodbConfig(DynamodbDataSourceConfig &&value)
bool DynamodbConfigHasBeenSet() const
void SetHttpConfig(HttpDataSourceConfig &&value)
void SetOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
void SetApiId(const char *value)
void SetType(const DataSourceType &value)
void SetServiceRoleArn(const Aws::String &value)
CreateDataSourceRequest & WithLambdaConfig(const LambdaDataSourceConfig &value)
CreateDataSourceRequest & WithElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
CreateDataSourceRequest & WithName(const char *value)
CreateDataSourceRequest & WithMetricsConfig(DataSourceLevelMetricsConfig &&value)
const Aws::String & GetServiceRoleArn() const
void SetEventBridgeConfig(const EventBridgeDataSourceConfig &value)
bool ApiIdHasBeenSet() const
DataSourceLevelMetricsConfig
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String