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

Describes an app's data source.

See Also:

AWS * API Reference

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

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

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

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

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

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

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

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

*/ inline DataSource& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

*/ inline DataSource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The data source's type, AutoSelectOpsworksMysqlInstance, * OpsworksMysqlInstance, RdsDbInstance, or * None.

*/ inline DataSource& WithType(const char* value) { SetType(value); return *this;} /** *

The data source's ARN.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The data source's ARN.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The data source's ARN.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The data source's ARN.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The data source's ARN.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The data source's ARN.

*/ inline DataSource& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The data source's ARN.

*/ inline DataSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The data source's ARN.

*/ inline DataSource& WithArn(const char* value) { SetArn(value); return *this;} /** *

The database name.

*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *

The database name.

*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *

The database name.

*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *

The database name.

*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *

The database name.

*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *

The database name.

*/ inline DataSource& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The database name.

*/ inline DataSource& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *

The database name.

*/ inline DataSource& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws