AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBProxyTargetGroup.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/ConnectionPoolConfigurationInfo.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS {
22namespace Model {
23
34 public:
35 AWS_RDS_API DBProxyTargetGroup() = default;
36 AWS_RDS_API DBProxyTargetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
47 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
48 template <typename DBProxyNameT = Aws::String>
49 void SetDBProxyName(DBProxyNameT&& value) {
50 m_dBProxyNameHasBeenSet = true;
51 m_dBProxyName = std::forward<DBProxyNameT>(value);
52 }
53 template <typename DBProxyNameT = Aws::String>
54 DBProxyTargetGroup& WithDBProxyName(DBProxyNameT&& value) {
55 SetDBProxyName(std::forward<DBProxyNameT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetTargetGroupName() const { return m_targetGroupName; }
67 inline bool TargetGroupNameHasBeenSet() const { return m_targetGroupNameHasBeenSet; }
68 template <typename TargetGroupNameT = Aws::String>
69 void SetTargetGroupName(TargetGroupNameT&& value) {
70 m_targetGroupNameHasBeenSet = true;
71 m_targetGroupName = std::forward<TargetGroupNameT>(value);
72 }
73 template <typename TargetGroupNameT = Aws::String>
74 DBProxyTargetGroup& WithTargetGroupName(TargetGroupNameT&& value) {
75 SetTargetGroupName(std::forward<TargetGroupNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
85 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
86 template <typename TargetGroupArnT = Aws::String>
87 void SetTargetGroupArn(TargetGroupArnT&& value) {
88 m_targetGroupArnHasBeenSet = true;
89 m_targetGroupArn = std::forward<TargetGroupArnT>(value);
90 }
91 template <typename TargetGroupArnT = Aws::String>
92 DBProxyTargetGroup& WithTargetGroupArn(TargetGroupArnT&& value) {
93 SetTargetGroupArn(std::forward<TargetGroupArnT>(value));
94 return *this;
95 }
97
99
105 inline bool GetIsDefault() const { return m_isDefault; }
106 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
107 inline void SetIsDefault(bool value) {
108 m_isDefaultHasBeenSet = true;
109 m_isDefault = value;
110 }
111 inline DBProxyTargetGroup& WithIsDefault(bool value) {
112 SetIsDefault(value);
113 return *this;
114 }
116
118
124 inline const Aws::String& GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 template <typename StatusT = Aws::String>
127 void SetStatus(StatusT&& value) {
128 m_statusHasBeenSet = true;
129 m_status = std::forward<StatusT>(value);
130 }
131 template <typename StatusT = Aws::String>
132 DBProxyTargetGroup& WithStatus(StatusT&& value) {
133 SetStatus(std::forward<StatusT>(value));
134 return *this;
135 }
137
139
143 inline const ConnectionPoolConfigurationInfo& GetConnectionPoolConfig() const { return m_connectionPoolConfig; }
144 inline bool ConnectionPoolConfigHasBeenSet() const { return m_connectionPoolConfigHasBeenSet; }
145 template <typename ConnectionPoolConfigT = ConnectionPoolConfigurationInfo>
146 void SetConnectionPoolConfig(ConnectionPoolConfigT&& value) {
147 m_connectionPoolConfigHasBeenSet = true;
148 m_connectionPoolConfig = std::forward<ConnectionPoolConfigT>(value);
149 }
150 template <typename ConnectionPoolConfigT = ConnectionPoolConfigurationInfo>
151 DBProxyTargetGroup& WithConnectionPoolConfig(ConnectionPoolConfigT&& value) {
152 SetConnectionPoolConfig(std::forward<ConnectionPoolConfigT>(value));
153 return *this;
154 }
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) {
165 m_createdDateHasBeenSet = true;
166 m_createdDate = std::forward<CreatedDateT>(value);
167 }
168 template <typename CreatedDateT = Aws::Utils::DateTime>
169 DBProxyTargetGroup& WithCreatedDate(CreatedDateT&& value) {
170 SetCreatedDate(std::forward<CreatedDateT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetUpdatedDate() const { return m_updatedDate; }
180 inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
181 template <typename UpdatedDateT = Aws::Utils::DateTime>
182 void SetUpdatedDate(UpdatedDateT&& value) {
183 m_updatedDateHasBeenSet = true;
184 m_updatedDate = std::forward<UpdatedDateT>(value);
185 }
186 template <typename UpdatedDateT = Aws::Utils::DateTime>
187 DBProxyTargetGroup& WithUpdatedDate(UpdatedDateT&& value) {
188 SetUpdatedDate(std::forward<UpdatedDateT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_dBProxyName;
194
195 Aws::String m_targetGroupName;
196
197 Aws::String m_targetGroupArn;
198
199 bool m_isDefault{false};
200
201 Aws::String m_status;
202
203 ConnectionPoolConfigurationInfo m_connectionPoolConfig;
204
205 Aws::Utils::DateTime m_createdDate{};
206
207 Aws::Utils::DateTime m_updatedDate{};
208 bool m_dBProxyNameHasBeenSet = false;
209 bool m_targetGroupNameHasBeenSet = false;
210 bool m_targetGroupArnHasBeenSet = false;
211 bool m_isDefaultHasBeenSet = false;
212 bool m_statusHasBeenSet = false;
213 bool m_connectionPoolConfigHasBeenSet = false;
214 bool m_createdDateHasBeenSet = false;
215 bool m_updatedDateHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace RDS
220} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DBProxyTargetGroup & WithIsDefault(bool value)
const Aws::Utils::DateTime & GetCreatedDate() const
AWS_RDS_API DBProxyTargetGroup & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTargetGroupArn() const
const Aws::String & GetStatus() const
DBProxyTargetGroup & WithStatus(StatusT &&value)
DBProxyTargetGroup & WithConnectionPoolConfig(ConnectionPoolConfigT &&value)
void SetConnectionPoolConfig(ConnectionPoolConfigT &&value)
void SetDBProxyName(DBProxyNameT &&value)
const ConnectionPoolConfigurationInfo & GetConnectionPoolConfig() const
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API DBProxyTargetGroup(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTargetGroupArn(TargetGroupArnT &&value)
void SetTargetGroupName(TargetGroupNameT &&value)
DBProxyTargetGroup & WithUpdatedDate(UpdatedDateT &&value)
const Aws::Utils::DateTime & GetUpdatedDate() const
void SetUpdatedDate(UpdatedDateT &&value)
AWS_RDS_API DBProxyTargetGroup()=default
DBProxyTargetGroup & WithDBProxyName(DBProxyNameT &&value)
DBProxyTargetGroup & WithTargetGroupName(TargetGroupNameT &&value)
DBProxyTargetGroup & WithTargetGroupArn(TargetGroupArnT &&value)
void SetCreatedDate(CreatedDateT &&value)
DBProxyTargetGroup & WithCreatedDate(CreatedDateT &&value)
const Aws::String & GetTargetGroupName() const
const Aws::String & GetDBProxyName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream