AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DBProxyEndpoint.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/model/DBProxyEndpointStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/rds/model/DBProxyEndpointTargetRole.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace RDS
26{
27namespace Model
28{
29
41 {
42 public:
43 AWS_RDS_API DBProxyEndpoint();
44 AWS_RDS_API DBProxyEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
57 inline const Aws::String& GetDBProxyEndpointName() const{ return m_dBProxyEndpointName; }
58 inline bool DBProxyEndpointNameHasBeenSet() const { return m_dBProxyEndpointNameHasBeenSet; }
59 inline void SetDBProxyEndpointName(const Aws::String& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = value; }
60 inline void SetDBProxyEndpointName(Aws::String&& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = std::move(value); }
61 inline void SetDBProxyEndpointName(const char* value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName.assign(value); }
62 inline DBProxyEndpoint& WithDBProxyEndpointName(const Aws::String& value) { SetDBProxyEndpointName(value); return *this;}
63 inline DBProxyEndpoint& WithDBProxyEndpointName(Aws::String&& value) { SetDBProxyEndpointName(std::move(value)); return *this;}
64 inline DBProxyEndpoint& WithDBProxyEndpointName(const char* value) { SetDBProxyEndpointName(value); return *this;}
66
68
71 inline const Aws::String& GetDBProxyEndpointArn() const{ return m_dBProxyEndpointArn; }
72 inline bool DBProxyEndpointArnHasBeenSet() const { return m_dBProxyEndpointArnHasBeenSet; }
73 inline void SetDBProxyEndpointArn(const Aws::String& value) { m_dBProxyEndpointArnHasBeenSet = true; m_dBProxyEndpointArn = value; }
74 inline void SetDBProxyEndpointArn(Aws::String&& value) { m_dBProxyEndpointArnHasBeenSet = true; m_dBProxyEndpointArn = std::move(value); }
75 inline void SetDBProxyEndpointArn(const char* value) { m_dBProxyEndpointArnHasBeenSet = true; m_dBProxyEndpointArn.assign(value); }
76 inline DBProxyEndpoint& WithDBProxyEndpointArn(const Aws::String& value) { SetDBProxyEndpointArn(value); return *this;}
77 inline DBProxyEndpoint& WithDBProxyEndpointArn(Aws::String&& value) { SetDBProxyEndpointArn(std::move(value)); return *this;}
78 inline DBProxyEndpoint& WithDBProxyEndpointArn(const char* value) { SetDBProxyEndpointArn(value); return *this;}
80
82
86 inline const Aws::String& GetDBProxyName() const{ return m_dBProxyName; }
87 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
88 inline void SetDBProxyName(const Aws::String& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = value; }
89 inline void SetDBProxyName(Aws::String&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::move(value); }
90 inline void SetDBProxyName(const char* value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName.assign(value); }
91 inline DBProxyEndpoint& WithDBProxyName(const Aws::String& value) { SetDBProxyName(value); return *this;}
92 inline DBProxyEndpoint& WithDBProxyName(Aws::String&& value) { SetDBProxyName(std::move(value)); return *this;}
93 inline DBProxyEndpoint& WithDBProxyName(const char* value) { SetDBProxyName(value); return *this;}
95
97
103 inline const DBProxyEndpointStatus& GetStatus() const{ return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(const DBProxyEndpointStatus& value) { m_statusHasBeenSet = true; m_status = value; }
106 inline void SetStatus(DBProxyEndpointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
107 inline DBProxyEndpoint& WithStatus(const DBProxyEndpointStatus& value) { SetStatus(value); return *this;}
108 inline DBProxyEndpoint& WithStatus(DBProxyEndpointStatus&& value) { SetStatus(std::move(value)); return *this;}
110
112
115 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
116 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
117 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
118 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
119 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
120 inline DBProxyEndpoint& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
121 inline DBProxyEndpoint& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
122 inline DBProxyEndpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;}
124
126
130 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; }
131 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
132 inline void SetVpcSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; }
133 inline void SetVpcSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); }
136 inline DBProxyEndpoint& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
137 inline DBProxyEndpoint& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; }
138 inline DBProxyEndpoint& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; }
140
142
145 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const{ return m_vpcSubnetIds; }
146 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
147 inline void SetVpcSubnetIds(const Aws::Vector<Aws::String>& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = value; }
148 inline void SetVpcSubnetIds(Aws::Vector<Aws::String>&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::move(value); }
149 inline DBProxyEndpoint& WithVpcSubnetIds(const Aws::Vector<Aws::String>& value) { SetVpcSubnetIds(value); return *this;}
150 inline DBProxyEndpoint& WithVpcSubnetIds(Aws::Vector<Aws::String>&& value) { SetVpcSubnetIds(std::move(value)); return *this;}
151 inline DBProxyEndpoint& AddVpcSubnetIds(const Aws::String& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
152 inline DBProxyEndpoint& AddVpcSubnetIds(Aws::String&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(std::move(value)); return *this; }
153 inline DBProxyEndpoint& AddVpcSubnetIds(const char* value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.push_back(value); return *this; }
155
157
161 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
162 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
163 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
164 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
165 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
166 inline DBProxyEndpoint& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
167 inline DBProxyEndpoint& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
168 inline DBProxyEndpoint& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
176 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
177 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
178 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
179 inline DBProxyEndpoint& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
180 inline DBProxyEndpoint& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
182
184
188 inline const DBProxyEndpointTargetRole& GetTargetRole() const{ return m_targetRole; }
189 inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; }
190 inline void SetTargetRole(const DBProxyEndpointTargetRole& value) { m_targetRoleHasBeenSet = true; m_targetRole = value; }
191 inline void SetTargetRole(DBProxyEndpointTargetRole&& value) { m_targetRoleHasBeenSet = true; m_targetRole = std::move(value); }
192 inline DBProxyEndpoint& WithTargetRole(const DBProxyEndpointTargetRole& value) { SetTargetRole(value); return *this;}
193 inline DBProxyEndpoint& WithTargetRole(DBProxyEndpointTargetRole&& value) { SetTargetRole(std::move(value)); return *this;}
195
197
203 inline bool GetIsDefault() const{ return m_isDefault; }
204 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
205 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
206 inline DBProxyEndpoint& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
208 private:
209
210 Aws::String m_dBProxyEndpointName;
211 bool m_dBProxyEndpointNameHasBeenSet = false;
212
213 Aws::String m_dBProxyEndpointArn;
214 bool m_dBProxyEndpointArnHasBeenSet = false;
215
216 Aws::String m_dBProxyName;
217 bool m_dBProxyNameHasBeenSet = false;
218
219 DBProxyEndpointStatus m_status;
220 bool m_statusHasBeenSet = false;
221
222 Aws::String m_vpcId;
223 bool m_vpcIdHasBeenSet = false;
224
225 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
226 bool m_vpcSecurityGroupIdsHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_vpcSubnetIds;
229 bool m_vpcSubnetIdsHasBeenSet = false;
230
231 Aws::String m_endpoint;
232 bool m_endpointHasBeenSet = false;
233
234 Aws::Utils::DateTime m_createdDate;
235 bool m_createdDateHasBeenSet = false;
236
237 DBProxyEndpointTargetRole m_targetRole;
238 bool m_targetRoleHasBeenSet = false;
239
240 bool m_isDefault;
241 bool m_isDefaultHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace RDS
246} // namespace Aws
const Aws::String & GetDBProxyName() const
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
void SetDBProxyEndpointName(const char *value)
void SetVpcId(const char *value)
DBProxyEndpoint & WithDBProxyEndpointArn(const Aws::String &value)
DBProxyEndpoint & AddVpcSecurityGroupIds(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
DBProxyEndpoint & WithDBProxyEndpointArn(Aws::String &&value)
DBProxyEndpoint & WithCreatedDate(Aws::Utils::DateTime &&value)
const Aws::String & GetDBProxyEndpointName() const
void SetDBProxyName(const char *value)
void SetVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
DBProxyEndpoint & WithVpcId(Aws::String &&value)
DBProxyEndpoint & WithEndpoint(Aws::String &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
void SetEndpoint(const char *value)
DBProxyEndpoint & WithVpcSecurityGroupIds(const Aws::Vector< Aws::String > &value)
DBProxyEndpoint & WithTargetRole(const DBProxyEndpointTargetRole &value)
DBProxyEndpoint & WithVpcSubnetIds(Aws::Vector< Aws::String > &&value)
DBProxyEndpoint & WithDBProxyName(Aws::String &&value)
DBProxyEndpoint & WithEndpoint(const char *value)
void SetDBProxyEndpointArn(const char *value)
DBProxyEndpoint & WithDBProxyName(const char *value)
DBProxyEndpoint & WithVpcSubnetIds(const Aws::Vector< Aws::String > &value)
void SetDBProxyEndpointArn(Aws::String &&value)
DBProxyEndpoint & WithDBProxyEndpointName(const Aws::String &value)
DBProxyEndpoint & WithTargetRole(DBProxyEndpointTargetRole &&value)
void SetVpcId(Aws::String &&value)
AWS_RDS_API DBProxyEndpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStatus(const DBProxyEndpointStatus &value)
void SetVpcSubnetIds(const Aws::Vector< Aws::String > &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
DBProxyEndpoint & WithDBProxyName(const Aws::String &value)
DBProxyEndpoint & WithVpcId(const Aws::String &value)
const Aws::String & GetEndpoint() const
void SetStatus(DBProxyEndpointStatus &&value)
void SetDBProxyEndpointArn(const Aws::String &value)
DBProxyEndpoint & WithIsDefault(bool value)
void SetDBProxyEndpointName(const Aws::String &value)
const DBProxyEndpointTargetRole & GetTargetRole() const
void SetEndpoint(const Aws::String &value)
DBProxyEndpoint & WithStatus(const DBProxyEndpointStatus &value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetVpcId() const
void SetCreatedDate(Aws::Utils::DateTime &&value)
DBProxyEndpoint & AddVpcSubnetIds(Aws::String &&value)
void SetTargetRole(DBProxyEndpointTargetRole &&value)
DBProxyEndpoint & AddVpcSubnetIds(const char *value)
void SetDBProxyName(Aws::String &&value)
DBProxyEndpoint & WithCreatedDate(const Aws::Utils::DateTime &value)
DBProxyEndpoint & AddVpcSubnetIds(const Aws::String &value)
DBProxyEndpoint & WithDBProxyEndpointName(Aws::String &&value)
void SetDBProxyEndpointName(Aws::String &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetVpcId(const Aws::String &value)
DBProxyEndpoint & WithStatus(DBProxyEndpointStatus &&value)
DBProxyEndpoint & AddVpcSecurityGroupIds(const char *value)
DBProxyEndpoint & WithDBProxyEndpointName(const char *value)
DBProxyEndpoint & WithEndpoint(const Aws::String &value)
void SetEndpoint(Aws::String &&value)
const DBProxyEndpointStatus & GetStatus() const
DBProxyEndpoint & WithDBProxyEndpointArn(const char *value)
AWS_RDS_API DBProxyEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetRole(const DBProxyEndpointTargetRole &value)
void SetVpcSubnetIds(Aws::Vector< Aws::String > &&value)
DBProxyEndpoint & WithVpcId(const char *value)
void SetDBProxyName(const Aws::String &value)
DBProxyEndpoint & WithVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
DBProxyEndpoint & AddVpcSecurityGroupIds(const Aws::String &value)
void SetVpcSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetDBProxyEndpointArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream