AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectionPoolConfiguration.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
35 {
36 public:
40
41 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
55 inline int GetMaxConnectionsPercent() const{ return m_maxConnectionsPercent; }
56 inline bool MaxConnectionsPercentHasBeenSet() const { return m_maxConnectionsPercentHasBeenSet; }
57 inline void SetMaxConnectionsPercent(int value) { m_maxConnectionsPercentHasBeenSet = true; m_maxConnectionsPercent = value; }
60
62
80 inline int GetMaxIdleConnectionsPercent() const{ return m_maxIdleConnectionsPercent; }
81 inline bool MaxIdleConnectionsPercentHasBeenSet() const { return m_maxIdleConnectionsPercentHasBeenSet; }
82 inline void SetMaxIdleConnectionsPercent(int value) { m_maxIdleConnectionsPercentHasBeenSet = true; m_maxIdleConnectionsPercent = value; }
85
87
94 inline int GetConnectionBorrowTimeout() const{ return m_connectionBorrowTimeout; }
95 inline bool ConnectionBorrowTimeoutHasBeenSet() const { return m_connectionBorrowTimeoutHasBeenSet; }
96 inline void SetConnectionBorrowTimeout(int value) { m_connectionBorrowTimeoutHasBeenSet = true; m_connectionBorrowTimeout = value; }
99
101
108 inline const Aws::Vector<Aws::String>& GetSessionPinningFilters() const{ return m_sessionPinningFilters; }
109 inline bool SessionPinningFiltersHasBeenSet() const { return m_sessionPinningFiltersHasBeenSet; }
110 inline void SetSessionPinningFilters(const Aws::Vector<Aws::String>& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = value; }
111 inline void SetSessionPinningFilters(Aws::Vector<Aws::String>&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters = std::move(value); }
114 inline ConnectionPoolConfiguration& AddSessionPinningFilters(const Aws::String& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
115 inline ConnectionPoolConfiguration& AddSessionPinningFilters(Aws::String&& value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(std::move(value)); return *this; }
116 inline ConnectionPoolConfiguration& AddSessionPinningFilters(const char* value) { m_sessionPinningFiltersHasBeenSet = true; m_sessionPinningFilters.push_back(value); return *this; }
118
120
128 inline const Aws::String& GetInitQuery() const{ return m_initQuery; }
129 inline bool InitQueryHasBeenSet() const { return m_initQueryHasBeenSet; }
130 inline void SetInitQuery(const Aws::String& value) { m_initQueryHasBeenSet = true; m_initQuery = value; }
131 inline void SetInitQuery(Aws::String&& value) { m_initQueryHasBeenSet = true; m_initQuery = std::move(value); }
132 inline void SetInitQuery(const char* value) { m_initQueryHasBeenSet = true; m_initQuery.assign(value); }
133 inline ConnectionPoolConfiguration& WithInitQuery(const Aws::String& value) { SetInitQuery(value); return *this;}
134 inline ConnectionPoolConfiguration& WithInitQuery(Aws::String&& value) { SetInitQuery(std::move(value)); return *this;}
135 inline ConnectionPoolConfiguration& WithInitQuery(const char* value) { SetInitQuery(value); return *this;}
137 private:
138
139 int m_maxConnectionsPercent;
140 bool m_maxConnectionsPercentHasBeenSet = false;
141
142 int m_maxIdleConnectionsPercent;
143 bool m_maxIdleConnectionsPercentHasBeenSet = false;
144
145 int m_connectionBorrowTimeout;
146 bool m_connectionBorrowTimeoutHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_sessionPinningFilters;
149 bool m_sessionPinningFiltersHasBeenSet = false;
150
151 Aws::String m_initQuery;
152 bool m_initQueryHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace RDS
157} // namespace Aws
ConnectionPoolConfiguration & WithInitQuery(const char *value)
AWS_RDS_API ConnectionPoolConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionPoolConfiguration & AddSessionPinningFilters(Aws::String &&value)
AWS_RDS_API ConnectionPoolConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ConnectionPoolConfiguration & WithConnectionBorrowTimeout(int value)
ConnectionPoolConfiguration & WithMaxConnectionsPercent(int value)
const Aws::Vector< Aws::String > & GetSessionPinningFilters() const
ConnectionPoolConfiguration & AddSessionPinningFilters(const char *value)
ConnectionPoolConfiguration & WithSessionPinningFilters(Aws::Vector< Aws::String > &&value)
ConnectionPoolConfiguration & AddSessionPinningFilters(const Aws::String &value)
ConnectionPoolConfiguration & WithSessionPinningFilters(const Aws::Vector< Aws::String > &value)
ConnectionPoolConfiguration & WithInitQuery(Aws::String &&value)
ConnectionPoolConfiguration & WithMaxIdleConnectionsPercent(int value)
void SetSessionPinningFilters(Aws::Vector< Aws::String > &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSessionPinningFilters(const Aws::Vector< Aws::String > &value)
ConnectionPoolConfiguration & WithInitQuery(const Aws::String &value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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