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>
96 template<
typename ServiceRoleArnT = Aws::String>
97 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
98 template<
typename ServiceRoleArnT = Aws::String>
108 template<
typename DynamodbConfigT = DynamodbDataSourceConfig>
109 void SetDynamodbConfig(DynamodbConfigT&& value) { m_dynamodbConfigHasBeenSet =
true; m_dynamodbConfig = std::forward<DynamodbConfigT>(value); }
110 template<
typename DynamodbConfigT = DynamodbDataSourceConfig>
120 template<
typename LambdaConfigT = LambdaDataSourceConfig>
121 void SetLambdaConfig(LambdaConfigT&& value) { m_lambdaConfigHasBeenSet =
true; m_lambdaConfig = std::forward<LambdaConfigT>(value); }
122 template<
typename LambdaConfigT = LambdaDataSourceConfig>
135 template<
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
136 void SetElasticsearchConfig(ElasticsearchConfigT&& value) { m_elasticsearchConfigHasBeenSet =
true; m_elasticsearchConfig = std::forward<ElasticsearchConfigT>(value); }
137 template<
typename ElasticsearchConfigT = ElasticsearchDataSourceConfig>
147 template<
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
148 void SetOpenSearchServiceConfig(OpenSearchServiceConfigT&& value) { m_openSearchServiceConfigHasBeenSet =
true; m_openSearchServiceConfig = std::forward<OpenSearchServiceConfigT>(value); }
149 template<
typename OpenSearchServiceConfigT = OpenSearchServiceDataSourceConfig>
159 template<
typename HttpConfigT = HttpDataSourceConfig>
160 void SetHttpConfig(HttpConfigT&& value) { m_httpConfigHasBeenSet =
true; m_httpConfig = std::forward<HttpConfigT>(value); }
161 template<
typename HttpConfigT = HttpDataSourceConfig>
171 template<
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
172 void SetRelationalDatabaseConfig(RelationalDatabaseConfigT&& value) { m_relationalDatabaseConfigHasBeenSet =
true; m_relationalDatabaseConfig = std::forward<RelationalDatabaseConfigT>(value); }
173 template<
typename RelationalDatabaseConfigT = RelationalDatabaseDataSourceConfig>
183 template<
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
184 void SetEventBridgeConfig(EventBridgeConfigT&& value) { m_eventBridgeConfigHasBeenSet =
true; m_eventBridgeConfig = std::forward<EventBridgeConfigT>(value); }
185 template<
typename EventBr
idgeConfigT = EventBr
idgeDataSourceConfig>
209 bool m_apiIdHasBeenSet =
false;
212 bool m_nameHasBeenSet =
false;
215 bool m_descriptionHasBeenSet =
false;
218 bool m_typeHasBeenSet =
false;
221 bool m_serviceRoleArnHasBeenSet =
false;
223 DynamodbDataSourceConfig m_dynamodbConfig;
224 bool m_dynamodbConfigHasBeenSet =
false;
226 LambdaDataSourceConfig m_lambdaConfig;
227 bool m_lambdaConfigHasBeenSet =
false;
229 ElasticsearchDataSourceConfig m_elasticsearchConfig;
230 bool m_elasticsearchConfigHasBeenSet =
false;
232 OpenSearchServiceDataSourceConfig m_openSearchServiceConfig;
233 bool m_openSearchServiceConfigHasBeenSet =
false;
235 HttpDataSourceConfig m_httpConfig;
236 bool m_httpConfigHasBeenSet =
false;
238 RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig;
239 bool m_relationalDatabaseConfigHasBeenSet =
false;
241 EventBridgeDataSourceConfig m_eventBridgeConfig;
242 bool m_eventBridgeConfigHasBeenSet =
false;
245 bool m_metricsConfigHasBeenSet =
false;
const Aws::String & GetDescription() const
void SetOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
bool RelationalDatabaseConfigHasBeenSet() const
bool DescriptionHasBeenSet() const
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
DataSourceLevelMetricsConfig GetMetricsConfig() const
UpdateDataSourceRequest & WithEventBridgeConfig(EventBridgeConfigT &&value)
UpdateDataSourceRequest & WithOpenSearchServiceConfig(OpenSearchServiceConfigT &&value)
const Aws::String & GetApiId() const
const OpenSearchServiceDataSourceConfig & GetOpenSearchServiceConfig() const
UpdateDataSourceRequest & WithHttpConfig(HttpConfigT &&value)
void SetLambdaConfig(LambdaConfigT &&value)
UpdateDataSourceRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
void SetElasticsearchConfig(ElasticsearchConfigT &&value)
bool MetricsConfigHasBeenSet() const
virtual const char * GetServiceRequestName() const override
bool ElasticsearchConfigHasBeenSet() const
const HttpDataSourceConfig & GetHttpConfig() const
void SetServiceRoleArn(ServiceRoleArnT &&value)
DataSourceType GetType() const
UpdateDataSourceRequest & WithMetricsConfig(DataSourceLevelMetricsConfig value)
bool EventBridgeConfigHasBeenSet() const
UpdateDataSourceRequest & WithElasticsearchConfig(ElasticsearchConfigT &&value)
void SetHttpConfig(HttpConfigT &&value)
UpdateDataSourceRequest & WithDynamodbConfig(DynamodbConfigT &&value)
const Aws::String & GetName() const
const ElasticsearchDataSourceConfig & GetElasticsearchConfig() const
UpdateDataSourceRequest & WithName(NameT &&value)
UpdateDataSourceRequest & WithApiId(ApiIdT &&value)
void SetType(DataSourceType value)
UpdateDataSourceRequest & WithLambdaConfig(LambdaConfigT &&value)
const RelationalDatabaseDataSourceConfig & GetRelationalDatabaseConfig() const
void SetRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
void SetDynamodbConfig(DynamodbConfigT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
const Aws::String & GetServiceRoleArn() const
bool LambdaConfigHasBeenSet() const
bool OpenSearchServiceConfigHasBeenSet() const
const EventBridgeDataSourceConfig & GetEventBridgeConfig() const
const DynamodbDataSourceConfig & GetDynamodbConfig() const
UpdateDataSourceRequest & WithType(DataSourceType value)
bool DynamodbConfigHasBeenSet() const
bool HttpConfigHasBeenSet() const
void SetName(NameT &&value)
bool ApiIdHasBeenSet() const
void SetEventBridgeConfig(EventBridgeConfigT &&value)
bool TypeHasBeenSet() const
void SetApiId(ApiIdT &&value)
AWS_APPSYNC_API UpdateDataSourceRequest()=default
void SetMetricsConfig(DataSourceLevelMetricsConfig value)
bool NameHasBeenSet() const
void SetDescription(DescriptionT &&value)
const LambdaDataSourceConfig & GetLambdaConfig() const
bool ServiceRoleArnHasBeenSet() const
UpdateDataSourceRequest & WithRelationalDatabaseConfig(RelationalDatabaseConfigT &&value)
DataSourceLevelMetricsConfig
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String