AWS SDK for C++  1.8.71
AWS SDK for C++
CreateDBProxyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
13 #include <aws/rds/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace RDS
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
49  inline const Aws::String& GetDBProxyName() const{ return m_dBProxyName; }
50 
57  inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
58 
65  inline void SetDBProxyName(const Aws::String& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = value; }
66 
73  inline void SetDBProxyName(Aws::String&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::move(value); }
74 
81  inline void SetDBProxyName(const char* value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName.assign(value); }
82 
89  inline CreateDBProxyRequest& WithDBProxyName(const Aws::String& value) { SetDBProxyName(value); return *this;}
90 
97  inline CreateDBProxyRequest& WithDBProxyName(Aws::String&& value) { SetDBProxyName(std::move(value)); return *this;}
98 
105  inline CreateDBProxyRequest& WithDBProxyName(const char* value) { SetDBProxyName(value); return *this;}
106 
107 
114  inline const EngineFamily& GetEngineFamily() const{ return m_engineFamily; }
115 
122  inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
123 
130  inline void SetEngineFamily(const EngineFamily& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = value; }
131 
138  inline void SetEngineFamily(EngineFamily&& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = std::move(value); }
139 
146  inline CreateDBProxyRequest& WithEngineFamily(const EngineFamily& value) { SetEngineFamily(value); return *this;}
147 
154  inline CreateDBProxyRequest& WithEngineFamily(EngineFamily&& value) { SetEngineFamily(std::move(value)); return *this;}
155 
156 
160  inline const Aws::Vector<UserAuthConfig>& GetAuth() const{ return m_auth; }
161 
165  inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
166 
170  inline void SetAuth(const Aws::Vector<UserAuthConfig>& value) { m_authHasBeenSet = true; m_auth = value; }
171 
175  inline void SetAuth(Aws::Vector<UserAuthConfig>&& value) { m_authHasBeenSet = true; m_auth = std::move(value); }
176 
180  inline CreateDBProxyRequest& WithAuth(const Aws::Vector<UserAuthConfig>& value) { SetAuth(value); return *this;}
181 
185  inline CreateDBProxyRequest& WithAuth(Aws::Vector<UserAuthConfig>&& value) { SetAuth(std::move(value)); return *this;}
186 
190  inline CreateDBProxyRequest& AddAuth(const UserAuthConfig& value) { m_authHasBeenSet = true; m_auth.push_back(value); return *this; }
191 
195  inline CreateDBProxyRequest& AddAuth(UserAuthConfig&& value) { m_authHasBeenSet = true; m_auth.push_back(std::move(value)); return *this; }
196 
197 
202  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
203 
208  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
209 
214  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
215 
220  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
221 
226  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
227 
232  inline CreateDBProxyRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
233 
238  inline CreateDBProxyRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
239 
244  inline CreateDBProxyRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
245 
246 
250  inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const{ return m_vpcSubnetIds; }
251 
255  inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
256 
260  inline void SetVpcSubnetIds(const Aws::Vector<Aws::String>& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = value; }
261 
265  inline void SetVpcSubnetIds(Aws::Vector<Aws::String>&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::move(value); }
266 
270  inline CreateDBProxyRequest& WithVpcSubnetIds(const Aws::Vector<Aws::String>& value) { SetVpcSubnetIds(value); return *this;}
271 
275  inline CreateDBProxyRequest& WithVpcSubnetIds(Aws::Vector<Aws::String>&& value) { SetVpcSubnetIds(std::move(value)); return *this;}
276 
280  inline CreateDBProxyRequest& AddVpcSubnetIds(const Aws::String& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
281 
285  inline CreateDBProxyRequest& AddVpcSubnetIds(Aws::String&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(std::move(value)); return *this; }
286 
290  inline CreateDBProxyRequest& AddVpcSubnetIds(const char* value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
291 
292 
296  inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
297 
301  inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
302 
306  inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
307 
311  inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
312 
316  inline CreateDBProxyRequest& WithVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetVpcSecurityGroupIds(value); return *this;}
317 
321  inline CreateDBProxyRequest& WithVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;}
322 
326  inline CreateDBProxyRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
327 
331  inline CreateDBProxyRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
332 
336  inline CreateDBProxyRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
337 
338 
344  inline bool GetRequireTLS() const{ return m_requireTLS; }
345 
351  inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
352 
358  inline void SetRequireTLS(bool value) { m_requireTLSHasBeenSet = true; m_requireTLS = value; }
359 
365  inline CreateDBProxyRequest& WithRequireTLS(bool value) { SetRequireTLS(value); return *this;}
366 
367 
373  inline int GetIdleClientTimeout() const{ return m_idleClientTimeout; }
374 
380  inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
381 
387  inline void SetIdleClientTimeout(int value) { m_idleClientTimeoutHasBeenSet = true; m_idleClientTimeout = value; }
388 
394  inline CreateDBProxyRequest& WithIdleClientTimeout(int value) { SetIdleClientTimeout(value); return *this;}
395 
396 
406  inline bool GetDebugLogging() const{ return m_debugLogging; }
407 
417  inline bool DebugLoggingHasBeenSet() const { return m_debugLoggingHasBeenSet; }
418 
428  inline void SetDebugLogging(bool value) { m_debugLoggingHasBeenSet = true; m_debugLogging = value; }
429 
439  inline CreateDBProxyRequest& WithDebugLogging(bool value) { SetDebugLogging(value); return *this;}
440 
441 
446  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
447 
452  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
453 
458  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
459 
464  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
465 
470  inline CreateDBProxyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
471 
476  inline CreateDBProxyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
477 
482  inline CreateDBProxyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
483 
488  inline CreateDBProxyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
489 
490  private:
491 
492  Aws::String m_dBProxyName;
493  bool m_dBProxyNameHasBeenSet;
494 
495  EngineFamily m_engineFamily;
496  bool m_engineFamilyHasBeenSet;
497 
499  bool m_authHasBeenSet;
500 
501  Aws::String m_roleArn;
502  bool m_roleArnHasBeenSet;
503 
504  Aws::Vector<Aws::String> m_vpcSubnetIds;
505  bool m_vpcSubnetIdsHasBeenSet;
506 
507  Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
508  bool m_vpcSecurityGroupIdsHasBeenSet;
509 
510  bool m_requireTLS;
511  bool m_requireTLSHasBeenSet;
512 
513  int m_idleClientTimeout;
514  bool m_idleClientTimeoutHasBeenSet;
515 
516  bool m_debugLogging;
517  bool m_debugLoggingHasBeenSet;
518 
519  Aws::Vector<Tag> m_tags;
520  bool m_tagsHasBeenSet;
521  };
522 
523 } // namespace Model
524 } // namespace RDS
525 } // namespace Aws
CreateDBProxyRequest & AddTags(Tag &&value)
CreateDBProxyRequest & WithDebugLogging(bool value)
CreateDBProxyRequest & WithAuth(Aws::Vector< UserAuthConfig > &&value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetEngineFamily(const EngineFamily &value)
virtual const char * GetServiceRequestName() const override
CreateDBProxyRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetRoleArn(const Aws::String &value)
const Aws::Vector< UserAuthConfig > & GetAuth() const
CreateDBProxyRequest & WithAuth(const Aws::Vector< UserAuthConfig > &value)
void SetDBProxyName(Aws::String &&value)
CreateDBProxyRequest & WithRoleArn(const char *value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
void SetVpcSubnetIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Tag > & GetTags() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateDBProxyRequest & AddTags(const Tag &value)
CreateDBProxyRequest & WithDBProxyName(Aws::String &&value)
CreateDBProxyRequest & AddVpcSubnetIds(const Aws::String &value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetDBProxyName() const
CreateDBProxyRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBProxyRequest & WithVpcSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDBProxyRequest & AddVpcSecurityGroupIds(const char *value)
CreateDBProxyRequest & AddAuth(UserAuthConfig &&value)
void SetAuth(Aws::Vector< UserAuthConfig > &&value)
CreateDBProxyRequest & AddVpcSecurityGroupIds(const Aws::String &value)
CreateDBProxyRequest & AddVpcSecurityGroupIds(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
void SetEngineFamily(EngineFamily &&value)
CreateDBProxyRequest & WithRequireTLS(bool value)
CreateDBProxyRequest & AddVpcSubnetIds(Aws::String &&value)
void SetAuth(const Aws::Vector< UserAuthConfig > &value)
void SetTags(const Aws::Vector< Tag > &value)
const EngineFamily & GetEngineFamily() const
CreateDBProxyRequest & WithDBProxyName(const Aws::String &value)
CreateDBProxyRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDBProxyRequest & AddVpcSubnetIds(const char *value)
CreateDBProxyRequest & WithDBProxyName(const char *value)
CreateDBProxyRequest & WithIdleClientTimeout(int value)
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
void SetVpcSubnetIds(Aws::Vector< Aws::String > &&value)
CreateDBProxyRequest & WithRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTags(Aws::Vector< Tag > &&value)
CreateDBProxyRequest & WithEngineFamily(const EngineFamily &value)
CreateDBProxyRequest & WithEngineFamily(EngineFamily &&value)
CreateDBProxyRequest & WithRoleArn(Aws::String &&value)
void SetDBProxyName(const Aws::String &value)
const Aws::String & GetRoleArn() const
CreateDBProxyRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateDBProxyRequest & WithVpcSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDBProxyRequest & AddAuth(const UserAuthConfig &value)