/**
* 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 ARN.
*/ inline const Aws::String& GetDataSourceArn() const{ return m_dataSourceArn; } /** *The data source ARN.
*/ inline bool DataSourceArnHasBeenSet() const { return m_dataSourceArnHasBeenSet; } /** *The data source ARN.
*/ inline void SetDataSourceArn(const Aws::String& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = value; } /** *The data source ARN.
*/ inline void SetDataSourceArn(Aws::String&& value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn = std::move(value); } /** *The data source ARN.
*/ inline void SetDataSourceArn(const char* value) { m_dataSourceArnHasBeenSet = true; m_dataSourceArn.assign(value); } /** *The data source ARN.
*/ inline DataSource& WithDataSourceArn(const Aws::String& value) { SetDataSourceArn(value); return *this;} /** *The data source ARN.
*/ inline DataSource& WithDataSourceArn(Aws::String&& value) { SetDataSourceArn(std::move(value)); return *this;} /** *The data source 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.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service * domain.
AWS_LAMBDA: The data source is an AWS Lambda * function.
NONE: There is no data source. This type is * used when you wish to invoke a GraphQL operation without connecting to a data * source, such as performing data transformation with resolvers or triggering a * subscription to be invoked 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.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service * domain.
AWS_LAMBDA: The data source is an AWS Lambda * function.
NONE: There is no data source. This type is * used when you wish to invoke a GraphQL operation without connecting to a data * source, such as performing data transformation with resolvers or triggering a * subscription to be invoked 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.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service * domain.
AWS_LAMBDA: The data source is an AWS Lambda * function.
NONE: There is no data source. This type is * used when you wish to invoke a GraphQL operation without connecting to a data * source, such as performing data transformation with resolvers or triggering a * subscription to be invoked 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.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service * domain.
AWS_LAMBDA: The data source is an AWS Lambda * function.
NONE: There is no data source. This type is * used when you wish to invoke a GraphQL operation without connecting to a data * source, such as performing data transformation with resolvers or triggering a * subscription to be invoked 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.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service * domain.
AWS_LAMBDA: The data source is an AWS Lambda * function.
NONE: There is no data source. This type is * used when you wish to invoke a GraphQL operation without connecting to a data * source, such as performing data transformation with resolvers or triggering a * subscription to be invoked 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.
AMAZON_DYNAMODB: The * data source is an Amazon DynamoDB table.
* AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service * domain.
AWS_LAMBDA: The data source is an AWS Lambda * function.
NONE: There is no data source. This type is * used when you wish to invoke a GraphQL operation without connecting to a data * source, such as performing data transformation with resolvers or triggering a * subscription to be invoked from a mutation.
HTTP: The * data source is an HTTP endpoint.
RELATIONAL_DATABASE: * The data source is a relational database.
The AWS IAM service role 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 AWS IAM service role ARN for the data source. The system assumes this * role when accessing the data source.
*/ inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; } /** *The AWS IAM service role 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 AWS IAM service role 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 AWS IAM service role 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 AWS IAM service role 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 AWS IAM service role 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 AWS IAM service role 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;} /** *Amazon DynamoDB settings.
*/ inline const DynamodbDataSourceConfig& GetDynamodbConfig() const{ return m_dynamodbConfig; } /** *Amazon DynamoDB settings.
*/ inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; } /** *Amazon DynamoDB settings.
*/ inline void SetDynamodbConfig(const DynamodbDataSourceConfig& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = value; } /** *Amazon DynamoDB settings.
*/ inline void SetDynamodbConfig(DynamodbDataSourceConfig&& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = std::move(value); } /** *Amazon DynamoDB settings.
*/ inline DataSource& WithDynamodbConfig(const DynamodbDataSourceConfig& value) { SetDynamodbConfig(value); return *this;} /** *Amazon DynamoDB settings.
*/ inline DataSource& WithDynamodbConfig(DynamodbDataSourceConfig&& value) { SetDynamodbConfig(std::move(value)); return *this;} /** *AWS Lambda settings.
*/ inline const LambdaDataSourceConfig& GetLambdaConfig() const{ return m_lambdaConfig; } /** *AWS Lambda settings.
*/ inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; } /** *AWS Lambda settings.
*/ inline void SetLambdaConfig(const LambdaDataSourceConfig& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = value; } /** *AWS Lambda settings.
*/ inline void SetLambdaConfig(LambdaDataSourceConfig&& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = std::move(value); } /** *AWS Lambda settings.
*/ inline DataSource& WithLambdaConfig(const LambdaDataSourceConfig& value) { SetLambdaConfig(value); return *this;} /** *AWS Lambda settings.
*/ inline DataSource& WithLambdaConfig(LambdaDataSourceConfig&& value) { SetLambdaConfig(std::move(value)); return *this;} /** *Amazon Elasticsearch Service settings.
*/ inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const{ return m_elasticsearchConfig; } /** *Amazon Elasticsearch Service settings.
*/ inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; } /** *Amazon Elasticsearch Service settings.
*/ inline void SetElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = value; } /** *Amazon Elasticsearch Service settings.
*/ inline void SetElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = std::move(value); } /** *Amazon Elasticsearch Service settings.
*/ inline DataSource& WithElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { SetElasticsearchConfig(value); return *this;} /** *Amazon Elasticsearch Service settings.
*/ inline DataSource& WithElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { SetElasticsearchConfig(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;} private: Aws::String m_dataSourceArn; bool m_dataSourceArnHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; DataSourceType m_type; bool m_typeHasBeenSet; Aws::String m_serviceRoleArn; bool m_serviceRoleArnHasBeenSet; DynamodbDataSourceConfig m_dynamodbConfig; bool m_dynamodbConfigHasBeenSet; LambdaDataSourceConfig m_lambdaConfig; bool m_lambdaConfigHasBeenSet; ElasticsearchDataSourceConfig m_elasticsearchConfig; bool m_elasticsearchConfigHasBeenSet; HttpDataSourceConfig m_httpConfig; bool m_httpConfigHasBeenSet; RelationalDatabaseDataSourceConfig m_relationalDatabaseConfig; bool m_relationalDatabaseConfigHasBeenSet; }; } // namespace Model } // namespace AppSync } // namespace Aws