AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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 <aws/rds/model/EndpointNetworkType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace RDS
27{
28namespace Model
29{
30
42 {
43 public:
44 AWS_RDS_API DBProxyEndpoint() = default;
45 AWS_RDS_API DBProxyEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
50
51
53
58 inline const Aws::String& GetDBProxyEndpointName() const { return m_dBProxyEndpointName; }
59 inline bool DBProxyEndpointNameHasBeenSet() const { return m_dBProxyEndpointNameHasBeenSet; }
60 template<typename DBProxyEndpointNameT = Aws::String>
61 void SetDBProxyEndpointName(DBProxyEndpointNameT&& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = std::forward<DBProxyEndpointNameT>(value); }
62 template<typename DBProxyEndpointNameT = Aws::String>
63 DBProxyEndpoint& WithDBProxyEndpointName(DBProxyEndpointNameT&& value) { SetDBProxyEndpointName(std::forward<DBProxyEndpointNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDBProxyEndpointArn() const { return m_dBProxyEndpointArn; }
71 inline bool DBProxyEndpointArnHasBeenSet() const { return m_dBProxyEndpointArnHasBeenSet; }
72 template<typename DBProxyEndpointArnT = Aws::String>
73 void SetDBProxyEndpointArn(DBProxyEndpointArnT&& value) { m_dBProxyEndpointArnHasBeenSet = true; m_dBProxyEndpointArn = std::forward<DBProxyEndpointArnT>(value); }
74 template<typename DBProxyEndpointArnT = Aws::String>
75 DBProxyEndpoint& WithDBProxyEndpointArn(DBProxyEndpointArnT&& value) { SetDBProxyEndpointArn(std::forward<DBProxyEndpointArnT>(value)); return *this;}
77
79
83 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
84 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
85 template<typename DBProxyNameT = Aws::String>
86 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
87 template<typename DBProxyNameT = Aws::String>
88 DBProxyEndpoint& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
90
92
98 inline DBProxyEndpointStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(DBProxyEndpointStatus value) { m_statusHasBeenSet = true; m_status = value; }
101 inline DBProxyEndpoint& WithStatus(DBProxyEndpointStatus value) { SetStatus(value); return *this;}
103
105
108 inline const Aws::String& GetVpcId() const { return m_vpcId; }
109 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
110 template<typename VpcIdT = Aws::String>
111 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
112 template<typename VpcIdT = Aws::String>
113 DBProxyEndpoint& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
115
117
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 DBProxyEndpoint& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
127 template<typename VpcSecurityGroupIdsT = Aws::String>
128 DBProxyEndpoint& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
130
132
135 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
136 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
137 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
138 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
139 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
140 DBProxyEndpoint& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
141 template<typename VpcSubnetIdsT = Aws::String>
142 DBProxyEndpoint& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
144
146
150 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
151 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
152 template<typename EndpointT = Aws::String>
153 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
154 template<typename EndpointT = Aws::String>
155 DBProxyEndpoint& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
157
159
162 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
163 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
164 template<typename CreatedDateT = Aws::Utils::DateTime>
165 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
166 template<typename CreatedDateT = Aws::Utils::DateTime>
167 DBProxyEndpoint& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
169
171
175 inline DBProxyEndpointTargetRole GetTargetRole() const { return m_targetRole; }
176 inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; }
177 inline void SetTargetRole(DBProxyEndpointTargetRole value) { m_targetRoleHasBeenSet = true; m_targetRole = value; }
180
182
188 inline bool GetIsDefault() const { return m_isDefault; }
189 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
190 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
191 inline DBProxyEndpoint& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
193
195
203 inline EndpointNetworkType GetEndpointNetworkType() const { return m_endpointNetworkType; }
204 inline bool EndpointNetworkTypeHasBeenSet() const { return m_endpointNetworkTypeHasBeenSet; }
205 inline void SetEndpointNetworkType(EndpointNetworkType value) { m_endpointNetworkTypeHasBeenSet = true; m_endpointNetworkType = value; }
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
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
238 bool m_targetRoleHasBeenSet = false;
239
240 bool m_isDefault{false};
241 bool m_isDefaultHasBeenSet = false;
242
244 bool m_endpointNetworkTypeHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace RDS
249} // namespace Aws
const Aws::String & GetDBProxyName() const
const Aws::Vector< Aws::String > & GetVpcSubnetIds() const
DBProxyEndpoint & WithDBProxyName(DBProxyNameT &&value)
DBProxyEndpoint & WithCreatedDate(CreatedDateT &&value)
DBProxyEndpoint & AddVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
void SetCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
const Aws::String & GetDBProxyEndpointName() const
void SetTargetRole(DBProxyEndpointTargetRole value)
DBProxyEndpointStatus GetStatus() const
DBProxyEndpoint & AddVpcSubnetIds(VpcSubnetIdsT &&value)
const Aws::Vector< Aws::String > & GetVpcSecurityGroupIds() const
DBProxyEndpoint & WithDBProxyEndpointArn(DBProxyEndpointArnT &&value)
AWS_RDS_API DBProxyEndpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
DBProxyEndpoint & WithStatus(DBProxyEndpointStatus value)
DBProxyEndpointTargetRole GetTargetRole() const
const Aws::String & GetEndpoint() const
DBProxyEndpoint & WithVpcId(VpcIdT &&value)
void SetDBProxyEndpointArn(DBProxyEndpointArnT &&value)
void SetDBProxyName(DBProxyNameT &&value)
DBProxyEndpoint & WithEndpointNetworkType(EndpointNetworkType value)
DBProxyEndpoint & WithIsDefault(bool value)
DBProxyEndpoint & WithVpcSubnetIds(VpcSubnetIdsT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetVpcId() const
DBProxyEndpoint & WithEndpoint(EndpointT &&value)
void SetVpcSubnetIds(VpcSubnetIdsT &&value)
EndpointNetworkType GetEndpointNetworkType() const
void SetEndpoint(EndpointT &&value)
DBProxyEndpoint & WithTargetRole(DBProxyEndpointTargetRole value)
void SetEndpointNetworkType(EndpointNetworkType value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(DBProxyEndpointStatus value)
void SetDBProxyEndpointName(DBProxyEndpointNameT &&value)
DBProxyEndpoint & WithVpcSecurityGroupIds(VpcSecurityGroupIdsT &&value)
AWS_RDS_API DBProxyEndpoint()=default
DBProxyEndpoint & WithDBProxyEndpointName(DBProxyEndpointNameT &&value)
AWS_RDS_API DBProxyEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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