AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClusterIdentifierT = Aws::String>
49 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
50 template<typename ClusterIdentifierT = Aws::String>
51 RedshiftSourceConfig& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(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 RedshiftSourceConfig& 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 RedshiftSourceConfig& 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 RedshiftSourceConfig& 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 RedshiftSourceConfig& 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 RedshiftSourceConfig& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
111
113
117 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
118 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
119 template<typename RoleArnT = Aws::String>
120 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
121 template<typename RoleArnT = Aws::String>
122 RedshiftSourceConfig& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
124
126
130 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
131 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
132 template<typename VpcConfigurationT = VpcConfiguration>
133 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
134 template<typename VpcConfigurationT = VpcConfiguration>
135 RedshiftSourceConfig& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
137 private:
138
139 Aws::String m_clusterIdentifier;
140 bool m_clusterIdentifierHasBeenSet = false;
141
142 Aws::String m_databaseHost;
143 bool m_databaseHostHasBeenSet = false;
144
145 int m_databasePort{0};
146 bool m_databasePortHasBeenSet = false;
147
148 Aws::String m_secretManagerArn;
149 bool m_secretManagerArnHasBeenSet = false;
150
151 Aws::String m_databaseName;
152 bool m_databaseNameHasBeenSet = false;
153
154 Aws::String m_tableName;
155 bool m_tableNameHasBeenSet = false;
156
157 Aws::String m_roleArn;
158 bool m_roleArnHasBeenSet = false;
159
160 VpcConfiguration m_vpcConfiguration;
161 bool m_vpcConfigurationHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace LookoutMetrics
166} // namespace Aws
RedshiftSourceConfig & WithClusterIdentifier(ClusterIdentifierT &&value)
AWS_LOOKOUTMETRICS_API RedshiftSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
RedshiftSourceConfig & WithSecretManagerArn(SecretManagerArnT &&value)
RedshiftSourceConfig & WithVpcConfiguration(VpcConfigurationT &&value)
RedshiftSourceConfig & WithDatabaseName(DatabaseNameT &&value)
RedshiftSourceConfig & WithTableName(TableNameT &&value)
RedshiftSourceConfig & WithDatabaseHost(DatabaseHostT &&value)
AWS_LOOKOUTMETRICS_API RedshiftSourceConfig(Aws::Utils::Json::JsonView jsonValue)
void SetClusterIdentifier(ClusterIdentifierT &&value)
RedshiftSourceConfig & WithDatabasePort(int value)
RedshiftSourceConfig & WithRoleArn(RoleArnT &&value)
AWS_LOOKOUTMETRICS_API RedshiftSourceConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue