AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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/EndpointNetworkType.h>
13#include <aws/rds/model/TargetConnectionNetworkType.h>
14#include <aws/rds/model/UserAuthConfig.h>
15#include <aws/rds/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace RDS
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_RDS_API CreateDBProxyRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDBProxy"; }
37
38 AWS_RDS_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
53 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
54 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
55 template<typename DBProxyNameT = Aws::String>
56 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
57 template<typename DBProxyNameT = Aws::String>
58 CreateDBProxyRequest& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
60
62
70 inline EngineFamily GetEngineFamily() const { return m_engineFamily; }
71 inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
72 inline void SetEngineFamily(EngineFamily value) { m_engineFamilyHasBeenSet = true; m_engineFamily = value; }
73 inline CreateDBProxyRequest& WithEngineFamily(EngineFamily value) { SetEngineFamily(value); return *this;}
75
77
80 inline const Aws::Vector<UserAuthConfig>& GetAuth() const { return m_auth; }
81 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
82 template<typename AuthT = Aws::Vector<UserAuthConfig>>
83 void SetAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth = std::forward<AuthT>(value); }
84 template<typename AuthT = Aws::Vector<UserAuthConfig>>
85 CreateDBProxyRequest& WithAuth(AuthT&& value) { SetAuth(std::forward<AuthT>(value)); return *this;}
86 template<typename AuthT = UserAuthConfig>
87 CreateDBProxyRequest& AddAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth.emplace_back(std::forward<AuthT>(value)); return *this; }
89
91
95 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
96 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
97 template<typename RoleArnT = Aws::String>
98 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
99 template<typename RoleArnT = Aws::String>
100 CreateDBProxyRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
102
104
107 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
108 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
109 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
110 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
111 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
112 CreateDBProxyRequest& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
113 template<typename VpcSubnetIdsT = Aws::String>
114 CreateDBProxyRequest& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
116
118
121 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
122 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
123 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
124 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
125 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
126 CreateDBProxyRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
127 template<typename VpcSecurityGroupIdsT = Aws::String>
128 CreateDBProxyRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
130
132
137 inline bool GetRequireTLS() const { return m_requireTLS; }
138 inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
139 inline void SetRequireTLS(bool value) { m_requireTLSHasBeenSet = true; m_requireTLS = value; }
140 inline CreateDBProxyRequest& WithRequireTLS(bool value) { SetRequireTLS(value); return *this;}
142
144
149 inline int GetIdleClientTimeout() const { return m_idleClientTimeout; }
150 inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
151 inline void SetIdleClientTimeout(int value) { m_idleClientTimeoutHasBeenSet = true; m_idleClientTimeout = value; }
152 inline CreateDBProxyRequest& WithIdleClientTimeout(int value) { SetIdleClientTimeout(value); return *this;}
154
156
163 inline bool GetDebugLogging() const { return m_debugLogging; }
164 inline bool DebugLoggingHasBeenSet() const { return m_debugLoggingHasBeenSet; }
165 inline void SetDebugLogging(bool value) { m_debugLoggingHasBeenSet = true; m_debugLogging = value; }
166 inline CreateDBProxyRequest& WithDebugLogging(bool value) { SetDebugLogging(value); return *this;}
168
170
174 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template<typename TagsT = Aws::Vector<Tag>>
177 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
178 template<typename TagsT = Aws::Vector<Tag>>
179 CreateDBProxyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
180 template<typename TagsT = Tag>
181 CreateDBProxyRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
183
185
197 inline EndpointNetworkType GetEndpointNetworkType() const { return m_endpointNetworkType; }
198 inline bool EndpointNetworkTypeHasBeenSet() const { return m_endpointNetworkTypeHasBeenSet; }
199 inline void SetEndpointNetworkType(EndpointNetworkType value) { m_endpointNetworkTypeHasBeenSet = true; m_endpointNetworkType = value; }
202
204
216 inline TargetConnectionNetworkType GetTargetConnectionNetworkType() const { return m_targetConnectionNetworkType; }
217 inline bool TargetConnectionNetworkTypeHasBeenSet() const { return m_targetConnectionNetworkTypeHasBeenSet; }
218 inline void SetTargetConnectionNetworkType(TargetConnectionNetworkType value) { m_targetConnectionNetworkTypeHasBeenSet = true; m_targetConnectionNetworkType = value; }
221 private:
222
223 Aws::String m_dBProxyName;
224 bool m_dBProxyNameHasBeenSet = false;
225
226 EngineFamily m_engineFamily{EngineFamily::NOT_SET};
227 bool m_engineFamilyHasBeenSet = false;
228
230 bool m_authHasBeenSet = false;
231
232 Aws::String m_roleArn;
233 bool m_roleArnHasBeenSet = false;
234
235 Aws::Vector<Aws::String> m_vpcSubnetIds;
236 bool m_vpcSubnetIdsHasBeenSet = false;
237
238 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
239 bool m_vpcSecurityGroupIdsHasBeenSet = false;
240
241 bool m_requireTLS{false};
242 bool m_requireTLSHasBeenSet = false;
243
244 int m_idleClientTimeout{0};
245 bool m_idleClientTimeoutHasBeenSet = false;
246
247 bool m_debugLogging{false};
248 bool m_debugLoggingHasBeenSet = false;
249
250 Aws::Vector<Tag> m_tags;
251 bool m_tagsHasBeenSet = false;
252
254 bool m_endpointNetworkTypeHasBeenSet = false;
255
257 bool m_targetConnectionNetworkTypeHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace RDS
262} // 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)
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
CreateDBProxyRequest & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
EndpointNetworkType GetEndpointNetworkType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector