AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Namespace.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift-serverless/model/NamespaceStatus.h>
12#include <aws/redshift-serverless/model/LogExport.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace RedshiftServerless
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_REDSHIFTSERVERLESS_API Namespace();
39 AWS_REDSHIFTSERVERLESS_API Namespace(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REDSHIFTSERVERLESS_API Namespace& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetAdminPasswordSecretArn() const{ return m_adminPasswordSecretArn; }
50 inline bool AdminPasswordSecretArnHasBeenSet() const { return m_adminPasswordSecretArnHasBeenSet; }
51 inline void SetAdminPasswordSecretArn(const Aws::String& value) { m_adminPasswordSecretArnHasBeenSet = true; m_adminPasswordSecretArn = value; }
52 inline void SetAdminPasswordSecretArn(Aws::String&& value) { m_adminPasswordSecretArnHasBeenSet = true; m_adminPasswordSecretArn = std::move(value); }
53 inline void SetAdminPasswordSecretArn(const char* value) { m_adminPasswordSecretArnHasBeenSet = true; m_adminPasswordSecretArn.assign(value); }
54 inline Namespace& WithAdminPasswordSecretArn(const Aws::String& value) { SetAdminPasswordSecretArn(value); return *this;}
55 inline Namespace& WithAdminPasswordSecretArn(Aws::String&& value) { SetAdminPasswordSecretArn(std::move(value)); return *this;}
56 inline Namespace& WithAdminPasswordSecretArn(const char* value) { SetAdminPasswordSecretArn(value); return *this;}
58
60
64 inline const Aws::String& GetAdminPasswordSecretKmsKeyId() const{ return m_adminPasswordSecretKmsKeyId; }
65 inline bool AdminPasswordSecretKmsKeyIdHasBeenSet() const { return m_adminPasswordSecretKmsKeyIdHasBeenSet; }
66 inline void SetAdminPasswordSecretKmsKeyId(const Aws::String& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = value; }
67 inline void SetAdminPasswordSecretKmsKeyId(Aws::String&& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = std::move(value); }
68 inline void SetAdminPasswordSecretKmsKeyId(const char* value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId.assign(value); }
70 inline Namespace& WithAdminPasswordSecretKmsKeyId(Aws::String&& value) { SetAdminPasswordSecretKmsKeyId(std::move(value)); return *this;}
71 inline Namespace& WithAdminPasswordSecretKmsKeyId(const char* value) { SetAdminPasswordSecretKmsKeyId(value); return *this;}
73
75
79 inline const Aws::String& GetAdminUsername() const{ return m_adminUsername; }
80 inline bool AdminUsernameHasBeenSet() const { return m_adminUsernameHasBeenSet; }
81 inline void SetAdminUsername(const Aws::String& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = value; }
82 inline void SetAdminUsername(Aws::String&& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = std::move(value); }
83 inline void SetAdminUsername(const char* value) { m_adminUsernameHasBeenSet = true; m_adminUsername.assign(value); }
84 inline Namespace& WithAdminUsername(const Aws::String& value) { SetAdminUsername(value); return *this;}
85 inline Namespace& WithAdminUsername(Aws::String&& value) { SetAdminUsername(std::move(value)); return *this;}
86 inline Namespace& WithAdminUsername(const char* value) { SetAdminUsername(value); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
94 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
95 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
96 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
97 inline Namespace& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
98 inline Namespace& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
100
102
105 inline const Aws::String& GetDbName() const{ return m_dbName; }
106 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
107 inline void SetDbName(const Aws::String& value) { m_dbNameHasBeenSet = true; m_dbName = value; }
108 inline void SetDbName(Aws::String&& value) { m_dbNameHasBeenSet = true; m_dbName = std::move(value); }
109 inline void SetDbName(const char* value) { m_dbNameHasBeenSet = true; m_dbName.assign(value); }
110 inline Namespace& WithDbName(const Aws::String& value) { SetDbName(value); return *this;}
111 inline Namespace& WithDbName(Aws::String&& value) { SetDbName(std::move(value)); return *this;}
112 inline Namespace& WithDbName(const char* value) { SetDbName(value); return *this;}
114
116
120 inline const Aws::String& GetDefaultIamRoleArn() const{ return m_defaultIamRoleArn; }
121 inline bool DefaultIamRoleArnHasBeenSet() const { return m_defaultIamRoleArnHasBeenSet; }
122 inline void SetDefaultIamRoleArn(const Aws::String& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = value; }
123 inline void SetDefaultIamRoleArn(Aws::String&& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = std::move(value); }
124 inline void SetDefaultIamRoleArn(const char* value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn.assign(value); }
125 inline Namespace& WithDefaultIamRoleArn(const Aws::String& value) { SetDefaultIamRoleArn(value); return *this;}
126 inline Namespace& WithDefaultIamRoleArn(Aws::String&& value) { SetDefaultIamRoleArn(std::move(value)); return *this;}
127 inline Namespace& WithDefaultIamRoleArn(const char* value) { SetDefaultIamRoleArn(value); return *this;}
129
131
134 inline const Aws::Vector<Aws::String>& GetIamRoles() const{ return m_iamRoles; }
135 inline bool IamRolesHasBeenSet() const { return m_iamRolesHasBeenSet; }
136 inline void SetIamRoles(const Aws::Vector<Aws::String>& value) { m_iamRolesHasBeenSet = true; m_iamRoles = value; }
137 inline void SetIamRoles(Aws::Vector<Aws::String>&& value) { m_iamRolesHasBeenSet = true; m_iamRoles = std::move(value); }
138 inline Namespace& WithIamRoles(const Aws::Vector<Aws::String>& value) { SetIamRoles(value); return *this;}
139 inline Namespace& WithIamRoles(Aws::Vector<Aws::String>&& value) { SetIamRoles(std::move(value)); return *this;}
140 inline Namespace& AddIamRoles(const Aws::String& value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(value); return *this; }
141 inline Namespace& AddIamRoles(Aws::String&& value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(std::move(value)); return *this; }
142 inline Namespace& AddIamRoles(const char* value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(value); return *this; }
144
146
150 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
151 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
152 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
153 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
154 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
155 inline Namespace& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
156 inline Namespace& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
157 inline Namespace& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
159
161
165 inline const Aws::Vector<LogExport>& GetLogExports() const{ return m_logExports; }
166 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
167 inline void SetLogExports(const Aws::Vector<LogExport>& value) { m_logExportsHasBeenSet = true; m_logExports = value; }
168 inline void SetLogExports(Aws::Vector<LogExport>&& value) { m_logExportsHasBeenSet = true; m_logExports = std::move(value); }
169 inline Namespace& WithLogExports(const Aws::Vector<LogExport>& value) { SetLogExports(value); return *this;}
170 inline Namespace& WithLogExports(Aws::Vector<LogExport>&& value) { SetLogExports(std::move(value)); return *this;}
171 inline Namespace& AddLogExports(const LogExport& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(value); return *this; }
172 inline Namespace& AddLogExports(LogExport&& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(std::move(value)); return *this; }
174
176
179 inline const Aws::String& GetNamespaceArn() const{ return m_namespaceArn; }
180 inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; }
181 inline void SetNamespaceArn(const Aws::String& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = value; }
182 inline void SetNamespaceArn(Aws::String&& value) { m_namespaceArnHasBeenSet = true; m_namespaceArn = std::move(value); }
183 inline void SetNamespaceArn(const char* value) { m_namespaceArnHasBeenSet = true; m_namespaceArn.assign(value); }
184 inline Namespace& WithNamespaceArn(const Aws::String& value) { SetNamespaceArn(value); return *this;}
185 inline Namespace& WithNamespaceArn(Aws::String&& value) { SetNamespaceArn(std::move(value)); return *this;}
186 inline Namespace& WithNamespaceArn(const char* value) { SetNamespaceArn(value); return *this;}
188
190
193 inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
194 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
195 inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
196 inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
197 inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
198 inline Namespace& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
199 inline Namespace& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
200 inline Namespace& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
202
204
211 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
212 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
213 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
214 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
215 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
216 inline Namespace& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
217 inline Namespace& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
218 inline Namespace& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
220
222
225 inline const NamespaceStatus& GetStatus() const{ return m_status; }
226 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
227 inline void SetStatus(const NamespaceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
228 inline void SetStatus(NamespaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
229 inline Namespace& WithStatus(const NamespaceStatus& value) { SetStatus(value); return *this;}
230 inline Namespace& WithStatus(NamespaceStatus&& value) { SetStatus(std::move(value)); return *this;}
232 private:
233
234 Aws::String m_adminPasswordSecretArn;
235 bool m_adminPasswordSecretArnHasBeenSet = false;
236
237 Aws::String m_adminPasswordSecretKmsKeyId;
238 bool m_adminPasswordSecretKmsKeyIdHasBeenSet = false;
239
240 Aws::String m_adminUsername;
241 bool m_adminUsernameHasBeenSet = false;
242
243 Aws::Utils::DateTime m_creationDate;
244 bool m_creationDateHasBeenSet = false;
245
246 Aws::String m_dbName;
247 bool m_dbNameHasBeenSet = false;
248
249 Aws::String m_defaultIamRoleArn;
250 bool m_defaultIamRoleArnHasBeenSet = false;
251
252 Aws::Vector<Aws::String> m_iamRoles;
253 bool m_iamRolesHasBeenSet = false;
254
255 Aws::String m_kmsKeyId;
256 bool m_kmsKeyIdHasBeenSet = false;
257
258 Aws::Vector<LogExport> m_logExports;
259 bool m_logExportsHasBeenSet = false;
260
261 Aws::String m_namespaceArn;
262 bool m_namespaceArnHasBeenSet = false;
263
264 Aws::String m_namespaceId;
265 bool m_namespaceIdHasBeenSet = false;
266
267 Aws::String m_namespaceName;
268 bool m_namespaceNameHasBeenSet = false;
269
270 NamespaceStatus m_status;
271 bool m_statusHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace RedshiftServerless
276} // namespace Aws
Namespace & WithAdminPasswordSecretKmsKeyId(Aws::String &&value)
Definition Namespace.h:70
Namespace & WithAdminUsername(Aws::String &&value)
Definition Namespace.h:85
void SetAdminPasswordSecretKmsKeyId(const Aws::String &value)
Definition Namespace.h:66
const Aws::String & GetAdminPasswordSecretArn() const
Definition Namespace.h:49
Namespace & WithAdminPasswordSecretArn(const Aws::String &value)
Definition Namespace.h:54
Namespace & WithStatus(NamespaceStatus &&value)
Definition Namespace.h:230
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition Namespace.h:95
Namespace & WithIamRoles(Aws::Vector< Aws::String > &&value)
Definition Namespace.h:139
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition Namespace.h:96
AWS_REDSHIFTSERVERLESS_API Namespace & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIamRoles() const
Definition Namespace.h:134
Namespace & WithAdminPasswordSecretKmsKeyId(const Aws::String &value)
Definition Namespace.h:69
Namespace & AddIamRoles(const char *value)
Definition Namespace.h:142
const Aws::Vector< LogExport > & GetLogExports() const
Definition Namespace.h:165
void SetNamespaceId(const Aws::String &value)
Definition Namespace.h:195
void SetAdminUsername(const Aws::String &value)
Definition Namespace.h:81
void SetNamespaceArn(const char *value)
Definition Namespace.h:183
void SetNamespaceId(Aws::String &&value)
Definition Namespace.h:196
Namespace & WithDefaultIamRoleArn(Aws::String &&value)
Definition Namespace.h:126
Namespace & WithAdminUsername(const Aws::String &value)
Definition Namespace.h:84
Namespace & WithKmsKeyId(const Aws::String &value)
Definition Namespace.h:155
const Aws::String & GetDbName() const
Definition Namespace.h:105
void SetIamRoles(Aws::Vector< Aws::String > &&value)
Definition Namespace.h:137
void SetDefaultIamRoleArn(const Aws::String &value)
Definition Namespace.h:122
AWS_REDSHIFTSERVERLESS_API Namespace(Aws::Utils::Json::JsonView jsonValue)
void SetIamRoles(const Aws::Vector< Aws::String > &value)
Definition Namespace.h:136
const Aws::String & GetKmsKeyId() const
Definition Namespace.h:150
void SetLogExports(Aws::Vector< LogExport > &&value)
Definition Namespace.h:168
Namespace & WithNamespaceName(const char *value)
Definition Namespace.h:218
Namespace & WithDefaultIamRoleArn(const Aws::String &value)
Definition Namespace.h:125
const Aws::String & GetNamespaceId() const
Definition Namespace.h:193
const Aws::String & GetNamespaceName() const
Definition Namespace.h:211
Namespace & WithAdminPasswordSecretKmsKeyId(const char *value)
Definition Namespace.h:71
Namespace & WithKmsKeyId(const char *value)
Definition Namespace.h:157
Namespace & WithNamespaceArn(const Aws::String &value)
Definition Namespace.h:184
void SetAdminPasswordSecretArn(Aws::String &&value)
Definition Namespace.h:52
void SetAdminPasswordSecretArn(const char *value)
Definition Namespace.h:53
void SetNamespaceArn(const Aws::String &value)
Definition Namespace.h:181
Namespace & WithLogExports(const Aws::Vector< LogExport > &value)
Definition Namespace.h:169
Namespace & AddLogExports(const LogExport &value)
Definition Namespace.h:171
const Aws::String & GetAdminPasswordSecretKmsKeyId() const
Definition Namespace.h:64
Namespace & WithDefaultIamRoleArn(const char *value)
Definition Namespace.h:127
Namespace & WithNamespaceArn(const char *value)
Definition Namespace.h:186
const Aws::String & GetNamespaceArn() const
Definition Namespace.h:179
void SetStatus(const NamespaceStatus &value)
Definition Namespace.h:227
void SetKmsKeyId(const Aws::String &value)
Definition Namespace.h:152
Namespace & WithLogExports(Aws::Vector< LogExport > &&value)
Definition Namespace.h:170
void SetDbName(Aws::String &&value)
Definition Namespace.h:108
Namespace & WithNamespaceId(const Aws::String &value)
Definition Namespace.h:198
Namespace & WithDbName(const Aws::String &value)
Definition Namespace.h:110
void SetNamespaceId(const char *value)
Definition Namespace.h:197
Namespace & AddIamRoles(Aws::String &&value)
Definition Namespace.h:141
Namespace & WithAdminUsername(const char *value)
Definition Namespace.h:86
Namespace & WithNamespaceId(Aws::String &&value)
Definition Namespace.h:199
Namespace & AddIamRoles(const Aws::String &value)
Definition Namespace.h:140
Namespace & WithStatus(const NamespaceStatus &value)
Definition Namespace.h:229
void SetKmsKeyId(const char *value)
Definition Namespace.h:154
Namespace & WithNamespaceName(const Aws::String &value)
Definition Namespace.h:216
Namespace & WithNamespaceId(const char *value)
Definition Namespace.h:200
void SetNamespaceArn(Aws::String &&value)
Definition Namespace.h:182
void SetNamespaceName(Aws::String &&value)
Definition Namespace.h:214
Namespace & WithNamespaceArn(Aws::String &&value)
Definition Namespace.h:185
void SetAdminUsername(const char *value)
Definition Namespace.h:83
Namespace & WithIamRoles(const Aws::Vector< Aws::String > &value)
Definition Namespace.h:138
Namespace & WithKmsKeyId(Aws::String &&value)
Definition Namespace.h:156
void SetAdminPasswordSecretKmsKeyId(Aws::String &&value)
Definition Namespace.h:67
void SetDbName(const Aws::String &value)
Definition Namespace.h:107
Namespace & WithCreationDate(Aws::Utils::DateTime &&value)
Definition Namespace.h:98
const NamespaceStatus & GetStatus() const
Definition Namespace.h:225
void SetLogExports(const Aws::Vector< LogExport > &value)
Definition Namespace.h:167
const Aws::Utils::DateTime & GetCreationDate() const
Definition Namespace.h:93
void SetNamespaceName(const Aws::String &value)
Definition Namespace.h:213
void SetDefaultIamRoleArn(Aws::String &&value)
Definition Namespace.h:123
void SetStatus(NamespaceStatus &&value)
Definition Namespace.h:228
void SetKmsKeyId(Aws::String &&value)
Definition Namespace.h:153
void SetNamespaceName(const char *value)
Definition Namespace.h:215
void SetDefaultIamRoleArn(const char *value)
Definition Namespace.h:124
const Aws::String & GetDefaultIamRoleArn() const
Definition Namespace.h:120
Namespace & WithDbName(Aws::String &&value)
Definition Namespace.h:111
Namespace & WithCreationDate(const Aws::Utils::DateTime &value)
Definition Namespace.h:97
Namespace & WithAdminPasswordSecretArn(Aws::String &&value)
Definition Namespace.h:55
Namespace & WithDbName(const char *value)
Definition Namespace.h:112
Namespace & AddLogExports(LogExport &&value)
Definition Namespace.h:172
Namespace & WithAdminPasswordSecretArn(const char *value)
Definition Namespace.h:56
Namespace & WithNamespaceName(Aws::String &&value)
Definition Namespace.h:217
void SetAdminPasswordSecretKmsKeyId(const char *value)
Definition Namespace.h:68
void SetAdminUsername(Aws::String &&value)
Definition Namespace.h:82
AWS_REDSHIFTSERVERLESS_API Namespace()
const Aws::String & GetAdminUsername() const
Definition Namespace.h:79
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAdminPasswordSecretArn(const Aws::String &value)
Definition Namespace.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue