AWS SDK for C++  1.9.108
AWS SDK for C++
ConnectionPoolConfigurationInfo.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 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
50  inline int GetMaxConnectionsPercent() const{ return m_maxConnectionsPercent; }
51 
58  inline bool MaxConnectionsPercentHasBeenSet() const { return m_maxConnectionsPercentHasBeenSet; }
59 
66  inline void SetMaxConnectionsPercent(int value) { m_maxConnectionsPercentHasBeenSet = true; m_maxConnectionsPercent = value; }
67 
74  inline ConnectionPoolConfigurationInfo& WithMaxConnectionsPercent(int value) { SetMaxConnectionsPercent(value); return *this;}
75 
76 
86  inline int GetMaxIdleConnectionsPercent() const{ return m_maxIdleConnectionsPercent; }
87 
97  inline bool MaxIdleConnectionsPercentHasBeenSet() const { return m_maxIdleConnectionsPercentHasBeenSet; }
98 
108  inline void SetMaxIdleConnectionsPercent(int value) { m_maxIdleConnectionsPercentHasBeenSet = true; m_maxIdleConnectionsPercent = value; }
109 
119  inline ConnectionPoolConfigurationInfo& WithMaxIdleConnectionsPercent(int value) { SetMaxIdleConnectionsPercent(value); return *this;}
120 
121 
128  inline int GetConnectionBorrowTimeout() const{ return m_connectionBorrowTimeout; }
129 
136  inline bool ConnectionBorrowTimeoutHasBeenSet() const { return m_connectionBorrowTimeoutHasBeenSet; }
137 
144  inline void SetConnectionBorrowTimeout(int value) { m_connectionBorrowTimeoutHasBeenSet = true; m_connectionBorrowTimeout = value; }
145 
152  inline ConnectionPoolConfigurationInfo& WithConnectionBorrowTimeout(int value) { SetConnectionBorrowTimeout(value); return *this;}
153 
154 
162  inline const Aws::Vector<Aws::String>& GetSessionPinningFilters() const{ return m_sessionPinningFilters; }
163 
171  inline bool SessionPinningFiltersHasBeenSet() const { return m_sessionPinningFiltersHasBeenSet; }
172 
180  inline void SetSessionPinningFilters(const Aws::Vector<Aws::String>& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = value; }
181 
189  inline void SetSessionPinningFilters(Aws::Vector<Aws::String>&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = std::move(value); }
190 
198  inline ConnectionPoolConfigurationInfo& WithSessionPinningFilters(const Aws::Vector<Aws::String>& value) { SetSessionPinningFilters(value); return *this;}
199 
207  inline ConnectionPoolConfigurationInfo& WithSessionPinningFilters(Aws::Vector<Aws::String>&& value) { SetSessionPinningFilters(std::move(value)); return *this;}
208 
216  inline ConnectionPoolConfigurationInfo& AddSessionPinningFilters(const Aws::String& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
217 
225  inline ConnectionPoolConfigurationInfo& AddSessionPinningFilters(Aws::String&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(std::move(value)); return *this; }
226 
234  inline ConnectionPoolConfigurationInfo& AddSessionPinningFilters(const char* value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
235 
236 
245  inline const Aws::String& GetInitQuery() const{ return m_initQuery; }
246 
255  inline bool InitQueryHasBeenSet() const { return m_initQueryHasBeenSet; }
256 
265  inline void SetInitQuery(const Aws::String& value) { m_initQueryHasBeenSet = true; m_initQuery = value; }
266 
275  inline void SetInitQuery(Aws::String&& value) { m_initQueryHasBeenSet = true; m_initQuery = std::move(value); }
276 
285  inline void SetInitQuery(const char* value) { m_initQueryHasBeenSet = true; m_initQuery.assign(value); }
286 
295  inline ConnectionPoolConfigurationInfo& WithInitQuery(const Aws::String& value) { SetInitQuery(value); return *this;}
296 
305  inline ConnectionPoolConfigurationInfo& WithInitQuery(Aws::String&& value) { SetInitQuery(std::move(value)); return *this;}
306 
315  inline ConnectionPoolConfigurationInfo& WithInitQuery(const char* value) { SetInitQuery(value); return *this;}
316 
317  private:
318 
319  int m_maxConnectionsPercent;
320  bool m_maxConnectionsPercentHasBeenSet;
321 
322  int m_maxIdleConnectionsPercent;
323  bool m_maxIdleConnectionsPercentHasBeenSet;
324 
325  int m_connectionBorrowTimeout;
326  bool m_connectionBorrowTimeoutHasBeenSet;
327 
328  Aws::Vector<Aws::String> m_sessionPinningFilters;
329  bool m_sessionPinningFiltersHasBeenSet;
330 
331  Aws::String m_initQuery;
332  bool m_initQueryHasBeenSet;
333  };
334 
335 } // namespace Model
336 } // namespace RDS
337 } // namespace Aws
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetMaxIdleConnectionsPercent
void SetMaxIdleConnectionsPercent(int value)
Definition: ConnectionPoolConfigurationInfo.h:108
Aws::RDS::Model::ConnectionPoolConfigurationInfo::ConnectionBorrowTimeoutHasBeenSet
bool ConnectionBorrowTimeoutHasBeenSet() const
Definition: ConnectionPoolConfigurationInfo.h:136
Aws::RDS::Model::ConnectionPoolConfigurationInfo::GetConnectionBorrowTimeout
int GetConnectionBorrowTimeout() const
Definition: ConnectionPoolConfigurationInfo.h:128
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithMaxIdleConnectionsPercent
ConnectionPoolConfigurationInfo & WithMaxIdleConnectionsPercent(int value)
Definition: ConnectionPoolConfigurationInfo.h:119
Aws::RDS::Model::ConnectionPoolConfigurationInfo::InitQueryHasBeenSet
bool InitQueryHasBeenSet() const
Definition: ConnectionPoolConfigurationInfo.h:255
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetMaxConnectionsPercent
void SetMaxConnectionsPercent(int value)
Definition: ConnectionPoolConfigurationInfo.h:66
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithInitQuery
ConnectionPoolConfigurationInfo & WithInitQuery(const Aws::String &value)
Definition: ConnectionPoolConfigurationInfo.h:295
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetSessionPinningFilters
void SetSessionPinningFilters(Aws::Vector< Aws::String > &&value)
Definition: ConnectionPoolConfigurationInfo.h:189
AWSStreamFwd.h
AWSVector.h
Aws::RDS::Model::ConnectionPoolConfigurationInfo::AddSessionPinningFilters
ConnectionPoolConfigurationInfo & AddSessionPinningFilters(Aws::String &&value)
Definition: ConnectionPoolConfigurationInfo.h:225
Aws::RDS::Model::ConnectionPoolConfigurationInfo::AddSessionPinningFilters
ConnectionPoolConfigurationInfo & AddSessionPinningFilters(const char *value)
Definition: ConnectionPoolConfigurationInfo.h:234
Aws::RDS::Model::ConnectionPoolConfigurationInfo::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::ConnectionPoolConfigurationInfo::GetMaxIdleConnectionsPercent
int GetMaxIdleConnectionsPercent() const
Definition: ConnectionPoolConfigurationInfo.h:86
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
RDS_EXPORTS.h
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SessionPinningFiltersHasBeenSet
bool SessionPinningFiltersHasBeenSet() const
Definition: ConnectionPoolConfigurationInfo.h:171
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::ConnectionPoolConfigurationInfo::ConnectionPoolConfigurationInfo
ConnectionPoolConfigurationInfo()
Aws::RDS::Model::ConnectionPoolConfigurationInfo::ConnectionPoolConfigurationInfo
ConnectionPoolConfigurationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithSessionPinningFilters
ConnectionPoolConfigurationInfo & WithSessionPinningFilters(Aws::Vector< Aws::String > &&value)
Definition: ConnectionPoolConfigurationInfo.h:207
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithInitQuery
ConnectionPoolConfigurationInfo & WithInitQuery(Aws::String &&value)
Definition: ConnectionPoolConfigurationInfo.h:305
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithConnectionBorrowTimeout
ConnectionPoolConfigurationInfo & WithConnectionBorrowTimeout(int value)
Definition: ConnectionPoolConfigurationInfo.h:152
Aws::RDS::Model::ConnectionPoolConfigurationInfo::GetMaxConnectionsPercent
int GetMaxConnectionsPercent() const
Definition: ConnectionPoolConfigurationInfo.h:50
AWSString.h
Aws::RDS::Model::ConnectionPoolConfigurationInfo::operator=
ConnectionPoolConfigurationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetInitQuery
void SetInitQuery(const char *value)
Definition: ConnectionPoolConfigurationInfo.h:285
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithMaxConnectionsPercent
ConnectionPoolConfigurationInfo & WithMaxConnectionsPercent(int value)
Definition: ConnectionPoolConfigurationInfo.h:74
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithSessionPinningFilters
ConnectionPoolConfigurationInfo & WithSessionPinningFilters(const Aws::Vector< Aws::String > &value)
Definition: ConnectionPoolConfigurationInfo.h:198
Aws::RDS::Model::ConnectionPoolConfigurationInfo::GetSessionPinningFilters
const Aws::Vector< Aws::String > & GetSessionPinningFilters() const
Definition: ConnectionPoolConfigurationInfo.h:162
Aws::RDS::Model::ConnectionPoolConfigurationInfo::MaxConnectionsPercentHasBeenSet
bool MaxConnectionsPercentHasBeenSet() const
Definition: ConnectionPoolConfigurationInfo.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::ConnectionPoolConfigurationInfo::MaxIdleConnectionsPercentHasBeenSet
bool MaxIdleConnectionsPercentHasBeenSet() const
Definition: ConnectionPoolConfigurationInfo.h:97
Aws::RDS::Model::ConnectionPoolConfigurationInfo
Definition: ConnectionPoolConfigurationInfo.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::ConnectionPoolConfigurationInfo::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetInitQuery
void SetInitQuery(Aws::String &&value)
Definition: ConnectionPoolConfigurationInfo.h:275
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetConnectionBorrowTimeout
void SetConnectionBorrowTimeout(int value)
Definition: ConnectionPoolConfigurationInfo.h:144
Aws::RDS::Model::ConnectionPoolConfigurationInfo::WithInitQuery
ConnectionPoolConfigurationInfo & WithInitQuery(const char *value)
Definition: ConnectionPoolConfigurationInfo.h:315
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetSessionPinningFilters
void SetSessionPinningFilters(const Aws::Vector< Aws::String > &value)
Definition: ConnectionPoolConfigurationInfo.h:180
Aws::RDS::Model::ConnectionPoolConfigurationInfo::AddSessionPinningFilters
ConnectionPoolConfigurationInfo & AddSessionPinningFilters(const Aws::String &value)
Definition: ConnectionPoolConfigurationInfo.h:216
Aws::RDS::Model::ConnectionPoolConfigurationInfo::SetInitQuery
void SetInitQuery(const Aws::String &value)
Definition: ConnectionPoolConfigurationInfo.h:265
Aws::RDS::Model::ConnectionPoolConfigurationInfo::GetInitQuery
const Aws::String & GetInitQuery() const
Definition: ConnectionPoolConfigurationInfo.h:245