AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectionPoolConfigurationInfo.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace RDS
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
51 inline int GetMaxConnectionsPercent() const{ return m_maxConnectionsPercent; }
52 inline bool MaxConnectionsPercentHasBeenSet() const { return m_maxConnectionsPercentHasBeenSet; }
53 inline void SetMaxConnectionsPercent(int value) { m_maxConnectionsPercentHasBeenSet = true; m_maxConnectionsPercent = value; }
56
58
66 inline int GetMaxIdleConnectionsPercent() const{ return m_maxIdleConnectionsPercent; }
67 inline bool MaxIdleConnectionsPercentHasBeenSet() const { return m_maxIdleConnectionsPercentHasBeenSet; }
68 inline void SetMaxIdleConnectionsPercent(int value) { m_maxIdleConnectionsPercentHasBeenSet = true; m_maxIdleConnectionsPercent = value; }
71
73
79 inline int GetConnectionBorrowTimeout() const{ return m_connectionBorrowTimeout; }
80 inline bool ConnectionBorrowTimeoutHasBeenSet() const { return m_connectionBorrowTimeoutHasBeenSet; }
81 inline void SetConnectionBorrowTimeout(int value) { m_connectionBorrowTimeoutHasBeenSet = true; m_connectionBorrowTimeout = value; }
84
86
94 inline const Aws::Vector<Aws::String>& GetSessionPinningFilters() const{ return m_sessionPinningFilters; }
95 inline bool SessionPinningFiltersHasBeenSet() const { return m_sessionPinningFiltersHasBeenSet; }
96 inline void SetSessionPinningFilters(const Aws::Vector<Aws::String>& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = value; }
97 inline void SetSessionPinningFilters(Aws::Vector<Aws::String>&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = std::move(value); }
100 inline ConnectionPoolConfigurationInfo& AddSessionPinningFilters(const Aws::String& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
101 inline ConnectionPoolConfigurationInfo& AddSessionPinningFilters(Aws::String&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(std::move(value)); return *this; }
102 inline ConnectionPoolConfigurationInfo& AddSessionPinningFilters(const char* value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
104
106
114 inline const Aws::String& GetInitQuery() const{ return m_initQuery; }
115 inline bool InitQueryHasBeenSet() const { return m_initQueryHasBeenSet; }
116 inline void SetInitQuery(const Aws::String& value) { m_initQueryHasBeenSet = true; m_initQuery = value; }
117 inline void SetInitQuery(Aws::String&& value) { m_initQueryHasBeenSet = true; m_initQuery = std::move(value); }
118 inline void SetInitQuery(const char* value) { m_initQueryHasBeenSet = true; m_initQuery.assign(value); }
119 inline ConnectionPoolConfigurationInfo& WithInitQuery(const Aws::String& value) { SetInitQuery(value); return *this;}
120 inline ConnectionPoolConfigurationInfo& WithInitQuery(Aws::String&& value) { SetInitQuery(std::move(value)); return *this;}
121 inline ConnectionPoolConfigurationInfo& WithInitQuery(const char* value) { SetInitQuery(value); return *this;}
123 private:
124
125 int m_maxConnectionsPercent;
126 bool m_maxConnectionsPercentHasBeenSet = false;
127
128 int m_maxIdleConnectionsPercent;
129 bool m_maxIdleConnectionsPercentHasBeenSet = false;
130
131 int m_connectionBorrowTimeout;
132 bool m_connectionBorrowTimeoutHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_sessionPinningFilters;
135 bool m_sessionPinningFiltersHasBeenSet = false;
136
137 Aws::String m_initQuery;
138 bool m_initQueryHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace RDS
143} // namespace Aws
void SetSessionPinningFilters(Aws::Vector< Aws::String > &&value)
ConnectionPoolConfigurationInfo & WithInitQuery(Aws::String &&value)
AWS_RDS_API ConnectionPoolConfigurationInfo(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionPoolConfigurationInfo & AddSessionPinningFilters(const Aws::String &value)
void SetSessionPinningFilters(const Aws::Vector< Aws::String > &value)
ConnectionPoolConfigurationInfo & WithSessionPinningFilters(Aws::Vector< Aws::String > &&value)
ConnectionPoolConfigurationInfo & WithInitQuery(const Aws::String &value)
ConnectionPoolConfigurationInfo & WithMaxConnectionsPercent(int value)
ConnectionPoolConfigurationInfo & WithSessionPinningFilters(const Aws::Vector< Aws::String > &value)
ConnectionPoolConfigurationInfo & WithMaxIdleConnectionsPercent(int value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Aws::String > & GetSessionPinningFilters() const
AWS_RDS_API ConnectionPoolConfigurationInfo & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionPoolConfigurationInfo & AddSessionPinningFilters(const char *value)
ConnectionPoolConfigurationInfo & AddSessionPinningFilters(Aws::String &&value)
ConnectionPoolConfigurationInfo & WithInitQuery(const char *value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ConnectionPoolConfigurationInfo & WithConnectionBorrowTimeout(int value)
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