/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace AppSync { namespace Model { /** */ class AWS_APPSYNC_API UpdateDataSourceRequest : public AppSyncRequest { public: UpdateDataSourceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; } Aws::String SerializePayload() const override; /** *

The API ID.

*/ inline const Aws::String& GetApiId() const{ return m_apiId; } /** *

The API ID.

*/ inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; } /** *

The API ID.

*/ inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; } /** *

The API ID.

*/ inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); } /** *

The API ID.

*/ inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); } /** *

The API ID.

*/ inline UpdateDataSourceRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} /** *

The API ID.

*/ inline UpdateDataSourceRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;} /** *

The API ID.

*/ inline UpdateDataSourceRequest& WithApiId(const char* value) { SetApiId(value); return *this;} /** *

The new name for the data source.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The new name for the data source.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The new name for the data source.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The new name for the data source.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The new name for the data source.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The new name for the data source.

*/ inline UpdateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The new name for the data source.

*/ inline UpdateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The new name for the data source.

*/ inline UpdateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The new description for the data source.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The new description for the data source.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The new description for the data source.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The new description for the data source.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The new description for the data source.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The new description for the data source.

*/ inline UpdateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The new description for the data source.

*/ inline UpdateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The new description for the data source.

*/ inline UpdateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The new data source type.

*/ inline const DataSourceType& GetType() const{ return m_type; } /** *

The new data source type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The new data source type.

*/ inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The new data source type.

*/ inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The new data source type.

*/ inline UpdateDataSourceRequest& WithType(const DataSourceType& value) { SetType(value); return *this;} /** *

The new data source type.

*/ inline UpdateDataSourceRequest& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;} /** *

The new service role ARN for the data source.

*/ inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; } /** *

The new service role ARN for the data source.

*/ inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; } /** *

The new service role ARN for the data source.

*/ inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; } /** *

The new service role ARN for the data source.

*/ inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); } /** *

The new service role ARN for the data source.

*/ inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); } /** *

The new service role ARN for the data source.

*/ inline UpdateDataSourceRequest& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;} /** *

The new service role ARN for the data source.

*/ inline UpdateDataSourceRequest& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;} /** *

The new service role ARN for the data source.

*/ inline UpdateDataSourceRequest& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;} /** *

The new Amazon DynamoDB configuration.

*/ inline const DynamodbDataSourceConfig& GetDynamodbConfig() const{ return m_dynamodbConfig; } /** *

The new Amazon DynamoDB configuration.

*/ inline bool DynamodbConfigHasBeenSet() const { return m_dynamodbConfigHasBeenSet; } /** *

The new Amazon DynamoDB configuration.

*/ inline void SetDynamodbConfig(const DynamodbDataSourceConfig& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = value; } /** *

The new Amazon DynamoDB configuration.

*/ inline void SetDynamodbConfig(DynamodbDataSourceConfig&& value) { m_dynamodbConfigHasBeenSet = true; m_dynamodbConfig = std::move(value); } /** *

The new Amazon DynamoDB configuration.

*/ inline UpdateDataSourceRequest& WithDynamodbConfig(const DynamodbDataSourceConfig& value) { SetDynamodbConfig(value); return *this;} /** *

The new Amazon DynamoDB configuration.

*/ inline UpdateDataSourceRequest& WithDynamodbConfig(DynamodbDataSourceConfig&& value) { SetDynamodbConfig(std::move(value)); return *this;} /** *

The new AWS Lambda configuration.

*/ inline const LambdaDataSourceConfig& GetLambdaConfig() const{ return m_lambdaConfig; } /** *

The new AWS Lambda configuration.

*/ inline bool LambdaConfigHasBeenSet() const { return m_lambdaConfigHasBeenSet; } /** *

The new AWS Lambda configuration.

*/ inline void SetLambdaConfig(const LambdaDataSourceConfig& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = value; } /** *

The new AWS Lambda configuration.

*/ inline void SetLambdaConfig(LambdaDataSourceConfig&& value) { m_lambdaConfigHasBeenSet = true; m_lambdaConfig = std::move(value); } /** *

The new AWS Lambda configuration.

*/ inline UpdateDataSourceRequest& WithLambdaConfig(const LambdaDataSourceConfig& value) { SetLambdaConfig(value); return *this;} /** *

The new AWS Lambda configuration.

*/ inline UpdateDataSourceRequest& WithLambdaConfig(LambdaDataSourceConfig&& value) { SetLambdaConfig(std::move(value)); return *this;} /** *

The new Elasticsearch Service configuration.

*/ inline const ElasticsearchDataSourceConfig& GetElasticsearchConfig() const{ return m_elasticsearchConfig; } /** *

The new Elasticsearch Service configuration.

*/ inline bool ElasticsearchConfigHasBeenSet() const { return m_elasticsearchConfigHasBeenSet; } /** *

The new Elasticsearch Service configuration.

*/ inline void SetElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = value; } /** *

The new Elasticsearch Service configuration.

*/ inline void SetElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { m_elasticsearchConfigHasBeenSet = true; m_elasticsearchConfig = std::move(value); } /** *

The new Elasticsearch Service configuration.

*/ inline UpdateDataSourceRequest& WithElasticsearchConfig(const ElasticsearchDataSourceConfig& value) { SetElasticsearchConfig(value); return *this;} /** *

The new Elasticsearch Service configuration.

*/ inline UpdateDataSourceRequest& WithElasticsearchConfig(ElasticsearchDataSourceConfig&& value) { SetElasticsearchConfig(std::move(value)); return *this;} /** *

The new HTTP endpoint configuration.

*/ inline const HttpDataSourceConfig& GetHttpConfig() const{ return m_httpConfig; } /** *

The new HTTP endpoint configuration.

*/ inline bool HttpConfigHasBeenSet() const { return m_httpConfigHasBeenSet; } /** *

The new HTTP endpoint configuration.

*/ inline void SetHttpConfig(const HttpDataSourceConfig& value) { m_httpConfigHasBeenSet = true; m_httpConfig = value; } /** *

The new HTTP endpoint configuration.

*/ inline void SetHttpConfig(HttpDataSourceConfig&& value) { m_httpConfigHasBeenSet = true; m_httpConfig = std::move(value); } /** *

The new HTTP endpoint configuration.

*/ inline UpdateDataSourceRequest& WithHttpConfig(const HttpDataSourceConfig& value) { SetHttpConfig(value); return *this;} /** *

The new HTTP endpoint configuration.

*/ inline UpdateDataSourceRequest& WithHttpConfig(HttpDataSourceConfig&& value) { SetHttpConfig(std::move(value)); return *this;} /** *

The new relational database configuration.

*/ inline const RelationalDatabaseDataSourceConfig& GetRelationalDatabaseConfig() const{ return m_relationalDatabaseConfig; } /** *

The new relational database configuration.

*/ inline bool RelationalDatabaseConfigHasBeenSet() const { return m_relationalDatabaseConfigHasBeenSet; } /** *

The new relational database configuration.

*/ inline void SetRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = value; } /** *

The new relational database configuration.

*/ inline void SetRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { m_relationalDatabaseConfigHasBeenSet = true; m_relationalDatabaseConfig = std::move(value); } /** *

The new relational database configuration.

*/ inline UpdateDataSourceRequest& WithRelationalDatabaseConfig(const RelationalDatabaseDataSourceConfig& value) { SetRelationalDatabaseConfig(value); return *this;} /** *

The new relational database configuration.

*/ inline UpdateDataSourceRequest& WithRelationalDatabaseConfig(RelationalDatabaseDataSourceConfig&& value) { SetRelationalDatabaseConfig(std::move(value)); return *this;} private: Aws::String m_apiId; bool m_apiIdHasBeenSet; 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