/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a data source.See Also:
AWS
* API Reference
The data source Amazon Resource Name (ARN).
*/ inline const Aws::String& GetDataSourceArn() const{ return m_dataSourceArn; } /** *The data source Amazon Resource Name (ARN).
*/ inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; } /** *The data source Amazon Resource Name (ARN).
*/ inline void SetDataSourceArn(const Aws::String& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = value; } /** *The data source Amazon Resource Name (ARN).
*/ inline void SetDataSourceArn(Aws::String&& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = std::move(value); } /** *The data source Amazon Resource Name (ARN).
*/ inline void SetDataSourceArn(const char* value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn.assign(value); } /** *The data source Amazon Resource Name (ARN).
*/ inline DataSource& WithDataSourceArn(const Aws::String& value) { SetDataSourceArn(value); return *this;} /** *The data source Amazon Resource Name (ARN).
*/ inline DataSource& WithDataSourceArn(Aws::String&& value) { SetDataSourceArn(std::move(value)); return *this;} /** *The data source Amazon Resource Name (ARN).
*/ inline DataSource& WithDataSourceArn(const char* value) { SetDataSourceArn(value); return *this;} /** *The name of the data source.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the data source.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the data source.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the data source.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the data source.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the data source.
*/ inline DataSource& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the data source.
*/ inline DataSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the data source.
*/ inline DataSource& WithName(const char* value) { SetName(value); return *this;} /** *The description of the data source.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the data source.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the data source.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the data source.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the data source.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the data source.
*/ inline DataSource& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the data source.
*/ inline DataSource& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the data source.
*/ inline DataSource& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The type of the data source.
AWS_LAMBDA: The data * source is an Lambda function.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service * domain.
AMAZON_OPENSEARCH_SERVICE: The data source is * an Amazon OpenSearch Service domain.
* AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge * configuration.
NONE: There is no data source. Use this * type when you want to invoke a GraphQL operation without connecting to a data * source, such as when you're performing data transformation with resolvers or * invoking a subscription from a mutation.
HTTP: The * data source is an HTTP endpoint.
RELATIONAL_DATABASE: * The data source is a relational database.
The type of the data source.
AWS_LAMBDA: The data * source is an Lambda function.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service * domain.
AMAZON_OPENSEARCH_SERVICE: The data source is * an Amazon OpenSearch Service domain.
* AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge * configuration.
NONE: There is no data source. Use this * type when you want to invoke a GraphQL operation without connecting to a data * source, such as when you're performing data transformation with resolvers or * invoking a subscription from a mutation.
HTTP: The * data source is an HTTP endpoint.
RELATIONAL_DATABASE: * The data source is a relational database.
The type of the data source.
AWS_LAMBDA: The data * source is an Lambda function.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service * domain.
AMAZON_OPENSEARCH_SERVICE: The data source is * an Amazon OpenSearch Service domain.
* AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge * configuration.
NONE: There is no data source. Use this * type when you want to invoke a GraphQL operation without connecting to a data * source, such as when you're performing data transformation with resolvers or * invoking a subscription from a mutation.
HTTP: The * data source is an HTTP endpoint.
RELATIONAL_DATABASE: * The data source is a relational database.
The type of the data source.
AWS_LAMBDA: The data * source is an Lambda function.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service * domain.
AMAZON_OPENSEARCH_SERVICE: The data source is * an Amazon OpenSearch Service domain.
* AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge * configuration.
NONE: There is no data source. Use this * type when you want to invoke a GraphQL operation without connecting to a data * source, such as when you're performing data transformation with resolvers or * invoking a subscription from a mutation.
HTTP: The * data source is an HTTP endpoint.
RELATIONAL_DATABASE: * The data source is a relational database.
The type of the data source.
AWS_LAMBDA: The data * source is an Lambda function.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service * domain.
AMAZON_OPENSEARCH_SERVICE: The data source is * an Amazon OpenSearch Service domain.
* AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge * configuration.
NONE: There is no data source. Use this * type when you want to invoke a GraphQL operation without connecting to a data * source, such as when you're performing data transformation with resolvers or * invoking a subscription from a mutation.
HTTP: The * data source is an HTTP endpoint.
RELATIONAL_DATABASE: * The data source is a relational database.
The type of the data source.
AWS_LAMBDA: The data * source is an Lambda function.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service * domain.
AMAZON_OPENSEARCH_SERVICE: The data source is * an Amazon OpenSearch Service domain.
* AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge * configuration.
NONE: There is no data source. Use this * type when you want to invoke a GraphQL operation without connecting to a data * source, such as when you're performing data transformation with resolvers or * invoking a subscription from a mutation.
HTTP: The * data source is an HTTP endpoint.
RELATIONAL_DATABASE: * The data source is a relational database.
The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; } /** *The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; } /** *The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; } /** *The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); } /** *The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); } /** *The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline DataSource& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;} /** *The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline DataSource& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;} /** *The Identity and Access Management (IAM) service role Amazon Resource Name * (ARN) for the data source. The system assumes this role when accessing the data * source.
*/ inline DataSource& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;} /** *DynamoDB settings.
*/ inline const DynamodbDataSourceConfig& GetDynamodbConfig() const{ return m_dynamodbConfig; } /** *DynamoDB settings.
*/ inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; } /** *DynamoDB settings.
*/ inline void SetDynamodbConfig(const DynamodbDataSourceConfig& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = value; } /** *DynamoDB settings.
*/ inline void SetDynamodbConfig(DynamodbDataSourceConfig&& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = std::move(value); } /** *DynamoDB settings.
*/ inline DataSource& WithDynamodbConfig(const DynamodbDataSourceConfig& value) { SetDynamodbConfig(value); return *this;} /** *DynamoDB settings.
*/ inline DataSource& WithDynamodbConfig(DynamodbDataSourceConfig&& value) { SetDynamodbConfig(std::move(value)); return *this;} /** *Lambda settings.
*/ inline const LambdaDataSourceConfig& GetLambdaConfig() const{ return m_lambdaConfig; } /** *Lambda settings.
*/ inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; } /** *Lambda settings.
*/ inline void SetLambdaConfig(const LambdaDataSourceConfig& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = value; } /** *Lambda settings.
*/ inline void SetLambdaConfig(LambdaDataSourceConfig&& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = std::move(value); } /** *Lambda settings.
*/ inline DataSource& WithLambdaConfig(const LambdaDataSourceConfig& value) { SetLambdaConfig(value); return *this;} /** *Lambda settings.
*/ inline DataSource& WithLambdaConfig(LambdaDataSourceConfig&& value) { SetLambdaConfig(std::move(value)); return *this;} /** *Amazon OpenSearch Service settings.
*/ inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const{ return m_elasticsearchConfig; } /** *Amazon OpenSearch Service settings.
*/ inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; } /** *Amazon OpenSearch Service settings.
*/ inline void SetElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = value; } /** *Amazon OpenSearch Service settings.
*/ inline void SetElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = std::move(value); } /** *Amazon OpenSearch Service settings.
*/ inline DataSource& WithElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { SetElasticsearchConfig(value); return *this;} /** *Amazon OpenSearch Service settings.
*/ inline DataSource& WithElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { SetElasticsearchConfig(std::move(value)); return *this;} /** *Amazon OpenSearch Service settings.
*/ inline const OpenSearchServiceDataSourceConfig& GetOpenSearchServiceConfig() const{ return m_openSearchServiceConfig; } /** *Amazon OpenSearch Service settings.
*/ inline bool OpenSearchServiceConfigHasBeenSet() const { return m_openSearchServiceConfigHasBeenSet; } /** *Amazon OpenSearch Service settings.
*/ inline void SetOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig& value) { m_openSearchServiceConfigHasBeenSet = true; m_openSearchServiceConfig = value; } /** *Amazon OpenSearch Service settings.
*/ inline void SetOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig&& value) { m_openSearchServiceConfigHasBeenSet = true; m_openSearchServiceConfig = std::move(value); } /** *Amazon OpenSearch Service settings.
*/ inline DataSource& WithOpenSearchServiceConfig(const OpenSearchServiceDataSourceConfig& value) { SetOpenSearchServiceConfig(value); return *this;} /** *Amazon OpenSearch Service settings.
*/ inline DataSource& WithOpenSearchServiceConfig(OpenSearchServiceDataSourceConfig&& value) { SetOpenSearchServiceConfig(std::move(value)); return *this;} /** *HTTP endpoint settings.
*/ inline const HttpDataSourceConfig& GetHttpConfig() const{ return m_httpConfig; } /** *HTTP endpoint settings.
*/ inline bool HttpConfigHasBeenSet() const { return m_httpConfigHasBeenSet; } /** *HTTP endpoint settings.
*/ inline void SetHttpConfig(const HttpDataSourceConfig& value) { m_httpConfigHasBeenSet = true; m_httpConfig = value; } /** *HTTP endpoint settings.
*/ inline void SetHttpConfig(HttpDataSourceConfig&& value) { m_httpConfigHasBeenSet = true; m_httpConfig = std::move(value); } /** *HTTP endpoint settings.
*/ inline DataSource& WithHttpConfig(const HttpDataSourceConfig& value) { SetHttpConfig(value); return *this;} /** *HTTP endpoint settings.
*/ inline DataSource& WithHttpConfig(HttpDataSourceConfig&& value) { SetHttpConfig(std::move(value)); return *this;} /** *Relational database settings.
*/ inline const RelationalDatabaseDataSourceConfig& GetRelationalDatabaseConfig() const{ return m_relationalDatabaseConfig; } /** *Relational database settings.
*/ inline bool RelationalDatabaseConfigHasBeenSet() const { return m_relationalDatabaseConfigHasBeenSet; } /** *Relational database settings.
*/ inline void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = value; } /** *Relational database settings.
*/ inline void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = std::move(value); } /** *Relational database settings.
*/ inline DataSource& WithRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { SetRelationalDatabaseConfig(value); return *this;} /** *Relational database settings.
*/ inline DataSource& WithRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { SetRelationalDatabaseConfig(std::move(value)); return *this;} /** *Amazon EventBridge settings.
*/ inline const EventBridgeDataSourceConfig& GetEventBridgeConfig() const{ return m_eventBridgeConfig; } /** *Amazon EventBridge settings.
*/ inline bool EventBridgeConfigHasBeenSet() const { return m_eventBridgeConfigHasBeenSet; } /** *Amazon EventBridge settings.
*/ inline void SetEventBridgeConfig(const EventBridgeDataSourceConfig& value) { m_eventBridgeConfigHasBeenSet = true; m_eventBridgeConfig = value; } /** *Amazon EventBridge settings.
*/ inline void SetEventBridgeConfig(EventBridgeDataSourceConfig&& value) { m_eventBridgeConfigHasBeenSet = true; m_eventBridgeConfig = std::move(value); } /** *Amazon EventBridge settings.
*/ inline DataSource& WithEventBridgeConfig(const EventBridgeDataSourceConfig& value) { SetEventBridgeConfig(value); return *this;} /** *Amazon EventBridge settings.
*/ inline DataSource& WithEventBridgeConfig(EventBridgeDataSourceConfig&& value) { SetEventBridgeConfig(std::move(value)); return *this;} private: Aws::String m_dataSourceArn; bool m_dataSourceArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; DataSourceType m_type; bool m_typeHasBeenSet = false; Aws::String m_serviceRoleArn; bool m_serviceRoleArnHasBeenSet = false; DynamodbDataSourceConfig m_dynamodbConfig; bool m_dynamodbConfigHasBeenSet = false; LambdaDataSourceConfig m_lambdaConfig; bool m_lambdaConfigHasBeenSet = false; ElasticsearchDataSourceConfig m_elasticsearchConfig; bool m_elasticsearchConfigHasBeenSet = false; OpenSearchServiceDataSourceConfig m_openSearchServiceConfig; bool m_openSearchServiceConfigHasBeenSet = false; HttpDataSourceConfig m_httpConfig; bool m_httpConfigHasBeenSet = false; RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig; bool m_relationalDatabaseConfigHasBeenSet = false; EventBridgeDataSourceConfig m_eventBridgeConfig; bool m_eventBridgeConfigHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws