AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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:
42
44
51 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
52 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
53 template<typename DBProxyNameT = Aws::String>
54 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
55 template<typename DBProxyNameT = Aws::String>
56 CreateDBProxyRequest& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
58
60
68 inline EngineFamily GetEngineFamily() const { return m_engineFamily; }
69 inline bool EngineFamilyHasBeenSet() const { return m_engineFamilyHasBeenSet; }
70 inline void SetEngineFamily(EngineFamily value) { m_engineFamilyHasBeenSet = true; m_engineFamily = value; }
71 inline CreateDBProxyRequest& WithEngineFamily(EngineFamily value) { SetEngineFamily(value); return *this;}
73
75
78 inline const Aws::Vector<UserAuthConfig>& GetAuth() const { return m_auth; }
79 inline bool AuthHasBeenSet() const { return m_authHasBeenSet; }
80 template<typename AuthT = Aws::Vector<UserAuthConfig>>
81 void SetAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth = std::forward<AuthT>(value); }
82 template<typename AuthT = Aws::Vector<UserAuthConfig>>
83 CreateDBProxyRequest& WithAuth(AuthT&& value) { SetAuth(std::forward<AuthT>(value)); return *this;}
84 template<typename AuthT = UserAuthConfig>
85 CreateDBProxyRequest& AddAuth(AuthT&& value) { m_authHasBeenSet = true; m_auth.emplace_back(std::forward<AuthT>(value)); return *this; }
87
89
93 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
94 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
95 template<typename RoleArnT = Aws::String>
96 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
97 template<typename RoleArnT = Aws::String>
98 CreateDBProxyRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
100
102
105 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
106 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
107 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
108 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
109 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
110 CreateDBProxyRequest& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
111 template<typename VpcSubnetIdsT = Aws::String>
112 CreateDBProxyRequest& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
114
116
119 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
120 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
121 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
122 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
123 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
124 CreateDBProxyRequest& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
125 template<typename VpcSecurityGroupIdsT = Aws::String>
126 CreateDBProxyRequest& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
128
130
135 inline bool GetRequireTLS() const { return m_requireTLS; }
136 inline bool RequireTLSHasBeenSet() const { return m_requireTLSHasBeenSet; }
137 inline void SetRequireTLS(bool value) { m_requireTLSHasBeenSet = true; m_requireTLS = value; }
138 inline CreateDBProxyRequest& WithRequireTLS(bool value) { SetRequireTLS(value); return *this;}
140
142
147 inline int GetIdleClientTimeout() const { return m_idleClientTimeout; }
148 inline bool IdleClientTimeoutHasBeenSet() const { return m_idleClientTimeoutHasBeenSet; }
149 inline void SetIdleClientTimeout(int value) { m_idleClientTimeoutHasBeenSet = true; m_idleClientTimeout = value; }
150 inline CreateDBProxyRequest& WithIdleClientTimeout(int value) { SetIdleClientTimeout(value); return *this;}
152
154
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 private:
184
185 Aws::String m_dBProxyName;
186 bool m_dBProxyNameHasBeenSet = false;
187
188 EngineFamily m_engineFamily{EngineFamily::NOT_SET};
189 bool m_engineFamilyHasBeenSet = false;
190
192 bool m_authHasBeenSet = false;
193
194 Aws::String m_roleArn;
195 bool m_roleArnHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_vpcSubnetIds;
198 bool m_vpcSubnetIdsHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
201 bool m_vpcSecurityGroupIdsHasBeenSet = false;
202
203 bool m_requireTLS{false};
204 bool m_requireTLSHasBeenSet = false;
205
206 int m_idleClientTimeout{0};
207 bool m_idleClientTimeoutHasBeenSet = false;
208
209 bool m_debugLogging{false};
210 bool m_debugLoggingHasBeenSet = false;
211
212 Aws::Vector<Tag> m_tags;
213 bool m_tagsHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace RDS
218} // namespace Aws
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 & WithIdleClientTimeout(int value)
CreateDBProxyRequest & WithEngineFamily(EngineFamily value)
AWS_RDS_API CreateDBProxyRequest()=default
const Aws::Vector< Tag > & GetTags() const
CreateDBProxyRequest & WithRoleArn(RoleArnT &&value)
CreateDBProxyRequest & WithTags(TagsT &&value)
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector