AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RedshiftSourceConfig.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 RedshiftSourceConfig();
37 AWS_LOOKOUTMETRICS_API RedshiftSourceConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOOKOUTMETRICS_API RedshiftSourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
47 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
48 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
49 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
50 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
51 inline RedshiftSourceConfig& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
52 inline RedshiftSourceConfig& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
53 inline RedshiftSourceConfig& WithClusterIdentifier(const char* value) { SetClusterIdentifier(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 RedshiftSourceConfig& WithDatabaseHost(const Aws::String& value) { SetDatabaseHost(value); return *this;}
66 inline RedshiftSourceConfig& WithDatabaseHost(Aws::String&& value) { SetDatabaseHost(std::move(value)); return *this;}
67 inline RedshiftSourceConfig& 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 RedshiftSourceConfig& 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 RedshiftSourceConfig& WithSecretManagerArn(const Aws::String& value) { SetSecretManagerArn(value); return *this;}
90 inline RedshiftSourceConfig& WithSecretManagerArn(Aws::String&& value) { SetSecretManagerArn(std::move(value)); return *this;}
91 inline RedshiftSourceConfig& 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 RedshiftSourceConfig& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
104 inline RedshiftSourceConfig& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
105 inline RedshiftSourceConfig& 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 RedshiftSourceConfig& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
118 inline RedshiftSourceConfig& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
119 inline RedshiftSourceConfig& WithTableName(const char* value) { SetTableName(value); return *this;}
121
123
127 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
128 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
129 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
130 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
131 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
132 inline RedshiftSourceConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
133 inline RedshiftSourceConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
134 inline RedshiftSourceConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
136
138
142 inline const VpcConfiguration& GetVpcConfiguration() const{ return m_vpcConfiguration; }
143 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
144 inline void SetVpcConfiguration(const VpcConfiguration& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = value; }
145 inline void SetVpcConfiguration(VpcConfiguration&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::move(value); }
147 inline RedshiftSourceConfig& WithVpcConfiguration(VpcConfiguration&& value) { SetVpcConfiguration(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_clusterIdentifier;
152 bool m_clusterIdentifierHasBeenSet = false;
153
154 Aws::String m_databaseHost;
155 bool m_databaseHostHasBeenSet = false;
156
157 int m_databasePort;
158 bool m_databasePortHasBeenSet = false;
159
160 Aws::String m_secretManagerArn;
161 bool m_secretManagerArnHasBeenSet = false;
162
163 Aws::String m_databaseName;
164 bool m_databaseNameHasBeenSet = false;
165
166 Aws::String m_tableName;
167 bool m_tableNameHasBeenSet = false;
168
169 Aws::String m_roleArn;
170 bool m_roleArnHasBeenSet = false;
171
172 VpcConfiguration m_vpcConfiguration;
173 bool m_vpcConfigurationHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace LookoutMetrics
178} // namespace Aws
RedshiftSourceConfig & WithSecretManagerArn(const Aws::String &value)
AWS_LOOKOUTMETRICS_API RedshiftSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
RedshiftSourceConfig & WithDatabaseName(const char *value)
RedshiftSourceConfig & WithSecretManagerArn(Aws::String &&value)
RedshiftSourceConfig & WithClusterIdentifier(Aws::String &&value)
RedshiftSourceConfig & WithDatabaseName(const Aws::String &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVpcConfiguration(const VpcConfiguration &value)
RedshiftSourceConfig & WithTableName(Aws::String &&value)
RedshiftSourceConfig & WithVpcConfiguration(const VpcConfiguration &value)
RedshiftSourceConfig & WithTableName(const char *value)
RedshiftSourceConfig & WithDatabaseName(Aws::String &&value)
RedshiftSourceConfig & WithDatabaseHost(Aws::String &&value)
RedshiftSourceConfig & WithClusterIdentifier(const Aws::String &value)
AWS_LOOKOUTMETRICS_API RedshiftSourceConfig(Aws::Utils::Json::JsonView jsonValue)
RedshiftSourceConfig & WithDatabaseHost(const Aws::String &value)
RedshiftSourceConfig & WithDatabaseHost(const char *value)
RedshiftSourceConfig & WithClusterIdentifier(const char *value)
RedshiftSourceConfig & WithRoleArn(Aws::String &&value)
RedshiftSourceConfig & WithTableName(const Aws::String &value)
RedshiftSourceConfig & WithRoleArn(const char *value)
RedshiftSourceConfig & WithSecretManagerArn(const char *value)
RedshiftSourceConfig & WithDatabasePort(int value)
RedshiftSourceConfig & WithRoleArn(const Aws::String &value)
RedshiftSourceConfig & WithVpcConfiguration(VpcConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue