AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
GetClusterCredentialsRequest.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/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
25 public:
26 AWS_REDSHIFT_API GetClusterCredentialsRequest() = 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 "GetClusterCredentials"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
63 inline const Aws::String& GetDbUser() const { return m_dbUser; }
64 inline bool DbUserHasBeenSet() const { return m_dbUserHasBeenSet; }
65 template <typename DbUserT = Aws::String>
66 void SetDbUser(DbUserT&& value) {
67 m_dbUserHasBeenSet = true;
68 m_dbUser = std::forward<DbUserT>(value);
69 }
70 template <typename DbUserT = Aws::String>
72 SetDbUser(std::forward<DbUserT>(value));
73 return *this;
74 }
76
78
90 inline const Aws::String& GetDbName() const { return m_dbName; }
91 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
92 template <typename DbNameT = Aws::String>
93 void SetDbName(DbNameT&& value) {
94 m_dbNameHasBeenSet = true;
95 m_dbName = std::forward<DbNameT>(value);
96 }
97 template <typename DbNameT = Aws::String>
99 SetDbName(std::forward<DbNameT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
110 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
111 template <typename ClusterIdentifierT = Aws::String>
112 void SetClusterIdentifier(ClusterIdentifierT&& value) {
113 m_clusterIdentifierHasBeenSet = true;
114 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
115 }
116 template <typename ClusterIdentifierT = Aws::String>
118 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
119 return *this;
120 }
122
124
128 inline int GetDurationSeconds() const { return m_durationSeconds; }
129 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
130 inline void SetDurationSeconds(int value) {
131 m_durationSecondsHasBeenSet = true;
132 m_durationSeconds = value;
133 }
135 SetDurationSeconds(value);
136 return *this;
137 }
139
141
145 inline bool GetAutoCreate() const { return m_autoCreate; }
146 inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
147 inline void SetAutoCreate(bool value) {
148 m_autoCreateHasBeenSet = true;
149 m_autoCreate = value;
150 }
152 SetAutoCreate(value);
153 return *this;
154 }
156
158
171 inline const Aws::Vector<Aws::String>& GetDbGroups() const { return m_dbGroups; }
172 inline bool DbGroupsHasBeenSet() const { return m_dbGroupsHasBeenSet; }
173 template <typename DbGroupsT = Aws::Vector<Aws::String>>
174 void SetDbGroups(DbGroupsT&& value) {
175 m_dbGroupsHasBeenSet = true;
176 m_dbGroups = std::forward<DbGroupsT>(value);
177 }
178 template <typename DbGroupsT = Aws::Vector<Aws::String>>
180 SetDbGroups(std::forward<DbGroupsT>(value));
181 return *this;
182 }
183 template <typename DbGroupsT = Aws::String>
185 m_dbGroupsHasBeenSet = true;
186 m_dbGroups.emplace_back(std::forward<DbGroupsT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::String& GetCustomDomainName() const { return m_customDomainName; }
196 inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; }
197 template <typename CustomDomainNameT = Aws::String>
198 void SetCustomDomainName(CustomDomainNameT&& value) {
199 m_customDomainNameHasBeenSet = true;
200 m_customDomainName = std::forward<CustomDomainNameT>(value);
201 }
202 template <typename CustomDomainNameT = Aws::String>
204 SetCustomDomainName(std::forward<CustomDomainNameT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_dbUser;
210
211 Aws::String m_dbName;
212
213 Aws::String m_clusterIdentifier;
214
215 int m_durationSeconds{0};
216
217 bool m_autoCreate{false};
218
219 Aws::Vector<Aws::String> m_dbGroups;
220
221 Aws::String m_customDomainName;
222 bool m_dbUserHasBeenSet = false;
223 bool m_dbNameHasBeenSet = false;
224 bool m_clusterIdentifierHasBeenSet = false;
225 bool m_durationSecondsHasBeenSet = false;
226 bool m_autoCreateHasBeenSet = false;
227 bool m_dbGroupsHasBeenSet = false;
228 bool m_customDomainNameHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace Redshift
233} // namespace Aws
GetClusterCredentialsRequest & AddDbGroups(DbGroupsT &&value)
GetClusterCredentialsRequest & WithCustomDomainName(CustomDomainNameT &&value)
GetClusterCredentialsRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
GetClusterCredentialsRequest & WithDbName(DbNameT &&value)
AWS_REDSHIFT_API GetClusterCredentialsRequest()=default
GetClusterCredentialsRequest & WithDurationSeconds(int value)
GetClusterCredentialsRequest & WithDbUser(DbUserT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
GetClusterCredentialsRequest & WithDbGroups(DbGroupsT &&value)
const Aws::Vector< Aws::String > & GetDbGroups() const
GetClusterCredentialsRequest & WithAutoCreate(bool value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector