AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DBProxyTargetGroup.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/ConnectionPoolConfigurationInfo.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_RDS_API DBProxyTargetGroup() = default;
41 AWS_RDS_API DBProxyTargetGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetDBProxyName() const { return m_dBProxyName; }
53 inline bool DBProxyNameHasBeenSet() const { return m_dBProxyNameHasBeenSet; }
54 template<typename DBProxyNameT = Aws::String>
55 void SetDBProxyName(DBProxyNameT&& value) { m_dBProxyNameHasBeenSet = true; m_dBProxyName = std::forward<DBProxyNameT>(value); }
56 template<typename DBProxyNameT = Aws::String>
57 DBProxyTargetGroup& WithDBProxyName(DBProxyNameT&& value) { SetDBProxyName(std::forward<DBProxyNameT>(value)); return *this;}
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) { m_targetGroupNameHasBeenSet = true; m_targetGroupName = std::forward<TargetGroupNameT>(value); }
70 template<typename TargetGroupNameT = Aws::String>
71 DBProxyTargetGroup& WithTargetGroupName(TargetGroupNameT&& value) { SetTargetGroupName(std::forward<TargetGroupNameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
79 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
80 template<typename TargetGroupArnT = Aws::String>
81 void SetTargetGroupArn(TargetGroupArnT&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::forward<TargetGroupArnT>(value); }
82 template<typename TargetGroupArnT = Aws::String>
83 DBProxyTargetGroup& WithTargetGroupArn(TargetGroupArnT&& value) { SetTargetGroupArn(std::forward<TargetGroupArnT>(value)); return *this;}
85
87
93 inline bool GetIsDefault() const { return m_isDefault; }
94 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
95 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
96 inline DBProxyTargetGroup& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
98
100
106 inline const Aws::String& GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 template<typename StatusT = Aws::String>
109 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
110 template<typename StatusT = Aws::String>
111 DBProxyTargetGroup& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
113
115
119 inline const ConnectionPoolConfigurationInfo& GetConnectionPoolConfig() const { return m_connectionPoolConfig; }
120 inline bool ConnectionPoolConfigHasBeenSet() const { return m_connectionPoolConfigHasBeenSet; }
121 template<typename ConnectionPoolConfigT = ConnectionPoolConfigurationInfo>
122 void SetConnectionPoolConfig(ConnectionPoolConfigT&& value) { m_connectionPoolConfigHasBeenSet = true; m_connectionPoolConfig = std::forward<ConnectionPoolConfigT>(value); }
123 template<typename ConnectionPoolConfigT = ConnectionPoolConfigurationInfo>
124 DBProxyTargetGroup& WithConnectionPoolConfig(ConnectionPoolConfigT&& value) { SetConnectionPoolConfig(std::forward<ConnectionPoolConfigT>(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
132 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
133 template<typename CreatedDateT = Aws::Utils::DateTime>
134 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
135 template<typename CreatedDateT = Aws::Utils::DateTime>
136 DBProxyTargetGroup& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetUpdatedDate() const { return m_updatedDate; }
144 inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
145 template<typename UpdatedDateT = Aws::Utils::DateTime>
146 void SetUpdatedDate(UpdatedDateT&& value) { m_updatedDateHasBeenSet = true; m_updatedDate = std::forward<UpdatedDateT>(value); }
147 template<typename UpdatedDateT = Aws::Utils::DateTime>
148 DBProxyTargetGroup& WithUpdatedDate(UpdatedDateT&& value) { SetUpdatedDate(std::forward<UpdatedDateT>(value)); return *this;}
150 private:
151
152 Aws::String m_dBProxyName;
153 bool m_dBProxyNameHasBeenSet = false;
154
155 Aws::String m_targetGroupName;
156 bool m_targetGroupNameHasBeenSet = false;
157
158 Aws::String m_targetGroupArn;
159 bool m_targetGroupArnHasBeenSet = false;
160
161 bool m_isDefault{false};
162 bool m_isDefaultHasBeenSet = false;
163
164 Aws::String m_status;
165 bool m_statusHasBeenSet = false;
166
167 ConnectionPoolConfigurationInfo m_connectionPoolConfig;
168 bool m_connectionPoolConfigHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createdDate{};
171 bool m_createdDateHasBeenSet = false;
172
173 Aws::Utils::DateTime m_updatedDate{};
174 bool m_updatedDateHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace RDS
179} // 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