AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DBProxyEndpointNameT = Aws::String>
60 void SetDBProxyEndpointName(DBProxyEndpointNameT&& value) { m_dBProxyEndpointNameHasBeenSet = true; m_dBProxyEndpointName = std::forward<DBProxyEndpointNameT>(value); }
61 template<typename DBProxyEndpointNameT = Aws::String>
62 DBProxyEndpoint& WithDBProxyEndpointName(DBProxyEndpointNameT&& value) { SetDBProxyEndpointName(std::forward<DBProxyEndpointNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDBProxyEndpointArn() const { return m_dBProxyEndpointArn; }
70 inline bool DBProxyEndpointArnHasBeenSet() const { return m_dBProxyEndpointArnHasBeenSet; }
71 template<typename DBProxyEndpointArnT = Aws::String>
72 void SetDBProxyEndpointArn(DBProxyEndpointArnT&& value) { m_dBProxyEndpointArnHasBeenSet = true; m_dBProxyEndpointArn = std::forward<DBProxyEndpointArnT>(value); }
73 template<typename DBProxyEndpointArnT = Aws::String>
74 DBProxyEndpoint& WithDBProxyEndpointArn(DBProxyEndpointArnT&& value) { SetDBProxyEndpointArn(std::forward<DBProxyEndpointArnT>(value)); return *this;}
76
78
82 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
83 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
84 template<typename DBProxyNameT = Aws::String>
85 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
86 template<typename DBProxyNameT = Aws::String>
87 DBProxyEndpoint& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
89
91
97 inline DBProxyEndpointStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(DBProxyEndpointStatus value) { m_statusHasBeenSet = true; m_status = value; }
100 inline DBProxyEndpoint& WithStatus(DBProxyEndpointStatus value) { SetStatus(value); return *this;}
102
104
107 inline const Aws::String& GetVpcId() const { return m_vpcId; }
108 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
109 template<typename VpcIdT = Aws::String>
110 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
111 template<typename VpcIdT = Aws::String>
112 DBProxyEndpoint& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
114
116
120 inline const Aws::Vector<Aws::String>& GetVpcSecurityGroupIds() const { return m_vpcSecurityGroupIds; }
121 inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; }
122 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
123 void SetVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::forward<VpcSecurityGroupIdsT>(value); }
124 template<typename VpcSecurityGroupIdsT = Aws::Vector<Aws::String>>
125 DBProxyEndpoint& WithVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { SetVpcSecurityGroupIds(std::forward<VpcSecurityGroupIdsT>(value)); return *this;}
126 template<typename VpcSecurityGroupIdsT = Aws::String>
127 DBProxyEndpoint& AddVpcSecurityGroupIds(VpcSecurityGroupIdsT&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.emplace_back(std::forward<VpcSecurityGroupIdsT>(value)); return *this; }
129
131
134 inline const Aws::Vector<Aws::String>& GetVpcSubnetIds() const { return m_vpcSubnetIds; }
135 inline bool VpcSubnetIdsHasBeenSet() const { return m_vpcSubnetIdsHasBeenSet; }
136 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
137 void SetVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds = std::forward<VpcSubnetIdsT>(value); }
138 template<typename VpcSubnetIdsT = Aws::Vector<Aws::String>>
139 DBProxyEndpoint& WithVpcSubnetIds(VpcSubnetIdsT&& value) { SetVpcSubnetIds(std::forward<VpcSubnetIdsT>(value)); return *this;}
140 template<typename VpcSubnetIdsT = Aws::String>
141 DBProxyEndpoint& AddVpcSubnetIds(VpcSubnetIdsT&& value) { m_vpcSubnetIdsHasBeenSet = true; m_vpcSubnetIds.emplace_back(std::forward<VpcSubnetIdsT>(value)); return *this; }
143
145
149 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
150 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
151 template<typename EndpointT = Aws::String>
152 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
153 template<typename EndpointT = Aws::String>
154 DBProxyEndpoint& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
156
158
161 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
162 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
163 template<typename CreatedDateT = Aws::Utils::DateTime>
164 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
165 template<typename CreatedDateT = Aws::Utils::DateTime>
166 DBProxyEndpoint& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
168
170
174 inline DBProxyEndpointTargetRole GetTargetRole() const { return m_targetRole; }
175 inline bool TargetRoleHasBeenSet() const { return m_targetRoleHasBeenSet; }
176 inline void SetTargetRole(DBProxyEndpointTargetRole value) { m_targetRoleHasBeenSet = true; m_targetRole = value; }
179
181
187 inline bool GetIsDefault() const { return m_isDefault; }
188 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
189 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
190 inline DBProxyEndpoint& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
192 private:
193
194 Aws::String m_dBProxyEndpointName;
195 bool m_dBProxyEndpointNameHasBeenSet = false;
196
197 Aws::String m_dBProxyEndpointArn;
198 bool m_dBProxyEndpointArnHasBeenSet = false;
199
200 Aws::String m_dBProxyName;
201 bool m_dBProxyNameHasBeenSet = false;
202
204 bool m_statusHasBeenSet = false;
205
206 Aws::String m_vpcId;
207 bool m_vpcIdHasBeenSet = false;
208
209 Aws::Vector<Aws::String> m_vpcSecurityGroupIds;
210 bool m_vpcSecurityGroupIdsHasBeenSet = false;
211
212 Aws::Vector<Aws::String> m_vpcSubnetIds;
213 bool m_vpcSubnetIdsHasBeenSet = false;
214
215 Aws::String m_endpoint;
216 bool m_endpointHasBeenSet = false;
217
218 Aws::Utils::DateTime m_createdDate{};
219 bool m_createdDateHasBeenSet = false;
220
222 bool m_targetRoleHasBeenSet = false;
223
224 bool m_isDefault{false};
225 bool m_isDefaultHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace RDS
230} // 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 & 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)
void SetEndpoint(EndpointT &&value)
DBProxyEndpoint & WithTargetRole(DBProxyEndpointTargetRole 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