AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateNamespaceRequest.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 <utility>
13
14namespace Aws
15{
16namespace RedshiftServerless
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REDSHIFTSERVERLESS_API UpdateNamespaceRequest();
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
38
40
45 inline const Aws::String& GetAdminPasswordSecretKmsKeyId() const{ return m_adminPasswordSecretKmsKeyId; }
46 inline bool AdminPasswordSecretKmsKeyIdHasBeenSet() const { return m_adminPasswordSecretKmsKeyIdHasBeenSet; }
47 inline void SetAdminPasswordSecretKmsKeyId(const Aws::String& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = value; }
48 inline void SetAdminPasswordSecretKmsKeyId(Aws::String&& value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId = std::move(value); }
49 inline void SetAdminPasswordSecretKmsKeyId(const char* value) { m_adminPasswordSecretKmsKeyIdHasBeenSet = true; m_adminPasswordSecretKmsKeyId.assign(value); }
54
56
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 UpdateNamespaceRequest& WithAdminUserPassword(Aws::String&& value) { SetAdminUserPassword(std::move(value)); return *this;}
69 inline UpdateNamespaceRequest& WithAdminUserPassword(const char* value) { SetAdminUserPassword(value); return *this;}
71
73
78 inline const Aws::String& GetAdminUsername() const{ return m_adminUsername; }
79 inline bool AdminUsernameHasBeenSet() const { return m_adminUsernameHasBeenSet; }
80 inline void SetAdminUsername(const Aws::String& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = value; }
81 inline void SetAdminUsername(Aws::String&& value) { m_adminUsernameHasBeenSet = true; m_adminUsername = std::move(value); }
82 inline void SetAdminUsername(const char* value) { m_adminUsernameHasBeenSet = true; m_adminUsername.assign(value); }
83 inline UpdateNamespaceRequest& WithAdminUsername(const Aws::String& value) { SetAdminUsername(value); return *this;}
84 inline UpdateNamespaceRequest& WithAdminUsername(Aws::String&& value) { SetAdminUsername(std::move(value)); return *this;}
85 inline UpdateNamespaceRequest& WithAdminUsername(const char* value) { SetAdminUsername(value); return *this;}
87
89
94 inline const Aws::String& GetDefaultIamRoleArn() const{ return m_defaultIamRoleArn; }
95 inline bool DefaultIamRoleArnHasBeenSet() const { return m_defaultIamRoleArnHasBeenSet; }
96 inline void SetDefaultIamRoleArn(const Aws::String& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = value; }
97 inline void SetDefaultIamRoleArn(Aws::String&& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = std::move(value); }
98 inline void SetDefaultIamRoleArn(const char* value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn.assign(value); }
100 inline UpdateNamespaceRequest& WithDefaultIamRoleArn(Aws::String&& value) { SetDefaultIamRoleArn(std::move(value)); return *this;}
101 inline UpdateNamespaceRequest& WithDefaultIamRoleArn(const char* value) { SetDefaultIamRoleArn(value); return *this;}
103
105
109 inline const Aws::Vector<Aws::String>& GetIamRoles() const{ return m_iamRoles; }
110 inline bool IamRolesHasBeenSet() const { return m_iamRolesHasBeenSet; }
111 inline void SetIamRoles(const Aws::Vector<Aws::String>& value) { m_iamRolesHasBeenSet = true; m_iamRoles = value; }
112 inline void SetIamRoles(Aws::Vector<Aws::String>&& value) { m_iamRolesHasBeenSet = true; m_iamRoles = std::move(value); }
113 inline UpdateNamespaceRequest& WithIamRoles(const Aws::Vector<Aws::String>& value) { SetIamRoles(value); return *this;}
114 inline UpdateNamespaceRequest& WithIamRoles(Aws::Vector<Aws::String>&& value) { SetIamRoles(std::move(value)); return *this;}
115 inline UpdateNamespaceRequest& AddIamRoles(const Aws::String& value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(value); return *this; }
116 inline UpdateNamespaceRequest& AddIamRoles(Aws::String&& value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(std::move(value)); return *this; }
117 inline UpdateNamespaceRequest& AddIamRoles(const char* value) { m_iamRolesHasBeenSet = true; m_iamRoles.push_back(value); return *this; }
119
121
125 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
126 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
127 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
128 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
129 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
130 inline UpdateNamespaceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
131 inline UpdateNamespaceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
132 inline UpdateNamespaceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
134
136
141 inline const Aws::Vector<LogExport>& GetLogExports() const{ return m_logExports; }
142 inline bool LogExportsHasBeenSet() const { return m_logExportsHasBeenSet; }
143 inline void SetLogExports(const Aws::Vector<LogExport>& value) { m_logExportsHasBeenSet = true; m_logExports = value; }
144 inline void SetLogExports(Aws::Vector<LogExport>&& value) { m_logExportsHasBeenSet = true; m_logExports = std::move(value); }
145 inline UpdateNamespaceRequest& WithLogExports(const Aws::Vector<LogExport>& value) { SetLogExports(value); return *this;}
146 inline UpdateNamespaceRequest& WithLogExports(Aws::Vector<LogExport>&& value) { SetLogExports(std::move(value)); return *this;}
147 inline UpdateNamespaceRequest& AddLogExports(const LogExport& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(value); return *this; }
148 inline UpdateNamespaceRequest& AddLogExports(LogExport&& value) { m_logExportsHasBeenSet = true; m_logExports.push_back(std::move(value)); return *this; }
150
152
159 inline bool GetManageAdminPassword() const{ return m_manageAdminPassword; }
160 inline bool ManageAdminPasswordHasBeenSet() const { return m_manageAdminPasswordHasBeenSet; }
161 inline void SetManageAdminPassword(bool value) { m_manageAdminPasswordHasBeenSet = true; m_manageAdminPassword = value; }
162 inline UpdateNamespaceRequest& WithManageAdminPassword(bool value) { SetManageAdminPassword(value); return *this;}
164
166
170 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
171 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
172 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
173 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
174 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
175 inline UpdateNamespaceRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
176 inline UpdateNamespaceRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
177 inline UpdateNamespaceRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
179 private:
180
181 Aws::String m_adminPasswordSecretKmsKeyId;
182 bool m_adminPasswordSecretKmsKeyIdHasBeenSet = false;
183
184 Aws::String m_adminUserPassword;
185 bool m_adminUserPasswordHasBeenSet = false;
186
187 Aws::String m_adminUsername;
188 bool m_adminUsernameHasBeenSet = false;
189
190 Aws::String m_defaultIamRoleArn;
191 bool m_defaultIamRoleArnHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_iamRoles;
194 bool m_iamRolesHasBeenSet = false;
195
196 Aws::String m_kmsKeyId;
197 bool m_kmsKeyIdHasBeenSet = false;
198
199 Aws::Vector<LogExport> m_logExports;
200 bool m_logExportsHasBeenSet = false;
201
202 bool m_manageAdminPassword;
203 bool m_manageAdminPasswordHasBeenSet = false;
204
205 Aws::String m_namespaceName;
206 bool m_namespaceNameHasBeenSet = false;
207 };
208
209} // namespace Model
210} // namespace RedshiftServerless
211} // namespace Aws
UpdateNamespaceRequest & WithAdminPasswordSecretKmsKeyId(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
UpdateNamespaceRequest & WithDefaultIamRoleArn(const Aws::String &value)
const Aws::Vector< LogExport > & GetLogExports() const
UpdateNamespaceRequest & WithAdminUsername(const char *value)
UpdateNamespaceRequest & WithAdminUserPassword(Aws::String &&value)
UpdateNamespaceRequest & WithAdminUsername(Aws::String &&value)
UpdateNamespaceRequest & WithLogExports(const Aws::Vector< LogExport > &value)
UpdateNamespaceRequest & AddIamRoles(const char *value)
void SetLogExports(const Aws::Vector< LogExport > &value)
UpdateNamespaceRequest & WithAdminUsername(const Aws::String &value)
UpdateNamespaceRequest & WithNamespaceName(Aws::String &&value)
UpdateNamespaceRequest & AddLogExports(LogExport &&value)
UpdateNamespaceRequest & WithAdminPasswordSecretKmsKeyId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetIamRoles() const
UpdateNamespaceRequest & WithAdminUserPassword(const char *value)
UpdateNamespaceRequest & AddLogExports(const LogExport &value)
UpdateNamespaceRequest & WithKmsKeyId(Aws::String &&value)
UpdateNamespaceRequest & AddIamRoles(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetIamRoles(const Aws::Vector< Aws::String > &value)
UpdateNamespaceRequest & WithDefaultIamRoleArn(const char *value)
UpdateNamespaceRequest & WithDefaultIamRoleArn(Aws::String &&value)
UpdateNamespaceRequest & WithIamRoles(Aws::Vector< Aws::String > &&value)
UpdateNamespaceRequest & WithNamespaceName(const char *value)
UpdateNamespaceRequest & WithKmsKeyId(const Aws::String &value)
UpdateNamespaceRequest & WithKmsKeyId(const char *value)
UpdateNamespaceRequest & WithLogExports(Aws::Vector< LogExport > &&value)
UpdateNamespaceRequest & WithAdminPasswordSecretKmsKeyId(Aws::String &&value)
UpdateNamespaceRequest & AddIamRoles(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateNamespaceRequest & WithNamespaceName(const Aws::String &value)
UpdateNamespaceRequest & WithIamRoles(const Aws::Vector< Aws::String > &value)
UpdateNamespaceRequest & WithAdminUserPassword(const Aws::String &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