AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNamespaceRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift-serverless/model/LogExport.h>
12#include <aws/redshift-serverless/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RedshiftServerless
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_REDSHIFTSERVERLESS_API CreateNamespaceRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateNamespace"; }
34
35 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
36
37 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
46 inline const Aws::String& GetAdminPasswordSecretKmsKeyId() const{ return m_adminPasswordSecretKmsKeyId; }
47 inline bool AdminPasswordSecretKmsKeyIdHasBeenSet() const { return m_adminPasswordSecretKmsKeyIdHasBeenSet; }
48 inline void SetAdminPasswordSecretKmsKeyId(const Aws::String& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = value; }
49 inline void SetAdminPasswordSecretKmsKeyId(Aws::String&& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = std::move(value); }
50 inline void SetAdminPasswordSecretKmsKeyId(const char* value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId.assign(value); }
55
57
62 inline const Aws::String& GetAdminUserPassword() const{ return m_adminUserPassword; }
63 inline bool AdminUserPasswordHasBeenSet() const { return m_adminUserPasswordHasBeenSet; }
64 inline void SetAdminUserPassword(const Aws::String& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = value; }
65 inline void SetAdminUserPassword(Aws::String&& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = std::move(value); }
66 inline void SetAdminUserPassword(const char* value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword.assign(value); }
68 inline CreateNamespaceRequest& WithAdminUserPassword(Aws::String&& value) { SetAdminUserPassword(std::move(value)); return *this;}
69 inline CreateNamespaceRequest& WithAdminUserPassword(const char* value) { SetAdminUserPassword(value); return *this;}
71
73
77 inline const Aws::String& GetAdminUsername() const{ return m_adminUsername; }
78 inline bool AdminUsernameHasBeenSet() const { return m_adminUsernameHasBeenSet; }
79 inline void SetAdminUsername(const Aws::String& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = value; }
80 inline void SetAdminUsername(Aws::String&& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = std::move(value); }
81 inline void SetAdminUsername(const char* value) { m_adminUsernameHasBeenSet = true; m_adminUsername.assign(value); }
82 inline CreateNamespaceRequest& WithAdminUsername(const Aws::String& value) { SetAdminUsername(value); return *this;}
83 inline CreateNamespaceRequest& WithAdminUsername(Aws::String&& value) { SetAdminUsername(std::move(value)); return *this;}
84 inline CreateNamespaceRequest& WithAdminUsername(const char* value) { SetAdminUsername(value); return *this;}
86
88
91 inline const Aws::String& GetDbName() const{ return m_dbName; }
92 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
93 inline void SetDbName(const Aws::String& value) { m_dbNameHasBeenSet = true; m_dbName = value; }
94 inline void SetDbName(Aws::String&& value) { m_dbNameHasBeenSet = true; m_dbName = std::move(value); }
95 inline void SetDbName(const char* value) { m_dbNameHasBeenSet = true; m_dbName.assign(value); }
96 inline CreateNamespaceRequest& WithDbName(const Aws::String& value) { SetDbName(value); return *this;}
97 inline CreateNamespaceRequest& WithDbName(Aws::String&& value) { SetDbName(std::move(value)); return *this;}
98 inline CreateNamespaceRequest& WithDbName(const char* value) { SetDbName(value); return *this;}
100
102
106 inline const Aws::String& GetDefaultIamRoleArn() const{ return m_defaultIamRoleArn; }
107 inline bool DefaultIamRoleArnHasBeenSet() const { return m_defaultIamRoleArnHasBeenSet; }
108 inline void SetDefaultIamRoleArn(const Aws::String& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = value; }
109 inline void SetDefaultIamRoleArn(Aws::String&& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = std::move(value); }
110 inline void SetDefaultIamRoleArn(const char* value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn.assign(value); }
112 inline CreateNamespaceRequest& WithDefaultIamRoleArn(Aws::String&& value) { SetDefaultIamRoleArn(std::move(value)); return *this;}
113 inline CreateNamespaceRequest& WithDefaultIamRoleArn(const char* value) { SetDefaultIamRoleArn(value); return *this;}
115
117
120 inline const Aws::Vector<Aws::String>& GetIamRoles() const{ return m_iamRoles; }
121 inline bool IamRolesHasBeenSet() const { return m_iamRolesHasBeenSet; }
122 inline void SetIamRoles(const Aws::Vector<Aws::String>& value) { m_iamRolesHasBeenSet = true; m_iamRoles = value; }
123 inline void SetIamRoles(Aws::Vector<Aws::String>&& value) { m_iamRolesHasBeenSet = true; m_iamRoles = std::move(value); }
124 inline CreateNamespaceRequest& WithIamRoles(const Aws::Vector<Aws::String>& value) { SetIamRoles(value); return *this;}
125 inline CreateNamespaceRequest& WithIamRoles(Aws::Vector<Aws::String>&& value) { SetIamRoles(std::move(value)); return *this;}
126 inline CreateNamespaceRequest& AddIamRoles(const Aws::String& value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(value); return *this; }
127 inline CreateNamespaceRequest& AddIamRoles(Aws::String&& value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(std::move(value)); return *this; }
128 inline CreateNamespaceRequest& AddIamRoles(const char* value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(value); return *this; }
130
132
136 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
137 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
138 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
139 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
140 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
141 inline CreateNamespaceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
142 inline CreateNamespaceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
143 inline CreateNamespaceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
145
147
152 inline const Aws::Vector<LogExport>& GetLogExports() const{ return m_logExports; }
153 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
154 inline void SetLogExports(const Aws::Vector<LogExport>& value) { m_logExportsHasBeenSet = true; m_logExports = value; }
155 inline void SetLogExports(Aws::Vector<LogExport>&& value) { m_logExportsHasBeenSet = true; m_logExports = std::move(value); }
156 inline CreateNamespaceRequest& WithLogExports(const Aws::Vector<LogExport>& value) { SetLogExports(value); return *this;}
157 inline CreateNamespaceRequest& WithLogExports(Aws::Vector<LogExport>&& value) { SetLogExports(std::move(value)); return *this;}
158 inline CreateNamespaceRequest& AddLogExports(const LogExport& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(value); return *this; }
159 inline CreateNamespaceRequest& AddLogExports(LogExport&& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(std::move(value)); return *this; }
161
163
170 inline bool GetManageAdminPassword() const{ return m_manageAdminPassword; }
171 inline bool ManageAdminPasswordHasBeenSet() const { return m_manageAdminPasswordHasBeenSet; }
172 inline void SetManageAdminPassword(bool value) { m_manageAdminPasswordHasBeenSet = true; m_manageAdminPassword = value; }
173 inline CreateNamespaceRequest& WithManageAdminPassword(bool value) { SetManageAdminPassword(value); return *this;}
175
177
180 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
181 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
182 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
183 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
184 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
185 inline CreateNamespaceRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
186 inline CreateNamespaceRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
187 inline CreateNamespaceRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
189
191
195 inline const Aws::String& GetRedshiftIdcApplicationArn() const{ return m_redshiftIdcApplicationArn; }
196 inline bool RedshiftIdcApplicationArnHasBeenSet() const { return m_redshiftIdcApplicationArnHasBeenSet; }
197 inline void SetRedshiftIdcApplicationArn(const Aws::String& value) { m_redshiftIdcApplicationArnHasBeenSet = true; m_redshiftIdcApplicationArn = value; }
198 inline void SetRedshiftIdcApplicationArn(Aws::String&& value) { m_redshiftIdcApplicationArnHasBeenSet = true; m_redshiftIdcApplicationArn = std::move(value); }
199 inline void SetRedshiftIdcApplicationArn(const char* value) { m_redshiftIdcApplicationArnHasBeenSet = true; m_redshiftIdcApplicationArn.assign(value); }
204
206
209 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
212 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
213 inline CreateNamespaceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
214 inline CreateNamespaceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
215 inline CreateNamespaceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
216 inline CreateNamespaceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
218 private:
219
220 Aws::String m_adminPasswordSecretKmsKeyId;
221 bool m_adminPasswordSecretKmsKeyIdHasBeenSet = false;
222
223 Aws::String m_adminUserPassword;
224 bool m_adminUserPasswordHasBeenSet = false;
225
226 Aws::String m_adminUsername;
227 bool m_adminUsernameHasBeenSet = false;
228
229 Aws::String m_dbName;
230 bool m_dbNameHasBeenSet = false;
231
232 Aws::String m_defaultIamRoleArn;
233 bool m_defaultIamRoleArnHasBeenSet = false;
234
235 Aws::Vector<Aws::String> m_iamRoles;
236 bool m_iamRolesHasBeenSet = false;
237
238 Aws::String m_kmsKeyId;
239 bool m_kmsKeyIdHasBeenSet = false;
240
241 Aws::Vector<LogExport> m_logExports;
242 bool m_logExportsHasBeenSet = false;
243
244 bool m_manageAdminPassword;
245 bool m_manageAdminPasswordHasBeenSet = false;
246
247 Aws::String m_namespaceName;
248 bool m_namespaceNameHasBeenSet = false;
249
250 Aws::String m_redshiftIdcApplicationArn;
251 bool m_redshiftIdcApplicationArnHasBeenSet = false;
252
253 Aws::Vector<Tag> m_tags;
254 bool m_tagsHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace RedshiftServerless
259} // namespace Aws
CreateNamespaceRequest & WithNamespaceName(Aws::String &&value)
CreateNamespaceRequest & AddIamRoles(const char *value)
void SetLogExports(const Aws::Vector< LogExport > &value)
CreateNamespaceRequest & WithRedshiftIdcApplicationArn(Aws::String &&value)
CreateNamespaceRequest & WithDbName(const Aws::String &value)
CreateNamespaceRequest & WithLogExports(Aws::Vector< LogExport > &&value)
CreateNamespaceRequest & AddTags(const Tag &value)
CreateNamespaceRequest & WithRedshiftIdcApplicationArn(const char *value)
virtual const char * GetServiceRequestName() const override
CreateNamespaceRequest & WithAdminPasswordSecretKmsKeyId(const char *value)
CreateNamespaceRequest & WithDbName(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetIamRoles() const
CreateNamespaceRequest & AddLogExports(const LogExport &value)
CreateNamespaceRequest & WithAdminPasswordSecretKmsKeyId(Aws::String &&value)
CreateNamespaceRequest & WithKmsKeyId(Aws::String &&value)
CreateNamespaceRequest & WithAdminUserPassword(Aws::String &&value)
CreateNamespaceRequest & WithNamespaceName(const char *value)
CreateNamespaceRequest & WithDbName(Aws::String &&value)
CreateNamespaceRequest & WithLogExports(const Aws::Vector< LogExport > &value)
CreateNamespaceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateNamespaceRequest & WithDefaultIamRoleArn(Aws::String &&value)
CreateNamespaceRequest & WithKmsKeyId(const Aws::String &value)
CreateNamespaceRequest & AddIamRoles(Aws::String &&value)
CreateNamespaceRequest & WithAdminUserPassword(const char *value)
CreateNamespaceRequest & AddIamRoles(const Aws::String &value)
CreateNamespaceRequest & WithIamRoles(const Aws::Vector< Aws::String > &value)
CreateNamespaceRequest & WithAdminUsername(const char *value)
CreateNamespaceRequest & WithRedshiftIdcApplicationArn(const Aws::String &value)
CreateNamespaceRequest & WithDefaultIamRoleArn(const Aws::String &value)
CreateNamespaceRequest & WithAdminUserPassword(const Aws::String &value)
CreateNamespaceRequest & WithNamespaceName(const Aws::String &value)
CreateNamespaceRequest & WithIamRoles(Aws::Vector< Aws::String > &&value)
CreateNamespaceRequest & WithAdminUsername(const Aws::String &value)
CreateNamespaceRequest & AddLogExports(LogExport &&value)
const Aws::Vector< LogExport > & GetLogExports() const
CreateNamespaceRequest & WithAdminUsername(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
void SetIamRoles(const Aws::Vector< Aws::String > &value)
CreateNamespaceRequest & WithKmsKeyId(const char *value)
CreateNamespaceRequest & WithDefaultIamRoleArn(const char *value)
CreateNamespaceRequest & WithAdminPasswordSecretKmsKeyId(const Aws::String &value)
CreateNamespaceRequest & WithTags(const Aws::Vector< Tag > &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