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>
57 inline void SetDataSourceArn(
const char* value) { m_dataSourceArnHasBeenSet =
true; m_dataSourceArn.assign(value); }
71 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
85 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
125 inline void SetServiceRoleArn(
const char* value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn.assign(value); }
237 bool m_dataSourceArnHasBeenSet =
false;
240 bool m_nameHasBeenSet =
false;
243 bool m_descriptionHasBeenSet =
false;
246 bool m_typeHasBeenSet =
false;
249 bool m_serviceRoleArnHasBeenSet =
false;
252 bool m_dynamodbConfigHasBeenSet =
false;
255 bool m_lambdaConfigHasBeenSet =
false;
258 bool m_elasticsearchConfigHasBeenSet =
false;
261 bool m_openSearchServiceConfigHasBeenSet =
false;
264 bool m_httpConfigHasBeenSet =
false;
267 bool m_relationalDatabaseConfigHasBeenSet =
false;
270 bool m_eventBridgeConfigHasBeenSet =
false;
273 bool m_metricsConfigHasBeenSet =
false;
void SetMetricsConfig(const DataSourceLevelMetricsConfig &value)
void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
DataSource & WithOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
DataSource & WithRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
bool LambdaConfigHasBeenSet() const
void SetServiceRoleArn(const Aws::String &value)
DataSource & WithType(const DataSourceType &value)
const LambdaDataSourceConfig & GetLambdaConfig() const
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
DataSource & WithLambdaConfig(LambdaDataSourceConfig &&value)
DataSource & WithDataSourceArn(const char *value)
void SetDynamodbConfig(DynamodbDataSourceConfig &&value)
DataSource & WithMetricsConfig(const DataSourceLevelMetricsConfig &value)
bool RelationalDatabaseConfigHasBeenSet() const
DataSource & WithHttpConfig(HttpDataSourceConfig &&value)
bool DataSourceArnHasBeenSet() const
const DynamodbDataSourceConfig & GetDynamodbConfig() const
DataSource & WithDataSourceArn(const Aws::String &value)
void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig &value)
const Aws::String & GetDescription() const
DataSource & WithElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
DataSource & WithServiceRoleArn(const char *value)
void SetHttpConfig(HttpDataSourceConfig &&value)
const DataSourceLevelMetricsConfig & GetMetricsConfig() const
bool ElasticsearchConfigHasBeenSet() const
bool DynamodbConfigHasBeenSet() const
void SetElasticsearchConfig(const ElasticsearchDataSourceConfig &value)
void SetEventBridgeConfig(EventBridgeDataSourceConfig &&value)
void SetDynamodbConfig(const DynamodbDataSourceConfig &value)
bool TypeHasBeenSet() const
DataSource & WithOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
void SetName(const Aws::String &value)
DataSource & WithMetricsConfig(DataSourceLevelMetricsConfig &&value)
void SetLambdaConfig(LambdaDataSourceConfig &&value)
AWS_APPSYNC_API DataSource & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSource & WithServiceRoleArn(Aws::String &&value)
bool EventBridgeConfigHasBeenSet() const
DataSource & WithElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
DataSource & WithEventBridgeConfig(const EventBridgeDataSourceConfig &value)
void SetHttpConfig(const HttpDataSourceConfig &value)
void SetServiceRoleArn(Aws::String &&value)
AWS_APPSYNC_API DataSource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDataSourceArn() const
DataSource & WithLambdaConfig(const LambdaDataSourceConfig &value)
void SetDescription(const char *value)
void SetLambdaConfig(const LambdaDataSourceConfig &value)
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
DataSource & WithName(const char *value)
DataSource & WithDescription(Aws::String &&value)
DataSource & WithDataSourceArn(Aws::String &&value)
DataSource & WithDescription(const Aws::String &value)
DataSource & WithHttpConfig(const HttpDataSourceConfig &value)
bool NameHasBeenSet() const
bool MetricsConfigHasBeenSet() const
DataSource & WithName(Aws::String &&value)
const DataSourceType & GetType() const
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig &&value)
void SetDataSourceArn(Aws::String &&value)
bool ServiceRoleArnHasBeenSet() const
const Aws::String & GetServiceRoleArn() const
bool OpenSearchServiceConfigHasBeenSet() const
void SetDescription(Aws::String &&value)
void SetType(DataSourceType &&value)
DataSource & WithName(const Aws::String &value)
void SetName(const char *value)
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
void SetMetricsConfig(DataSourceLevelMetricsConfig &&value)
DataSource & WithRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig &&value)
DataSource & WithEventBridgeConfig(EventBridgeDataSourceConfig &&value)
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
bool HttpConfigHasBeenSet() const
const Aws::String & GetName() const
AWS_APPSYNC_API DataSource()
void SetType(const DataSourceType &value)
void SetEventBridgeConfig(const EventBridgeDataSourceConfig &value)
void SetDataSourceArn(const char *value)
DataSource & WithServiceRoleArn(const Aws::String &value)
DataSource & WithDescription(const char *value)
void SetElasticsearchConfig(ElasticsearchDataSourceConfig &&value)
DataSource & WithDynamodbConfig(DynamodbDataSourceConfig &&value)
DataSource & WithType(DataSourceType &&value)
void SetDescription(const Aws::String &value)
DataSource & WithDynamodbConfig(const DynamodbDataSourceConfig &value)
bool DescriptionHasBeenSet() const
void SetName(Aws::String &&value)
void SetServiceRoleArn(const char *value)
void SetDataSourceArn(const Aws::String &value)
const HttpDataSourceConfig & GetHttpConfig() const
void SetOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig &value)
DataSourceLevelMetricsConfig
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue