/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppSync { namespace Model { /** *

Describes a relational database data source configuration.

See * Also:

AWS * API Reference

*/ class RelationalDatabaseDataSourceConfig { public: AWS_APPSYNC_API RelationalDatabaseDataSourceConfig(); AWS_APPSYNC_API RelationalDatabaseDataSourceConfig(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API RelationalDatabaseDataSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Source type for the relational database.

  • * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon * Relational Database Service (Amazon RDS) HTTP endpoint.

*/ inline const RelationalDatabaseSourceType& GetRelationalDatabaseSourceType() const{ return m_relationalDatabaseSourceType; } /** *

Source type for the relational database.

  • * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon * Relational Database Service (Amazon RDS) HTTP endpoint.

*/ inline bool RelationalDatabaseSourceTypeHasBeenSet() const { return m_relationalDatabaseSourceTypeHasBeenSet; } /** *

Source type for the relational database.

  • * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon * Relational Database Service (Amazon RDS) HTTP endpoint.

*/ inline void SetRelationalDatabaseSourceType(const RelationalDatabaseSourceType& value) { m_relationalDatabaseSourceTypeHasBeenSet = true; m_relationalDatabaseSourceType = value; } /** *

Source type for the relational database.

  • * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon * Relational Database Service (Amazon RDS) HTTP endpoint.

*/ inline void SetRelationalDatabaseSourceType(RelationalDatabaseSourceType&& value) { m_relationalDatabaseSourceTypeHasBeenSet = true; m_relationalDatabaseSourceType = std::move(value); } /** *

Source type for the relational database.

  • * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon * Relational Database Service (Amazon RDS) HTTP endpoint.

*/ inline RelationalDatabaseDataSourceConfig& WithRelationalDatabaseSourceType(const RelationalDatabaseSourceType& value) { SetRelationalDatabaseSourceType(value); return *this;} /** *

Source type for the relational database.

  • * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon * Relational Database Service (Amazon RDS) HTTP endpoint.

*/ inline RelationalDatabaseDataSourceConfig& WithRelationalDatabaseSourceType(RelationalDatabaseSourceType&& value) { SetRelationalDatabaseSourceType(std::move(value)); return *this;} /** *

Amazon RDS HTTP endpoint settings.

*/ inline const RdsHttpEndpointConfig& GetRdsHttpEndpointConfig() const{ return m_rdsHttpEndpointConfig; } /** *

Amazon RDS HTTP endpoint settings.

*/ inline bool RdsHttpEndpointConfigHasBeenSet() const { return m_rdsHttpEndpointConfigHasBeenSet; } /** *

Amazon RDS HTTP endpoint settings.

*/ inline void SetRdsHttpEndpointConfig(const RdsHttpEndpointConfig& value) { m_rdsHttpEndpointConfigHasBeenSet = true; m_rdsHttpEndpointConfig = value; } /** *

Amazon RDS HTTP endpoint settings.

*/ inline void SetRdsHttpEndpointConfig(RdsHttpEndpointConfig&& value) { m_rdsHttpEndpointConfigHasBeenSet = true; m_rdsHttpEndpointConfig = std::move(value); } /** *

Amazon RDS HTTP endpoint settings.

*/ inline RelationalDatabaseDataSourceConfig& WithRdsHttpEndpointConfig(const RdsHttpEndpointConfig& value) { SetRdsHttpEndpointConfig(value); return *this;} /** *

Amazon RDS HTTP endpoint settings.

*/ inline RelationalDatabaseDataSourceConfig& WithRdsHttpEndpointConfig(RdsHttpEndpointConfig&& value) { SetRdsHttpEndpointConfig(std::move(value)); return *this;} private: RelationalDatabaseSourceType m_relationalDatabaseSourceType; bool m_relationalDatabaseSourceTypeHasBeenSet = false; RdsHttpEndpointConfig m_rdsHttpEndpointConfig; bool m_rdsHttpEndpointConfigHasBeenSet = false; }; } // namespace Model } // namespace AppSync } // namespace Aws