AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDBProxyRequest.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/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/DefaultAuthScheme.h>
12#include <aws/rds/model/EndpointNetworkType.h>
13#include <aws/rds/model/EngineFamily.h>
14#include <aws/rds/model/Tag.h>
15#include <aws/rds/model/TargetConnectionNetworkType.h>
16#include <aws/rds/model/UserAuthConfig.h>
17
18#include <utility>
19
20namespace Aws {
21namespace RDS {
22namespace Model {
23
27 public:
28 AWS_RDS_API CreateDBProxyRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDBProxy"; }
35
36 AWS_RDS_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
50 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
51 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
52 template <typename DBProxyNameT = Aws::String>
53 void SetDBProxyName(DBProxyNameT&& value) {
54 m_dBProxyNameHasBeenSet = true;
55 m_dBProxyName = std::forward<DBProxyNameT>(value);
56 }
57 template <typename DBProxyNameT = Aws::String>
58 CreateDBProxyRequest& WithDBProxyName(DBProxyNameT&& value) {
59 SetDBProxyName(std::forward<DBProxyNameT>(value));
60 return *this;
61 }
63
65
73 inline EngineFamily GetEngineFamily() const { return m_engineFamily; }
74 inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
75 inline void SetEngineFamily(EngineFamily value) {
76 m_engineFamilyHasBeenSet = true;
77 m_engineFamily = value;
78 }
80 SetEngineFamily(value);
81 return *this;
82 }
84
86
95 inline DefaultAuthScheme GetDefaultAuthScheme() const { return m_defaultAuthScheme; }
96 inline bool DefaultAuthSchemeHasBeenSet() const { return m_defaultAuthSchemeHasBeenSet; }
98 m_defaultAuthSchemeHasBeenSet = true;
99 m_defaultAuthScheme = value;
100 }
103 return *this;
104 }
106
108
111 inline const Aws::Vector<UserAuthConfig>& GetAuth() const { return m_auth; }
112 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
113 template <typename AuthT = Aws::Vector<UserAuthConfig>>
114 void SetAuth(AuthT&& value) {
115 m_authHasBeenSet = true;
116 m_auth = std::forward<AuthT>(value);
117 }
118 template <typename AuthT = Aws::Vector<UserAuthConfig>>
120 SetAuth(std::forward<AuthT>(value));
121 return *this;
122 }
123 template <typename AuthT = UserAuthConfig>
125 m_authHasBeenSet = true;
126 m_auth.emplace_back(std::forward<AuthT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
137 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
138 template <typename RoleArnT = Aws::String>
139 void SetRoleArn(RoleArnT&& value) {
140 m_roleArnHasBeenSet = true;
141 m_roleArn = std::forward<RoleArnT>(value);
142 }
143 template <typename RoleArnT = Aws::String>
145 SetRoleArn(std::forward<RoleArnT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
155 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
156 template <typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
157 void SetVpcSubnetIds(VpcSubnetIdsT&& value) {
158 m_vpcSubnetIdsHasBeenSet = true;
159 m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value);
160 }
161 template <typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
162 CreateDBProxyRequest& WithVpcSubnetIds(VpcSubnetIdsT&& value) {
163 SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value));
164 return *this;
165 }
166 template <typename VpcSubnetIdsT = Aws::String>
167 CreateDBProxyRequest& AddVpcSubnetIds(VpcSubnetIdsT&& value) {
168 m_vpcSubnetIdsHasBeenSet = true;
169 m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
179 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
180 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
181 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
182 m_vpcSecurityGroupIdsHasBeenSet = true;
183 m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value);
184 }
185 template <typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
186 CreateDBProxyRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
187 SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value));
188 return *this;
189 }
190 template <typename VpcSecurityGroupIdsT = Aws::String>
191 CreateDBProxyRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) {
192 m_vpcSecurityGroupIdsHasBeenSet = true;
193 m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value));
194 return *this;
195 }
197
199
204 inline bool GetRequireTLS() const { return m_requireTLS; }
205 inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
206 inline void SetRequireTLS(bool value) {
207 m_requireTLSHasBeenSet = true;
208 m_requireTLS = value;
209 }
211 SetRequireTLS(value);
212 return *this;
213 }
215
217
222 inline int GetIdleClientTimeout() const { return m_idleClientTimeout; }
223 inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
224 inline void SetIdleClientTimeout(int value) {
225 m_idleClientTimeoutHasBeenSet = true;
226 m_idleClientTimeout = value;
227 }
230 return *this;
231 }
233
235
242 inline bool GetDebugLogging() const { return m_debugLogging; }
243 inline bool DebugLoggingHasBeenSet() const { return m_debugLoggingHasBeenSet; }
244 inline void SetDebugLogging(bool value) {
245 m_debugLoggingHasBeenSet = true;
246 m_debugLogging = value;
247 }
249 SetDebugLogging(value);
250 return *this;
251 }
253
255
259 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
260 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
261 template <typename TagsT = Aws::Vector<Tag>>
262 void SetTags(TagsT&& value) {
263 m_tagsHasBeenSet = true;
264 m_tags = std::forward<TagsT>(value);
265 }
266 template <typename TagsT = Aws::Vector<Tag>>
268 SetTags(std::forward<TagsT>(value));
269 return *this;
270 }
271 template <typename TagsT = Tag>
273 m_tagsHasBeenSet = true;
274 m_tags.emplace_back(std::forward<TagsT>(value));
275 return *this;
276 }
278
280
292 inline EndpointNetworkType GetEndpointNetworkType() const { return m_endpointNetworkType; }
293 inline bool EndpointNetworkTypeHasBeenSet() const { return m_endpointNetworkTypeHasBeenSet; }
295 m_endpointNetworkTypeHasBeenSet = true;
296 m_endpointNetworkType = value;
297 }
300 return *this;
301 }
303
305
317 inline TargetConnectionNetworkType GetTargetConnectionNetworkType() const { return m_targetConnectionNetworkType; }
318 inline bool TargetConnectionNetworkTypeHasBeenSet() const { return m_targetConnectionNetworkTypeHasBeenSet; }
320 m_targetConnectionNetworkTypeHasBeenSet = true;
321 m_targetConnectionNetworkType = value;
322 }
325 return *this;
326 }
328 private:
329 Aws::String m_dBProxyName;
330
331 EngineFamily m_engineFamily{EngineFamily::NOT_SET};
332
334
336
337 Aws::String m_roleArn;
338
339 Aws::Vector<Aws::String> m_vpcSubnetIds;
340
341 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
342
343 bool m_requireTLS{false};
344
345 int m_idleClientTimeout{0};
346
347 bool m_debugLogging{false};
348
349 Aws::Vector<Tag> m_tags;
350
352
354 bool m_dBProxyNameHasBeenSet = false;
355 bool m_engineFamilyHasBeenSet = false;
356 bool m_defaultAuthSchemeHasBeenSet = false;
357 bool m_authHasBeenSet = false;
358 bool m_roleArnHasBeenSet = false;
359 bool m_vpcSubnetIdsHasBeenSet = false;
360 bool m_vpcSecurityGroupIdsHasBeenSet = false;
361 bool m_requireTLSHasBeenSet = false;
362 bool m_idleClientTimeoutHasBeenSet = false;
363 bool m_debugLoggingHasBeenSet = false;
364 bool m_tagsHasBeenSet = false;
365 bool m_endpointNetworkTypeHasBeenSet = false;
366 bool m_targetConnectionNetworkTypeHasBeenSet = false;
367};
368
369} // namespace Model
370} // namespace RDS
371} // namespace Aws
void SetTargetConnectionNetworkType(TargetConnectionNetworkType value)
void SetEndpointNetworkType(EndpointNetworkType value)
void SetDBProxyName(DBProxyNameT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
CreateDBProxyRequest & AddTags(TagsT &&value)
CreateDBProxyRequest & WithDebugLogging(bool value)
const Aws::Vector< UserAuthConfig > & GetAuth() const
CreateDBProxyRequest & WithRequireTLS(bool value)
CreateDBProxyRequest & WithAuth(AuthT &&value)
CreateDBProxyRequest & WithVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDBProxyRequest & AddAuth(AuthT &&value)
void SetVpcSubnetIds(VpcSubnetIdsT &&value)
CreateDBProxyRequest & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateDBProxyRequest & WithDBProxyName(DBProxyNameT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBProxyRequest & WithTargetConnectionNetworkType(TargetConnectionNetworkType value)
CreateDBProxyRequest & WithIdleClientTimeout(int value)
CreateDBProxyRequest & WithEngineFamily(EngineFamily value)
AWS_RDS_API CreateDBProxyRequest()=default
CreateDBProxyRequest & WithEndpointNetworkType(EndpointNetworkType value)
CreateDBProxyRequest & WithDefaultAuthScheme(DefaultAuthScheme value)
const Aws::Vector< Tag > & GetTags() const
CreateDBProxyRequest & WithRoleArn(RoleArnT &&value)
CreateDBProxyRequest & WithTags(TagsT &&value)
TargetConnectionNetworkType GetTargetConnectionNetworkType() const
const Aws::String & GetDBProxyName() const
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
CreateDBProxyRequest & AddVpcSubnetIds(VpcSubnetIdsT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
DefaultAuthScheme GetDefaultAuthScheme() const
CreateDBProxyRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
EndpointNetworkType GetEndpointNetworkType() const
void SetDefaultAuthScheme(DefaultAuthScheme value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector