AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RDSSourceConfig.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/VpcConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LookoutMetrics
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LOOKOUTMETRICS_API RDSSourceConfig() = default;
37 AWS_LOOKOUTMETRICS_API RDSSourceConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API RDSSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDBInstanceIdentifier() const { return m_dBInstanceIdentifier; }
47 inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
48 template<typename DBInstanceIdentifierT = Aws::String>
49 void SetDBInstanceIdentifier(DBInstanceIdentifierT&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::forward<DBInstanceIdentifierT>(value); }
50 template<typename DBInstanceIdentifierT = Aws::String>
51 RDSSourceConfig& WithDBInstanceIdentifier(DBInstanceIdentifierT&& value) { SetDBInstanceIdentifier(std::forward<DBInstanceIdentifierT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDatabaseHost() const { return m_databaseHost; }
59 inline bool DatabaseHostHasBeenSet() const { return m_databaseHostHasBeenSet; }
60 template<typename DatabaseHostT = Aws::String>
61 void SetDatabaseHost(DatabaseHostT&& value) { m_databaseHostHasBeenSet = true; m_databaseHost = std::forward<DatabaseHostT>(value); }
62 template<typename DatabaseHostT = Aws::String>
63 RDSSourceConfig& WithDatabaseHost(DatabaseHostT&& value) { SetDatabaseHost(std::forward<DatabaseHostT>(value)); return *this;}
65
67
70 inline int GetDatabasePort() const { return m_databasePort; }
71 inline bool DatabasePortHasBeenSet() const { return m_databasePortHasBeenSet; }
72 inline void SetDatabasePort(int value) { m_databasePortHasBeenSet = true; m_databasePort = value; }
73 inline RDSSourceConfig& WithDatabasePort(int value) { SetDatabasePort(value); return *this;}
75
77
80 inline const Aws::String& GetSecretManagerArn() const { return m_secretManagerArn; }
81 inline bool SecretManagerArnHasBeenSet() const { return m_secretManagerArnHasBeenSet; }
82 template<typename SecretManagerArnT = Aws::String>
83 void SetSecretManagerArn(SecretManagerArnT&& value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn = std::forward<SecretManagerArnT>(value); }
84 template<typename SecretManagerArnT = Aws::String>
85 RDSSourceConfig& WithSecretManagerArn(SecretManagerArnT&& value) { SetSecretManagerArn(std::forward<SecretManagerArnT>(value)); return *this;}
87
89
92 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
93 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
94 template<typename DatabaseNameT = Aws::String>
95 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
96 template<typename DatabaseNameT = Aws::String>
97 RDSSourceConfig& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
99
101
104 inline const Aws::String& GetTableName() const { return m_tableName; }
105 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
106 template<typename TableNameT = Aws::String>
107 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
108 template<typename TableNameT = Aws::String>
109 RDSSourceConfig& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
111
113
116 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
117 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
118 template<typename RoleArnT = Aws::String>
119 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
120 template<typename RoleArnT = Aws::String>
121 RDSSourceConfig& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
123
125
129 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
130 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
131 template<typename VpcConfigurationT = VpcConfiguration>
132 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
133 template<typename VpcConfigurationT = VpcConfiguration>
134 RDSSourceConfig& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
136 private:
137
138 Aws::String m_dBInstanceIdentifier;
139 bool m_dBInstanceIdentifierHasBeenSet = false;
140
141 Aws::String m_databaseHost;
142 bool m_databaseHostHasBeenSet = false;
143
144 int m_databasePort{0};
145 bool m_databasePortHasBeenSet = false;
146
147 Aws::String m_secretManagerArn;
148 bool m_secretManagerArnHasBeenSet = false;
149
150 Aws::String m_databaseName;
151 bool m_databaseNameHasBeenSet = false;
152
153 Aws::String m_tableName;
154 bool m_tableNameHasBeenSet = false;
155
156 Aws::String m_roleArn;
157 bool m_roleArnHasBeenSet = false;
158
159 VpcConfiguration m_vpcConfiguration;
160 bool m_vpcConfigurationHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace LookoutMetrics
165} // namespace Aws
RDSSourceConfig & WithDatabasePort(int value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTMETRICS_API RDSSourceConfig()=default
RDSSourceConfig & WithDatabaseHost(DatabaseHostT &&value)
RDSSourceConfig & WithTableName(TableNameT &&value)
AWS_LOOKOUTMETRICS_API RDSSourceConfig(Aws::Utils::Json::JsonView jsonValue)
RDSSourceConfig & WithSecretManagerArn(SecretManagerArnT &&value)
void SetSecretManagerArn(SecretManagerArnT &&value)
void SetDBInstanceIdentifier(DBInstanceIdentifierT &&value)
RDSSourceConfig & WithDatabaseName(DatabaseNameT &&value)
void SetDatabaseName(DatabaseNameT &&value)
void SetDatabaseHost(DatabaseHostT &&value)
RDSSourceConfig & WithVpcConfiguration(VpcConfigurationT &&value)
const Aws::String & GetDBInstanceIdentifier() const
RDSSourceConfig & WithDBInstanceIdentifier(DBInstanceIdentifierT &&value)
const Aws::String & GetDatabaseName() const
const Aws::String & GetSecretManagerArn() const
const Aws::String & GetDatabaseHost() const
RDSSourceConfig & WithRoleArn(RoleArnT &&value)
AWS_LOOKOUTMETRICS_API RDSSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const VpcConfiguration & GetVpcConfiguration() const
void SetVpcConfiguration(VpcConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue