/** * 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 LookoutMetrics { namespace Model { /** *

Contains information about the Amazon Relational Database Service (RDS) * configuration.

See Also:

AWS * API Reference

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

A string identifying the database instance.

*/ inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; } /** *

A string identifying the database instance.

*/ inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; } /** *

A string identifying the database instance.

*/ inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; } /** *

A string identifying the database instance.

*/ inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); } /** *

A string identifying the database instance.

*/ inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); } /** *

A string identifying the database instance.

*/ inline RDSSourceConfig& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;} /** *

A string identifying the database instance.

*/ inline RDSSourceConfig& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;} /** *

A string identifying the database instance.

*/ inline RDSSourceConfig& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;} /** *

The host name of the database.

*/ inline const Aws::String& GetDatabaseHost() const{ return m_databaseHost; } /** *

The host name of the database.

*/ inline bool DatabaseHostHasBeenSet() const { return m_databaseHostHasBeenSet; } /** *

The host name of the database.

*/ inline void SetDatabaseHost(const Aws::String& value) { m_databaseHostHasBeenSet = true; m_databaseHost = value; } /** *

The host name of the database.

*/ inline void SetDatabaseHost(Aws::String&& value) { m_databaseHostHasBeenSet = true; m_databaseHost = std::move(value); } /** *

The host name of the database.

*/ inline void SetDatabaseHost(const char* value) { m_databaseHostHasBeenSet = true; m_databaseHost.assign(value); } /** *

The host name of the database.

*/ inline RDSSourceConfig& WithDatabaseHost(const Aws::String& value) { SetDatabaseHost(value); return *this;} /** *

The host name of the database.

*/ inline RDSSourceConfig& WithDatabaseHost(Aws::String&& value) { SetDatabaseHost(std::move(value)); return *this;} /** *

The host name of the database.

*/ inline RDSSourceConfig& WithDatabaseHost(const char* value) { SetDatabaseHost(value); return *this;} /** *

The port number where the database can be accessed.

*/ inline int GetDatabasePort() const{ return m_databasePort; } /** *

The port number where the database can be accessed.

*/ inline bool DatabasePortHasBeenSet() const { return m_databasePortHasBeenSet; } /** *

The port number where the database can be accessed.

*/ inline void SetDatabasePort(int value) { m_databasePortHasBeenSet = true; m_databasePort = value; } /** *

The port number where the database can be accessed.

*/ inline RDSSourceConfig& WithDatabasePort(int value) { SetDatabasePort(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline const Aws::String& GetSecretManagerArn() const{ return m_secretManagerArn; } /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline bool SecretManagerArnHasBeenSet() const { return m_secretManagerArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline void SetSecretManagerArn(const Aws::String& value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn = value; } /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline void SetSecretManagerArn(Aws::String&& value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline void SetSecretManagerArn(const char* value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline RDSSourceConfig& WithSecretManagerArn(const Aws::String& value) { SetSecretManagerArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline RDSSourceConfig& WithSecretManagerArn(Aws::String&& value) { SetSecretManagerArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS Secrets Manager role.

*/ inline RDSSourceConfig& WithSecretManagerArn(const char* value) { SetSecretManagerArn(value); return *this;} /** *

The name of the RDS database.

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

The name of the RDS database.

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

The name of the RDS database.

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

The name of the RDS database.

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

The name of the RDS database.

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

The name of the RDS database.

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

The name of the RDS database.

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

The name of the RDS database.

*/ inline RDSSourceConfig& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *

The name of the table in the database.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The name of the table in the database.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The name of the table in the database.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The name of the table in the database.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The name of the table in the database.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The name of the table in the database.

*/ inline RDSSourceConfig& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the table in the database.

*/ inline RDSSourceConfig& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The name of the table in the database.

*/ inline RDSSourceConfig& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the role.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the role.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the role.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the role.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the role.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the role.

*/ inline RDSSourceConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the role.

*/ inline RDSSourceConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the role.

*/ inline RDSSourceConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

An object containing information about the Amazon Virtual Private Cloud (VPC) * configuration.

*/ inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; } /** *

An object containing information about the Amazon Virtual Private Cloud (VPC) * configuration.

*/ inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; } /** *

An object containing information about the Amazon Virtual Private Cloud (VPC) * configuration.

*/ inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; } /** *

An object containing information about the Amazon Virtual Private Cloud (VPC) * configuration.

*/ inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); } /** *

An object containing information about the Amazon Virtual Private Cloud (VPC) * configuration.

*/ inline RDSSourceConfig& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;} /** *

An object containing information about the Amazon Virtual Private Cloud (VPC) * configuration.

*/ inline RDSSourceConfig& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;} private: Aws::String m_dBInstanceIdentifier; bool m_dBInstanceIdentifierHasBeenSet = false; Aws::String m_databaseHost; bool m_databaseHostHasBeenSet = false; int m_databasePort; bool m_databasePortHasBeenSet = false; Aws::String m_secretManagerArn; bool m_secretManagerArnHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; VpcConfiguration m_vpcConfiguration; bool m_vpcConfigurationHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws