AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDBProxyRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/model/EngineFamily.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rds/model/UserAuthConfig.h>
13#include <aws/rds/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace RDS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RDS_API CreateDBProxyRequest();
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:
42
44
51 inline const Aws::String& GetDBProxyName() const{ return m_dBProxyName; }
52 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
53 inline void SetDBProxyName(const Aws::String& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = value; }
54 inline void SetDBProxyName(Aws::String&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::move(value); }
55 inline void SetDBProxyName(const char* value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName.assign(value); }
56 inline CreateDBProxyRequest& WithDBProxyName(const Aws::String& value) { SetDBProxyName(value); return *this;}
57 inline CreateDBProxyRequest& WithDBProxyName(Aws::String&& value) { SetDBProxyName(std::move(value)); return *this;}
58 inline CreateDBProxyRequest& WithDBProxyName(const char* value) { SetDBProxyName(value); return *this;}
60
62
70 inline const EngineFamily& GetEngineFamily() const{ return m_engineFamily; }
71 inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
72 inline void SetEngineFamily(const EngineFamily& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = value; }
73 inline void SetEngineFamily(EngineFamily&& value) { m_engineFamilyHasBeenSet = true; m_engineFamily = std::move(value); }
74 inline CreateDBProxyRequest& WithEngineFamily(const EngineFamily& value) { SetEngineFamily(value); return *this;}
75 inline CreateDBProxyRequest& WithEngineFamily(EngineFamily&& value) { SetEngineFamily(std::move(value)); return *this;}
77
79
82 inline const Aws::Vector<UserAuthConfig>& GetAuth() const{ return m_auth; }
83 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
84 inline void SetAuth(const Aws::Vector<UserAuthConfig>& value) { m_authHasBeenSet = true; m_auth = value; }
85 inline void SetAuth(Aws::Vector<UserAuthConfig>&& value) { m_authHasBeenSet = true; m_auth = std::move(value); }
86 inline CreateDBProxyRequest& WithAuth(const Aws::Vector<UserAuthConfig>& value) { SetAuth(value); return *this;}
87 inline CreateDBProxyRequest& WithAuth(Aws::Vector<UserAuthConfig>&& value) { SetAuth(std::move(value)); return *this;}
88 inline CreateDBProxyRequest& AddAuth(const UserAuthConfig& value) { m_authHasBeenSet = true; m_auth.push_back(value); return *this; }
89 inline CreateDBProxyRequest& AddAuth(UserAuthConfig&& value) { m_authHasBeenSet = true; m_auth.push_back(std::move(value)); return *this; }
91
93
97 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
98 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
99 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
100 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
101 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
102 inline CreateDBProxyRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
103 inline CreateDBProxyRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
104 inline CreateDBProxyRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
106
108
111 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const{ return m_vpcSubnetIds; }
112 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
113 inline void SetVpcSubnetIds(const Aws::Vector<Aws::String>& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = value; }
114 inline void SetVpcSubnetIds(Aws::Vector<Aws::String>&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::move(value); }
116 inline CreateDBProxyRequest& WithVpcSubnetIds(Aws::Vector<Aws::String>&& value) { SetVpcSubnetIds(std::move(value)); return *this;}
117 inline CreateDBProxyRequest& AddVpcSubnetIds(const Aws::String& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
118 inline CreateDBProxyRequest& AddVpcSubnetIds(Aws::String&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(std::move(value)); return *this; }
119 inline CreateDBProxyRequest& AddVpcSubnetIds(const char* value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
121
123
126 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
127 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
128 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
129 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
132 inline CreateDBProxyRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
133 inline CreateDBProxyRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
134 inline CreateDBProxyRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
136
138
143 inline bool GetRequireTLS() const{ return m_requireTLS; }
144 inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
145 inline void SetRequireTLS(bool value) { m_requireTLSHasBeenSet = true; m_requireTLS = value; }
146 inline CreateDBProxyRequest& WithRequireTLS(bool value) { SetRequireTLS(value); return *this;}
148
150
155 inline int GetIdleClientTimeout() const{ return m_idleClientTimeout; }
156 inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
157 inline void SetIdleClientTimeout(int value) { m_idleClientTimeoutHasBeenSet = true; m_idleClientTimeout = value; }
158 inline CreateDBProxyRequest& WithIdleClientTimeout(int value) { SetIdleClientTimeout(value); return *this;}
160
162
171 inline bool GetDebugLogging() const{ return m_debugLogging; }
172 inline bool DebugLoggingHasBeenSet() const { return m_debugLoggingHasBeenSet; }
173 inline void SetDebugLogging(bool value) { m_debugLoggingHasBeenSet = true; m_debugLogging = value; }
174 inline CreateDBProxyRequest& WithDebugLogging(bool value) { SetDebugLogging(value); return *this;}
176
178
182 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
183 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
184 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
185 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
186 inline CreateDBProxyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
187 inline CreateDBProxyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
188 inline CreateDBProxyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
189 inline CreateDBProxyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
191 private:
192
193 Aws::String m_dBProxyName;
194 bool m_dBProxyNameHasBeenSet = false;
195
196 EngineFamily m_engineFamily;
197 bool m_engineFamilyHasBeenSet = false;
198
200 bool m_authHasBeenSet = false;
201
202 Aws::String m_roleArn;
203 bool m_roleArnHasBeenSet = false;
204
205 Aws::Vector<Aws::String> m_vpcSubnetIds;
206 bool m_vpcSubnetIdsHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
209 bool m_vpcSecurityGroupIdsHasBeenSet = false;
210
211 bool m_requireTLS;
212 bool m_requireTLSHasBeenSet = false;
213
214 int m_idleClientTimeout;
215 bool m_idleClientTimeoutHasBeenSet = false;
216
217 bool m_debugLogging;
218 bool m_debugLoggingHasBeenSet = false;
219
220 Aws::Vector<Tag> m_tags;
221 bool m_tagsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace RDS
226} // namespace Aws
CreateDBProxyRequest & WithRoleArn(const char *value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
void SetRoleArn(const Aws::String &value)
CreateDBProxyRequest & WithRoleArn(Aws::String &&value)
CreateDBProxyRequest & AddTags(Tag &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
void SetDBProxyName(const Aws::String &value)
CreateDBProxyRequest & WithDebugLogging(bool value)
void SetAuth(Aws::Vector< UserAuthConfig > &&value)
const Aws::Vector< UserAuthConfig > & GetAuth() const
CreateDBProxyRequest & AddVpcSecurityGroupIds(const Aws::String &value)
const EngineFamily & GetEngineFamily() const
CreateDBProxyRequest & WithRequireTLS(bool value)
CreateDBProxyRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDBProxyRequest & WithDBProxyName(const Aws::String &value)
void SetVpcSubnetIds(const Aws::Vector< Aws::String > &value)
void SetEngineFamily(const EngineFamily &value)
void SetTags(Aws::Vector< Tag > &&value)
CreateDBProxyRequest & AddAuth(const UserAuthConfig &value)
CreateDBProxyRequest & WithDBProxyName(Aws::String &&value)
CreateDBProxyRequest & AddAuth(UserAuthConfig &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateDBProxyRequest & AddVpcSecurityGroupIds(const char *value)
CreateDBProxyRequest & WithIdleClientTimeout(int value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateDBProxyRequest & AddVpcSubnetIds(Aws::String &&value)
CreateDBProxyRequest & WithVpcSubnetIds(Aws::Vector< Aws::String > &&value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateDBProxyRequest & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
void SetEngineFamily(EngineFamily &&value)
CreateDBProxyRequest & WithVpcSubnetIds(const Aws::Vector< Aws::String > &value)
CreateDBProxyRequest & AddVpcSubnetIds(const Aws::String &value)
CreateDBProxyRequest & WithAuth(const Aws::Vector< UserAuthConfig > &value)
const Aws::String & GetDBProxyName() const
CreateDBProxyRequest & AddVpcSubnetIds(const char *value)
CreateDBProxyRequest & WithDBProxyName(const char *value)
CreateDBProxyRequest & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateDBProxyRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDBProxyRequest & WithEngineFamily(EngineFamily &&value)
CreateDBProxyRequest & WithAuth(Aws::Vector< UserAuthConfig > &&value)
CreateDBProxyRequest & AddTags(const Tag &value)
CreateDBProxyRequest & AddVpcSecurityGroupIds(Aws::String &&value)
AWS_RDS_API Aws::String SerializePayload() const override
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetVpcSubnetIds(Aws::Vector< Aws::String > &&value)
void SetAuth(const Aws::Vector< UserAuthConfig > &value)
CreateDBProxyRequest & WithEngineFamily(const EngineFamily &value)
CreateDBProxyRequest & WithRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector