AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
49 inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
50 inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
51 inline RDSSourceConfig& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
52 inline RDSSourceConfig& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
53 inline RDSSourceConfig& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
55
57
60 inline const Aws::String& GetDatabaseHost() const{ return m_databaseHost; }
61 inline bool DatabaseHostHasBeenSet() const { return m_databaseHostHasBeenSet; }
62 inline void SetDatabaseHost(const Aws::String& value) { m_databaseHostHasBeenSet = true; m_databaseHost = value; }
63 inline void SetDatabaseHost(Aws::String&& value) { m_databaseHostHasBeenSet = true; m_databaseHost = std::move(value); }
64 inline void SetDatabaseHost(const char* value) { m_databaseHostHasBeenSet = true; m_databaseHost.assign(value); }
65 inline RDSSourceConfig& WithDatabaseHost(const Aws::String& value) { SetDatabaseHost(value); return *this;}
66 inline RDSSourceConfig& WithDatabaseHost(Aws::String&& value) { SetDatabaseHost(std::move(value)); return *this;}
67 inline RDSSourceConfig& WithDatabaseHost(const char* value) { SetDatabaseHost(value); return *this;}
69
71
74 inline int GetDatabasePort() const{ return m_databasePort; }
75 inline bool DatabasePortHasBeenSet() const { return m_databasePortHasBeenSet; }
76 inline void SetDatabasePort(int value) { m_databasePortHasBeenSet = true; m_databasePort = value; }
77 inline RDSSourceConfig& WithDatabasePort(int value) { SetDatabasePort(value); return *this;}
79
81
84 inline const Aws::String& GetSecretManagerArn() const{ return m_secretManagerArn; }
85 inline bool SecretManagerArnHasBeenSet() const { return m_secretManagerArnHasBeenSet; }
86 inline void SetSecretManagerArn(const Aws::String& value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn = value; }
87 inline void SetSecretManagerArn(Aws::String&& value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn = std::move(value); }
88 inline void SetSecretManagerArn(const char* value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn.assign(value); }
89 inline RDSSourceConfig& WithSecretManagerArn(const Aws::String& value) { SetSecretManagerArn(value); return *this;}
90 inline RDSSourceConfig& WithSecretManagerArn(Aws::String&& value) { SetSecretManagerArn(std::move(value)); return *this;}
91 inline RDSSourceConfig& WithSecretManagerArn(const char* value) { SetSecretManagerArn(value); return *this;}
93
95
98 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
99 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
100 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
101 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
102 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
103 inline RDSSourceConfig& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
104 inline RDSSourceConfig& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
105 inline RDSSourceConfig& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
107
109
112 inline const Aws::String& GetTableName() const{ return m_tableName; }
113 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
114 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
115 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
116 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
117 inline RDSSourceConfig& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
118 inline RDSSourceConfig& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
119 inline RDSSourceConfig& WithTableName(const char* value) { SetTableName(value); return *this;}
121
123
126 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
127 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
128 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
129 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
130 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
131 inline RDSSourceConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
132 inline RDSSourceConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
133 inline RDSSourceConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
135
137
141 inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
142 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
143 inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
144 inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
145 inline RDSSourceConfig& WithVpcConfiguration(const VpcConfiguration& value) { SetVpcConfiguration(value); return *this;}
146 inline RDSSourceConfig& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
148 private:
149
150 Aws::String m_dBInstanceIdentifier;
151 bool m_dBInstanceIdentifierHasBeenSet = false;
152
153 Aws::String m_databaseHost;
154 bool m_databaseHostHasBeenSet = false;
155
156 int m_databasePort;
157 bool m_databasePortHasBeenSet = false;
158
159 Aws::String m_secretManagerArn;
160 bool m_secretManagerArnHasBeenSet = false;
161
162 Aws::String m_databaseName;
163 bool m_databaseNameHasBeenSet = false;
164
165 Aws::String m_tableName;
166 bool m_tableNameHasBeenSet = false;
167
168 Aws::String m_roleArn;
169 bool m_roleArnHasBeenSet = false;
170
171 VpcConfiguration m_vpcConfiguration;
172 bool m_vpcConfigurationHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace LookoutMetrics
177} // namespace Aws
RDSSourceConfig & WithDBInstanceIdentifier(const Aws::String &value)
RDSSourceConfig & WithSecretManagerArn(const Aws::String &value)
RDSSourceConfig & WithDatabaseName(const char *value)
RDSSourceConfig & WithDatabasePort(int value)
RDSSourceConfig & WithDatabaseHost(const Aws::String &value)
void SetDatabaseName(const Aws::String &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTableName(const Aws::String &value)
RDSSourceConfig & WithDBInstanceIdentifier(const char *value)
RDSSourceConfig & WithRoleArn(const Aws::String &value)
RDSSourceConfig & WithDatabaseName(Aws::String &&value)
RDSSourceConfig & WithDBInstanceIdentifier(Aws::String &&value)
AWS_LOOKOUTMETRICS_API RDSSourceConfig(Aws::Utils::Json::JsonView jsonValue)
RDSSourceConfig & WithTableName(Aws::String &&value)
void SetVpcConfiguration(VpcConfiguration &&value)
void SetRoleArn(const Aws::String &value)
void SetDatabaseHost(const Aws::String &value)
void SetVpcConfiguration(const VpcConfiguration &value)
RDSSourceConfig & WithTableName(const Aws::String &value)
RDSSourceConfig & WithRoleArn(const char *value)
RDSSourceConfig & WithRoleArn(Aws::String &&value)
const Aws::String & GetDBInstanceIdentifier() const
RDSSourceConfig & WithDatabaseName(const Aws::String &value)
AWS_LOOKOUTMETRICS_API RDSSourceConfig()
RDSSourceConfig & WithSecretManagerArn(const char *value)
RDSSourceConfig & WithSecretManagerArn(Aws::String &&value)
void SetSecretManagerArn(Aws::String &&value)
const Aws::String & GetDatabaseName() const
void SetSecretManagerArn(const Aws::String &value)
RDSSourceConfig & WithDatabaseHost(Aws::String &&value)
RDSSourceConfig & WithDatabaseHost(const char *value)
const Aws::String & GetSecretManagerArn() const
const Aws::String & GetDatabaseHost() const
AWS_LOOKOUTMETRICS_API RDSSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RDSSourceConfig & WithTableName(const char *value)
void SetDBInstanceIdentifier(const Aws::String &value)
const VpcConfiguration & GetVpcConfiguration() const
void SetDBInstanceIdentifier(Aws::String &&value)
RDSSourceConfig & WithVpcConfiguration(VpcConfiguration &&value)
RDSSourceConfig & WithVpcConfiguration(const VpcConfiguration &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue