AWS SDK for C++  1.9.104
AWS SDK for C++
ConnectionPoolConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace RDS
23 {
24 namespace Model
25 {
26 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
52  inline int GetMaxConnectionsPercent() const{ return m_maxConnectionsPercent; }
53 
61  inline bool MaxConnectionsPercentHasBeenSet() const { return m_maxConnectionsPercentHasBeenSet; }
62 
70  inline void SetMaxConnectionsPercent(int value) { m_maxConnectionsPercentHasBeenSet = true; m_maxConnectionsPercent = value; }
71 
79  inline ConnectionPoolConfiguration& WithMaxConnectionsPercent(int value) { SetMaxConnectionsPercent(value); return *this;}
80 
81 
92  inline int GetMaxIdleConnectionsPercent() const{ return m_maxIdleConnectionsPercent; }
93 
104  inline bool MaxIdleConnectionsPercentHasBeenSet() const { return m_maxIdleConnectionsPercentHasBeenSet; }
105 
116  inline void SetMaxIdleConnectionsPercent(int value) { m_maxIdleConnectionsPercentHasBeenSet = true; m_maxIdleConnectionsPercent = value; }
117 
128  inline ConnectionPoolConfiguration& WithMaxIdleConnectionsPercent(int value) { SetMaxIdleConnectionsPercent(value); return *this;}
129 
130 
138  inline int GetConnectionBorrowTimeout() const{ return m_connectionBorrowTimeout; }
139 
147  inline bool ConnectionBorrowTimeoutHasBeenSet() const { return m_connectionBorrowTimeoutHasBeenSet; }
148 
156  inline void SetConnectionBorrowTimeout(int value) { m_connectionBorrowTimeoutHasBeenSet = true; m_connectionBorrowTimeout = value; }
157 
165  inline ConnectionPoolConfiguration& WithConnectionBorrowTimeout(int value) { SetConnectionBorrowTimeout(value); return *this;}
166 
167 
175  inline const Aws::Vector<Aws::String>& GetSessionPinningFilters() const{ return m_sessionPinningFilters; }
176 
184  inline bool SessionPinningFiltersHasBeenSet() const { return m_sessionPinningFiltersHasBeenSet; }
185 
193  inline void SetSessionPinningFilters(const Aws::Vector<Aws::String>& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = value; }
194 
202  inline void SetSessionPinningFilters(Aws::Vector<Aws::String>&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = std::move(value); }
203 
211  inline ConnectionPoolConfiguration& WithSessionPinningFilters(const Aws::Vector<Aws::String>& value) { SetSessionPinningFilters(value); return *this;}
212 
220  inline ConnectionPoolConfiguration& WithSessionPinningFilters(Aws::Vector<Aws::String>&& value) { SetSessionPinningFilters(std::move(value)); return *this;}
221 
229  inline ConnectionPoolConfiguration& AddSessionPinningFilters(const Aws::String& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
230 
238  inline ConnectionPoolConfiguration& AddSessionPinningFilters(Aws::String&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(std::move(value)); return *this; }
239 
247  inline ConnectionPoolConfiguration& AddSessionPinningFilters(const char* value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
248 
249 
258  inline const Aws::String& GetInitQuery() const{ return m_initQuery; }
259 
268  inline bool InitQueryHasBeenSet() const { return m_initQueryHasBeenSet; }
269 
278  inline void SetInitQuery(const Aws::String& value) { m_initQueryHasBeenSet = true; m_initQuery = value; }
279 
288  inline void SetInitQuery(Aws::String&& value) { m_initQueryHasBeenSet = true; m_initQuery = std::move(value); }
289 
298  inline void SetInitQuery(const char* value) { m_initQueryHasBeenSet = true; m_initQuery.assign(value); }
299 
308  inline ConnectionPoolConfiguration& WithInitQuery(const Aws::String& value) { SetInitQuery(value); return *this;}
309 
318  inline ConnectionPoolConfiguration& WithInitQuery(Aws::String&& value) { SetInitQuery(std::move(value)); return *this;}
319 
328  inline ConnectionPoolConfiguration& WithInitQuery(const char* value) { SetInitQuery(value); return *this;}
329 
330  private:
331 
332  int m_maxConnectionsPercent;
333  bool m_maxConnectionsPercentHasBeenSet;
334 
335  int m_maxIdleConnectionsPercent;
336  bool m_maxIdleConnectionsPercentHasBeenSet;
337 
338  int m_connectionBorrowTimeout;
339  bool m_connectionBorrowTimeoutHasBeenSet;
340 
341  Aws::Vector<Aws::String> m_sessionPinningFilters;
342  bool m_sessionPinningFiltersHasBeenSet;
343 
344  Aws::String m_initQuery;
345  bool m_initQueryHasBeenSet;
346  };
347 
348 } // namespace Model
349 } // namespace RDS
350 } // namespace Aws
Aws::RDS::Model::ConnectionPoolConfiguration::AddSessionPinningFilters
ConnectionPoolConfiguration & AddSessionPinningFilters(const Aws::String &value)
Definition: ConnectionPoolConfiguration.h:229
Aws::RDS::Model::ConnectionPoolConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::ConnectionPoolConfiguration::ConnectionPoolConfiguration
ConnectionPoolConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ConnectionPoolConfiguration::SetMaxConnectionsPercent
void SetMaxConnectionsPercent(int value)
Definition: ConnectionPoolConfiguration.h:70
Aws::RDS::Model::ConnectionPoolConfiguration::AddSessionPinningFilters
ConnectionPoolConfiguration & AddSessionPinningFilters(Aws::String &&value)
Definition: ConnectionPoolConfiguration.h:238
Aws::RDS::Model::ConnectionPoolConfiguration::SetSessionPinningFilters
void SetSessionPinningFilters(const Aws::Vector< Aws::String > &value)
Definition: ConnectionPoolConfiguration.h:193
Aws::RDS::Model::ConnectionPoolConfiguration::SetInitQuery
void SetInitQuery(const Aws::String &value)
Definition: ConnectionPoolConfiguration.h:278
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ConnectionPoolConfiguration::SetConnectionBorrowTimeout
void SetConnectionBorrowTimeout(int value)
Definition: ConnectionPoolConfiguration.h:156
Aws::RDS::Model::ConnectionPoolConfiguration::WithSessionPinningFilters
ConnectionPoolConfiguration & WithSessionPinningFilters(Aws::Vector< Aws::String > &&value)
Definition: ConnectionPoolConfiguration.h:220
Aws::RDS::Model::ConnectionPoolConfiguration::WithMaxIdleConnectionsPercent
ConnectionPoolConfiguration & WithMaxIdleConnectionsPercent(int value)
Definition: ConnectionPoolConfiguration.h:128
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::ConnectionPoolConfiguration::SetMaxIdleConnectionsPercent
void SetMaxIdleConnectionsPercent(int value)
Definition: ConnectionPoolConfiguration.h:116
Aws::RDS::Model::ConnectionPoolConfiguration::SetInitQuery
void SetInitQuery(Aws::String &&value)
Definition: ConnectionPoolConfiguration.h:288
AWSStreamFwd.h
Aws::RDS::Model::ConnectionPoolConfiguration::GetSessionPinningFilters
const Aws::Vector< Aws::String > & GetSessionPinningFilters() const
Definition: ConnectionPoolConfiguration.h:175
AWSVector.h
Aws::RDS::Model::ConnectionPoolConfiguration
Definition: ConnectionPoolConfiguration.h:35
Aws::RDS::Model::ConnectionPoolConfiguration::GetInitQuery
const Aws::String & GetInitQuery() const
Definition: ConnectionPoolConfiguration.h:258
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::ConnectionPoolConfiguration::WithInitQuery
ConnectionPoolConfiguration & WithInitQuery(const Aws::String &value)
Definition: ConnectionPoolConfiguration.h:308
Aws::RDS::Model::ConnectionPoolConfiguration::GetConnectionBorrowTimeout
int GetConnectionBorrowTimeout() const
Definition: ConnectionPoolConfiguration.h:138
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::ConnectionPoolConfiguration::SessionPinningFiltersHasBeenSet
bool SessionPinningFiltersHasBeenSet() const
Definition: ConnectionPoolConfiguration.h:184
Aws::RDS::Model::ConnectionPoolConfiguration::MaxIdleConnectionsPercentHasBeenSet
bool MaxIdleConnectionsPercentHasBeenSet() const
Definition: ConnectionPoolConfiguration.h:104
Aws::RDS::Model::ConnectionPoolConfiguration::SetInitQuery
void SetInitQuery(const char *value)
Definition: ConnectionPoolConfiguration.h:298
Aws::RDS::Model::ConnectionPoolConfiguration::WithConnectionBorrowTimeout
ConnectionPoolConfiguration & WithConnectionBorrowTimeout(int value)
Definition: ConnectionPoolConfiguration.h:165
Aws::RDS::Model::ConnectionPoolConfiguration::WithSessionPinningFilters
ConnectionPoolConfiguration & WithSessionPinningFilters(const Aws::Vector< Aws::String > &value)
Definition: ConnectionPoolConfiguration.h:211
AWSString.h
Aws::RDS::Model::ConnectionPoolConfiguration::ConnectionPoolConfiguration
ConnectionPoolConfiguration()
Aws::RDS::Model::ConnectionPoolConfiguration::AddSessionPinningFilters
ConnectionPoolConfiguration & AddSessionPinningFilters(const char *value)
Definition: ConnectionPoolConfiguration.h:247
Aws::RDS::Model::ConnectionPoolConfiguration::InitQueryHasBeenSet
bool InitQueryHasBeenSet() const
Definition: ConnectionPoolConfiguration.h:268
Aws::RDS::Model::ConnectionPoolConfiguration::GetMaxIdleConnectionsPercent
int GetMaxIdleConnectionsPercent() const
Definition: ConnectionPoolConfiguration.h:92
Aws::RDS::Model::ConnectionPoolConfiguration::WithInitQuery
ConnectionPoolConfiguration & WithInitQuery(const char *value)
Definition: ConnectionPoolConfiguration.h:328
Aws::RDS::Model::ConnectionPoolConfiguration::MaxConnectionsPercentHasBeenSet
bool MaxConnectionsPercentHasBeenSet() const
Definition: ConnectionPoolConfiguration.h:61
Aws::RDS::Model::ConnectionPoolConfiguration::WithInitQuery
ConnectionPoolConfiguration & WithInitQuery(Aws::String &&value)
Definition: ConnectionPoolConfiguration.h:318
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ConnectionPoolConfiguration::GetMaxConnectionsPercent
int GetMaxConnectionsPercent() const
Definition: ConnectionPoolConfiguration.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ConnectionPoolConfiguration::SetSessionPinningFilters
void SetSessionPinningFilters(Aws::Vector< Aws::String > &&value)
Definition: ConnectionPoolConfiguration.h:202
Aws::RDS::Model::ConnectionPoolConfiguration::WithMaxConnectionsPercent
ConnectionPoolConfiguration & WithMaxConnectionsPercent(int value)
Definition: ConnectionPoolConfiguration.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::ConnectionPoolConfiguration::ConnectionBorrowTimeoutHasBeenSet
bool ConnectionBorrowTimeoutHasBeenSet() const
Definition: ConnectionPoolConfiguration.h:147
Aws::RDS::Model::ConnectionPoolConfiguration::operator=
ConnectionPoolConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ConnectionPoolConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const