AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
UpdateNamespaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
10#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
11#include <aws/redshift-serverless/model/LogDestinationType.h>
12#include <aws/redshift-serverless/model/LogExport.h>
13#include <aws/redshift-serverless/model/S3TableAction.h>
14#include <aws/redshift-serverless/model/S3TableGranularity.h>
15
16#include <utility>
17
18namespace Aws {
19namespace RedshiftServerless {
20namespace Model {
21
25 public:
26 AWS_REDSHIFTSERVERLESS_API UpdateNamespaceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateNamespace"; }
33
34 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
44 inline const Aws::String& GetAdminPasswordSecretKmsKeyId() const { return m_adminPasswordSecretKmsKeyId; }
45 inline bool AdminPasswordSecretKmsKeyIdHasBeenSet() const { return m_adminPasswordSecretKmsKeyIdHasBeenSet; }
46 template <typename AdminPasswordSecretKmsKeyIdT = Aws::String>
47 void SetAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT&& value) {
48 m_adminPasswordSecretKmsKeyIdHasBeenSet = true;
49 m_adminPasswordSecretKmsKeyId = std::forward<AdminPasswordSecretKmsKeyIdT>(value);
50 }
51 template <typename AdminPasswordSecretKmsKeyIdT = Aws::String>
52 UpdateNamespaceRequest& WithAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT&& value) {
53 SetAdminPasswordSecretKmsKeyId(std::forward<AdminPasswordSecretKmsKeyIdT>(value));
54 return *this;
55 }
57
59
68 inline const Aws::String& GetAdminUserPassword() const { return m_adminUserPassword; }
69 inline bool AdminUserPasswordHasBeenSet() const { return m_adminUserPasswordHasBeenSet; }
70 template <typename AdminUserPasswordT = Aws::String>
71 void SetAdminUserPassword(AdminUserPasswordT&& value) {
72 m_adminUserPasswordHasBeenSet = true;
73 m_adminUserPassword = std::forward<AdminUserPasswordT>(value);
74 }
75 template <typename AdminUserPasswordT = Aws::String>
76 UpdateNamespaceRequest& WithAdminUserPassword(AdminUserPasswordT&& value) {
77 SetAdminUserPassword(std::forward<AdminUserPasswordT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetAdminUsername() const { return m_adminUsername; }
89 inline bool AdminUsernameHasBeenSet() const { return m_adminUsernameHasBeenSet; }
90 template <typename AdminUsernameT = Aws::String>
91 void SetAdminUsername(AdminUsernameT&& value) {
92 m_adminUsernameHasBeenSet = true;
93 m_adminUsername = std::forward<AdminUsernameT>(value);
94 }
95 template <typename AdminUsernameT = Aws::String>
96 UpdateNamespaceRequest& WithAdminUsername(AdminUsernameT&& value) {
97 SetAdminUsername(std::forward<AdminUsernameT>(value));
98 return *this;
99 }
101
103
108 inline const Aws::String& GetDefaultIamRoleArn() const { return m_defaultIamRoleArn; }
109 inline bool DefaultIamRoleArnHasBeenSet() const { return m_defaultIamRoleArnHasBeenSet; }
110 template <typename DefaultIamRoleArnT = Aws::String>
111 void SetDefaultIamRoleArn(DefaultIamRoleArnT&& value) {
112 m_defaultIamRoleArnHasBeenSet = true;
113 m_defaultIamRoleArn = std::forward<DefaultIamRoleArnT>(value);
114 }
115 template <typename DefaultIamRoleArnT = Aws::String>
116 UpdateNamespaceRequest& WithDefaultIamRoleArn(DefaultIamRoleArnT&& value) {
117 SetDefaultIamRoleArn(std::forward<DefaultIamRoleArnT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::Vector<Aws::String>& GetIamRoles() const { return m_iamRoles; }
128 inline bool IamRolesHasBeenSet() const { return m_iamRolesHasBeenSet; }
129 template <typename IamRolesT = Aws::Vector<Aws::String>>
130 void SetIamRoles(IamRolesT&& value) {
131 m_iamRolesHasBeenSet = true;
132 m_iamRoles = std::forward<IamRolesT>(value);
133 }
134 template <typename IamRolesT = Aws::Vector<Aws::String>>
136 SetIamRoles(std::forward<IamRolesT>(value));
137 return *this;
138 }
139 template <typename IamRolesT = Aws::String>
141 m_iamRolesHasBeenSet = true;
142 m_iamRoles.emplace_back(std::forward<IamRolesT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
153 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
154 template <typename KmsKeyIdT = Aws::String>
155 void SetKmsKeyId(KmsKeyIdT&& value) {
156 m_kmsKeyIdHasBeenSet = true;
157 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
158 }
159 template <typename KmsKeyIdT = Aws::String>
161 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
162 return *this;
163 }
165
167
172 inline LogDestinationType GetLogDestinationType() const { return m_logDestinationType; }
173 inline bool LogDestinationTypeHasBeenSet() const { return m_logDestinationTypeHasBeenSet; }
175 m_logDestinationTypeHasBeenSet = true;
176 m_logDestinationType = value;
177 }
180 return *this;
181 }
183
185
190 inline const Aws::Vector<LogExport>& GetLogExports() const { return m_logExports; }
191 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
192 template <typename LogExportsT = Aws::Vector<LogExport>>
193 void SetLogExports(LogExportsT&& value) {
194 m_logExportsHasBeenSet = true;
195 m_logExports = std::forward<LogExportsT>(value);
196 }
197 template <typename LogExportsT = Aws::Vector<LogExport>>
199 SetLogExports(std::forward<LogExportsT>(value));
200 return *this;
201 }
203 m_logExportsHasBeenSet = true;
204 m_logExports.push_back(value);
205 return *this;
206 }
208
210
217 inline bool GetManageAdminPassword() const { return m_manageAdminPassword; }
218 inline bool ManageAdminPasswordHasBeenSet() const { return m_manageAdminPasswordHasBeenSet; }
219 inline void SetManageAdminPassword(bool value) {
220 m_manageAdminPasswordHasBeenSet = true;
221 m_manageAdminPassword = value;
222 }
225 return *this;
226 }
228
230
234 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
235 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
236 template <typename NamespaceNameT = Aws::String>
237 void SetNamespaceName(NamespaceNameT&& value) {
238 m_namespaceNameHasBeenSet = true;
239 m_namespaceName = std::forward<NamespaceNameT>(value);
240 }
241 template <typename NamespaceNameT = Aws::String>
242 UpdateNamespaceRequest& WithNamespaceName(NamespaceNameT&& value) {
243 SetNamespaceName(std::forward<NamespaceNameT>(value));
244 return *this;
245 }
247
249
255 inline S3TableAction GetS3TableAction() const { return m_s3TableAction; }
256 inline bool S3TableActionHasBeenSet() const { return m_s3TableActionHasBeenSet; }
257 inline void SetS3TableAction(S3TableAction value) {
258 m_s3TableActionHasBeenSet = true;
259 m_s3TableAction = value;
260 }
262 SetS3TableAction(value);
263 return *this;
264 }
266
268
277 inline S3TableGranularity GetS3TableGranularity() const { return m_s3TableGranularity; }
278 inline bool S3TableGranularityHasBeenSet() const { return m_s3TableGranularityHasBeenSet; }
280 m_s3TableGranularityHasBeenSet = true;
281 m_s3TableGranularity = value;
282 }
285 return *this;
286 }
288
290
296 inline const Aws::String& GetS3TableKmsKeyId() const { return m_s3TableKmsKeyId; }
297 inline bool S3TableKmsKeyIdHasBeenSet() const { return m_s3TableKmsKeyIdHasBeenSet; }
298 template <typename S3TableKmsKeyIdT = Aws::String>
299 void SetS3TableKmsKeyId(S3TableKmsKeyIdT&& value) {
300 m_s3TableKmsKeyIdHasBeenSet = true;
301 m_s3TableKmsKeyId = std::forward<S3TableKmsKeyIdT>(value);
302 }
303 template <typename S3TableKmsKeyIdT = Aws::String>
304 UpdateNamespaceRequest& WithS3TableKmsKeyId(S3TableKmsKeyIdT&& value) {
305 SetS3TableKmsKeyId(std::forward<S3TableKmsKeyIdT>(value));
306 return *this;
307 }
309
311
320 inline const Aws::Vector<Aws::String>& GetS3TableNames() const { return m_s3TableNames; }
321 inline bool S3TableNamesHasBeenSet() const { return m_s3TableNamesHasBeenSet; }
322 template <typename S3TableNamesT = Aws::Vector<Aws::String>>
323 void SetS3TableNames(S3TableNamesT&& value) {
324 m_s3TableNamesHasBeenSet = true;
325 m_s3TableNames = std::forward<S3TableNamesT>(value);
326 }
327 template <typename S3TableNamesT = Aws::Vector<Aws::String>>
328 UpdateNamespaceRequest& WithS3TableNames(S3TableNamesT&& value) {
329 SetS3TableNames(std::forward<S3TableNamesT>(value));
330 return *this;
331 }
332 template <typename S3TableNamesT = Aws::String>
333 UpdateNamespaceRequest& AddS3TableNames(S3TableNamesT&& value) {
334 m_s3TableNamesHasBeenSet = true;
335 m_s3TableNames.emplace_back(std::forward<S3TableNamesT>(value));
336 return *this;
337 }
339 private:
340 Aws::String m_adminPasswordSecretKmsKeyId;
341
342 Aws::String m_adminUserPassword;
343
344 Aws::String m_adminUsername;
345
346 Aws::String m_defaultIamRoleArn;
347
348 Aws::Vector<Aws::String> m_iamRoles;
349
350 Aws::String m_kmsKeyId;
351
353
354 Aws::Vector<LogExport> m_logExports;
355
356 bool m_manageAdminPassword{false};
357
358 Aws::String m_namespaceName;
359
360 S3TableAction m_s3TableAction{S3TableAction::NOT_SET};
361
363
364 Aws::String m_s3TableKmsKeyId;
365
366 Aws::Vector<Aws::String> m_s3TableNames;
367 bool m_adminPasswordSecretKmsKeyIdHasBeenSet = false;
368 bool m_adminUserPasswordHasBeenSet = false;
369 bool m_adminUsernameHasBeenSet = false;
370 bool m_defaultIamRoleArnHasBeenSet = false;
371 bool m_iamRolesHasBeenSet = false;
372 bool m_kmsKeyIdHasBeenSet = false;
373 bool m_logDestinationTypeHasBeenSet = false;
374 bool m_logExportsHasBeenSet = false;
375 bool m_manageAdminPasswordHasBeenSet = false;
376 bool m_namespaceNameHasBeenSet = false;
377 bool m_s3TableActionHasBeenSet = false;
378 bool m_s3TableGranularityHasBeenSet = false;
379 bool m_s3TableKmsKeyIdHasBeenSet = false;
380 bool m_s3TableNamesHasBeenSet = false;
381};
382
383} // namespace Model
384} // namespace RedshiftServerless
385} // namespace Aws
UpdateNamespaceRequest & WithIamRoles(IamRolesT &&value)
AWS_REDSHIFTSERVERLESS_API UpdateNamespaceRequest()=default
UpdateNamespaceRequest & WithLogDestinationType(LogDestinationType value)
UpdateNamespaceRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
const Aws::Vector< LogExport > & GetLogExports() const
UpdateNamespaceRequest & WithS3TableGranularity(S3TableGranularity value)
UpdateNamespaceRequest & WithLogExports(LogExportsT &&value)
UpdateNamespaceRequest & AddIamRoles(IamRolesT &&value)
UpdateNamespaceRequest & WithNamespaceName(NamespaceNameT &&value)
UpdateNamespaceRequest & AddS3TableNames(S3TableNamesT &&value)
void SetAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT &&value)
const Aws::Vector< Aws::String > & GetIamRoles() const
UpdateNamespaceRequest & WithAdminUsername(AdminUsernameT &&value)
UpdateNamespaceRequest & WithDefaultIamRoleArn(DefaultIamRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateNamespaceRequest & AddLogExports(LogExport value)
UpdateNamespaceRequest & WithAdminUserPassword(AdminUserPasswordT &&value)
UpdateNamespaceRequest & WithAdminPasswordSecretKmsKeyId(AdminPasswordSecretKmsKeyIdT &&value)
const Aws::Vector< Aws::String > & GetS3TableNames() const
UpdateNamespaceRequest & WithS3TableAction(S3TableAction value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateNamespaceRequest & WithS3TableKmsKeyId(S3TableKmsKeyIdT &&value)
UpdateNamespaceRequest & WithS3TableNames(S3TableNamesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector