AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VirtualNodeConnectionPool.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/VirtualNodeGrpcConnectionPool.h>
9#include <aws/appmesh/model/VirtualNodeHttp2ConnectionPool.h>
10#include <aws/appmesh/model/VirtualNodeHttpConnectionPool.h>
11#include <aws/appmesh/model/VirtualNodeTcpConnectionPool.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh {
23namespace Model {
24
35 public:
36 AWS_APPMESH_API VirtualNodeConnectionPool() = default;
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const VirtualNodeGrpcConnectionPool& GetGrpc() const { return m_grpc; }
46 inline bool GrpcHasBeenSet() const { return m_grpcHasBeenSet; }
47 template <typename GrpcT = VirtualNodeGrpcConnectionPool>
48 void SetGrpc(GrpcT&& value) {
49 m_grpcHasBeenSet = true;
50 m_grpc = std::forward<GrpcT>(value);
51 }
52 template <typename GrpcT = VirtualNodeGrpcConnectionPool>
54 SetGrpc(std::forward<GrpcT>(value));
55 return *this;
56 }
58
60
63 inline const VirtualNodeHttpConnectionPool& GetHttp() const { return m_http; }
64 inline bool HttpHasBeenSet() const { return m_httpHasBeenSet; }
65 template <typename HttpT = VirtualNodeHttpConnectionPool>
66 void SetHttp(HttpT&& value) {
67 m_httpHasBeenSet = true;
68 m_http = std::forward<HttpT>(value);
69 }
70 template <typename HttpT = VirtualNodeHttpConnectionPool>
72 SetHttp(std::forward<HttpT>(value));
73 return *this;
74 }
76
78
81 inline const VirtualNodeHttp2ConnectionPool& GetHttp2() const { return m_http2; }
82 inline bool Http2HasBeenSet() const { return m_http2HasBeenSet; }
83 template <typename Http2T = VirtualNodeHttp2ConnectionPool>
84 void SetHttp2(Http2T&& value) {
85 m_http2HasBeenSet = true;
86 m_http2 = std::forward<Http2T>(value);
87 }
88 template <typename Http2T = VirtualNodeHttp2ConnectionPool>
90 SetHttp2(std::forward<Http2T>(value));
91 return *this;
92 }
94
96
99 inline const VirtualNodeTcpConnectionPool& GetTcp() const { return m_tcp; }
100 inline bool TcpHasBeenSet() const { return m_tcpHasBeenSet; }
101 template <typename TcpT = VirtualNodeTcpConnectionPool>
102 void SetTcp(TcpT&& value) {
103 m_tcpHasBeenSet = true;
104 m_tcp = std::forward<TcpT>(value);
105 }
106 template <typename TcpT = VirtualNodeTcpConnectionPool>
108 SetTcp(std::forward<TcpT>(value));
109 return *this;
110 }
112 private:
114
116
118
120 bool m_grpcHasBeenSet = false;
121 bool m_httpHasBeenSet = false;
122 bool m_http2HasBeenSet = false;
123 bool m_tcpHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace AppMesh
128} // namespace Aws
const VirtualNodeHttpConnectionPool & GetHttp() const
VirtualNodeConnectionPool & WithHttp(HttpT &&value)
VirtualNodeConnectionPool & WithTcp(TcpT &&value)
const VirtualNodeGrpcConnectionPool & GetGrpc() const
AWS_APPMESH_API VirtualNodeConnectionPool & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualNodeConnectionPool & WithGrpc(GrpcT &&value)
const VirtualNodeTcpConnectionPool & GetTcp() const
VirtualNodeConnectionPool & WithHttp2(Http2T &&value)
const VirtualNodeHttp2ConnectionPool & GetHttp2() const
AWS_APPMESH_API VirtualNodeConnectionPool(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API VirtualNodeConnectionPool()=default
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue