AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RedshiftDataParameters.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 EventBridge
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_EVENTBRIDGE_API RedshiftDataParameters();
38 AWS_EVENTBRIDGE_API RedshiftDataParameters(Aws::Utils::Json::JsonView jsonValue);
40 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetSecretManagerArn() const{ return m_secretManagerArn; }
49 inline bool SecretManagerArnHasBeenSet() const { return m_secretManagerArnHasBeenSet; }
50 inline void SetSecretManagerArn(const Aws::String& value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn = value; }
51 inline void SetSecretManagerArn(Aws::String&& value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn = std::move(value); }
52 inline void SetSecretManagerArn(const char* value) { m_secretManagerArnHasBeenSet = true; m_secretManagerArn.assign(value); }
53 inline RedshiftDataParameters& WithSecretManagerArn(const Aws::String& value) { SetSecretManagerArn(value); return *this;}
54 inline RedshiftDataParameters& WithSecretManagerArn(Aws::String&& value) { SetSecretManagerArn(std::move(value)); return *this;}
55 inline RedshiftDataParameters& WithSecretManagerArn(const char* value) { SetSecretManagerArn(value); return *this;}
57
59
63 inline const Aws::String& GetDatabase() const{ return m_database; }
64 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
65 inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
66 inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
67 inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
68 inline RedshiftDataParameters& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
69 inline RedshiftDataParameters& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
70 inline RedshiftDataParameters& WithDatabase(const char* value) { SetDatabase(value); return *this;}
72
74
78 inline const Aws::String& GetDbUser() const{ return m_dbUser; }
79 inline bool DbUserHasBeenSet() const { return m_dbUserHasBeenSet; }
80 inline void SetDbUser(const Aws::String& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
81 inline void SetDbUser(Aws::String&& value) { m_dbUserHasBeenSet = true; m_dbUser = std::move(value); }
82 inline void SetDbUser(const char* value) { m_dbUserHasBeenSet = true; m_dbUser.assign(value); }
83 inline RedshiftDataParameters& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
84 inline RedshiftDataParameters& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;}
85 inline RedshiftDataParameters& WithDbUser(const char* value) { SetDbUser(value); return *this;}
87
89
92 inline const Aws::String& GetSql() const{ return m_sql; }
93 inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
94 inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
95 inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
96 inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
97 inline RedshiftDataParameters& WithSql(const Aws::String& value) { SetSql(value); return *this;}
98 inline RedshiftDataParameters& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
99 inline RedshiftDataParameters& WithSql(const char* value) { SetSql(value); return *this;}
101
103
107 inline const Aws::String& GetStatementName() const{ return m_statementName; }
108 inline bool StatementNameHasBeenSet() const { return m_statementNameHasBeenSet; }
109 inline void SetStatementName(const Aws::String& value) { m_statementNameHasBeenSet = true; m_statementName = value; }
110 inline void SetStatementName(Aws::String&& value) { m_statementNameHasBeenSet = true; m_statementName = std::move(value); }
111 inline void SetStatementName(const char* value) { m_statementNameHasBeenSet = true; m_statementName.assign(value); }
112 inline RedshiftDataParameters& WithStatementName(const Aws::String& value) { SetStatementName(value); return *this;}
113 inline RedshiftDataParameters& WithStatementName(Aws::String&& value) { SetStatementName(std::move(value)); return *this;}
114 inline RedshiftDataParameters& WithStatementName(const char* value) { SetStatementName(value); return *this;}
116
118
122 inline bool GetWithEvent() const{ return m_withEvent; }
123 inline bool WithEventHasBeenSet() const { return m_withEventHasBeenSet; }
124 inline void SetWithEvent(bool value) { m_withEventHasBeenSet = true; m_withEvent = value; }
125 inline RedshiftDataParameters& WithWithEvent(bool value) { SetWithEvent(value); return *this;}
127
129
136 inline const Aws::Vector<Aws::String>& GetSqls() const{ return m_sqls; }
137 inline bool SqlsHasBeenSet() const { return m_sqlsHasBeenSet; }
138 inline void SetSqls(const Aws::Vector<Aws::String>& value) { m_sqlsHasBeenSet = true; m_sqls = value; }
139 inline void SetSqls(Aws::Vector<Aws::String>&& value) { m_sqlsHasBeenSet = true; m_sqls = std::move(value); }
140 inline RedshiftDataParameters& WithSqls(const Aws::Vector<Aws::String>& value) { SetSqls(value); return *this;}
141 inline RedshiftDataParameters& WithSqls(Aws::Vector<Aws::String>&& value) { SetSqls(std::move(value)); return *this;}
142 inline RedshiftDataParameters& AddSqls(const Aws::String& value) { m_sqlsHasBeenSet = true; m_sqls.push_back(value); return *this; }
143 inline RedshiftDataParameters& AddSqls(Aws::String&& value) { m_sqlsHasBeenSet = true; m_sqls.push_back(std::move(value)); return *this; }
144 inline RedshiftDataParameters& AddSqls(const char* value) { m_sqlsHasBeenSet = true; m_sqls.push_back(value); return *this; }
146 private:
147
148 Aws::String m_secretManagerArn;
149 bool m_secretManagerArnHasBeenSet = false;
150
151 Aws::String m_database;
152 bool m_databaseHasBeenSet = false;
153
154 Aws::String m_dbUser;
155 bool m_dbUserHasBeenSet = false;
156
157 Aws::String m_sql;
158 bool m_sqlHasBeenSet = false;
159
160 Aws::String m_statementName;
161 bool m_statementNameHasBeenSet = false;
162
163 bool m_withEvent;
164 bool m_withEventHasBeenSet = false;
165
167 bool m_sqlsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace EventBridge
172} // namespace Aws
RedshiftDataParameters & WithDbUser(const char *value)
RedshiftDataParameters & WithSql(const Aws::String &value)
RedshiftDataParameters & WithSecretManagerArn(const char *value)
RedshiftDataParameters & WithStatementName(const Aws::String &value)
RedshiftDataParameters & AddSqls(const Aws::String &value)
RedshiftDataParameters & WithSqls(const Aws::Vector< Aws::String > &value)
RedshiftDataParameters & WithDatabase(const Aws::String &value)
RedshiftDataParameters & WithSqls(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSqls() const
RedshiftDataParameters & WithSecretManagerArn(Aws::String &&value)
RedshiftDataParameters & WithDbUser(const Aws::String &value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API RedshiftDataParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
RedshiftDataParameters & WithDatabase(const char *value)
void SetSqls(Aws::Vector< Aws::String > &&value)
RedshiftDataParameters & WithStatementName(Aws::String &&value)
RedshiftDataParameters & WithSql(const char *value)
RedshiftDataParameters & WithSecretManagerArn(const Aws::String &value)
RedshiftDataParameters & AddSqls(Aws::String &&value)
void SetSqls(const Aws::Vector< Aws::String > &value)
RedshiftDataParameters & WithDatabase(Aws::String &&value)
AWS_EVENTBRIDGE_API RedshiftDataParameters(Aws::Utils::Json::JsonView jsonValue)
RedshiftDataParameters & WithDbUser(Aws::String &&value)
RedshiftDataParameters & WithWithEvent(bool value)
RedshiftDataParameters & WithSql(Aws::String &&value)
RedshiftDataParameters & WithStatementName(const char *value)
RedshiftDataParameters & AddSqls(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue