AWS SDK for C++  1.9.14
AWS SDK for C++
ListenerTimeout.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AppMesh
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
43 
44  inline const GrpcTimeout& GetGrpc() const{ return m_grpc; }
45 
46 
47  inline bool GrpcHasBeenSet() const { return m_grpcHasBeenSet; }
48 
49 
50  inline void SetGrpc(const GrpcTimeout& value) { m_grpcHasBeenSet = true; m_grpc = value; }
51 
52 
53  inline void SetGrpc(GrpcTimeout&& value) { m_grpcHasBeenSet = true; m_grpc = std::move(value); }
54 
55 
56  inline ListenerTimeout& WithGrpc(const GrpcTimeout& value) { SetGrpc(value); return *this;}
57 
58 
59  inline ListenerTimeout& WithGrpc(GrpcTimeout&& value) { SetGrpc(std::move(value)); return *this;}
60 
61 
65  inline const HttpTimeout& GetHttp() const{ return m_http; }
66 
70  inline bool HttpHasBeenSet() const { return m_httpHasBeenSet; }
71 
75  inline void SetHttp(const HttpTimeout& value) { m_httpHasBeenSet = true; m_http = value; }
76 
80  inline void SetHttp(HttpTimeout&& value) { m_httpHasBeenSet = true; m_http = std::move(value); }
81 
85  inline ListenerTimeout& WithHttp(const HttpTimeout& value) { SetHttp(value); return *this;}
86 
90  inline ListenerTimeout& WithHttp(HttpTimeout&& value) { SetHttp(std::move(value)); return *this;}
91 
92 
96  inline const HttpTimeout& GetHttp2() const{ return m_http2; }
97 
101  inline bool Http2HasBeenSet() const { return m_http2HasBeenSet; }
102 
106  inline void SetHttp2(const HttpTimeout& value) { m_http2HasBeenSet = true; m_http2 = value; }
107 
111  inline void SetHttp2(HttpTimeout&& value) { m_http2HasBeenSet = true; m_http2 = std::move(value); }
112 
116  inline ListenerTimeout& WithHttp2(const HttpTimeout& value) { SetHttp2(value); return *this;}
117 
121  inline ListenerTimeout& WithHttp2(HttpTimeout&& value) { SetHttp2(std::move(value)); return *this;}
122 
123 
127  inline const TcpTimeout& GetTcp() const{ return m_tcp; }
128 
132  inline bool TcpHasBeenSet() const { return m_tcpHasBeenSet; }
133 
137  inline void SetTcp(const TcpTimeout& value) { m_tcpHasBeenSet = true; m_tcp = value; }
138 
142  inline void SetTcp(TcpTimeout&& value) { m_tcpHasBeenSet = true; m_tcp = std::move(value); }
143 
147  inline ListenerTimeout& WithTcp(const TcpTimeout& value) { SetTcp(value); return *this;}
148 
152  inline ListenerTimeout& WithTcp(TcpTimeout&& value) { SetTcp(std::move(value)); return *this;}
153 
154  private:
155 
156  GrpcTimeout m_grpc;
157  bool m_grpcHasBeenSet;
158 
159  HttpTimeout m_http;
160  bool m_httpHasBeenSet;
161 
162  HttpTimeout m_http2;
163  bool m_http2HasBeenSet;
164 
165  TcpTimeout m_tcp;
166  bool m_tcpHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace AppMesh
171 } // namespace Aws
Aws::AppMesh::Model::ListenerTimeout::GetHttp2
const HttpTimeout & GetHttp2() const
Definition: ListenerTimeout.h:96
GrpcTimeout.h
Aws::AppMesh::Model::ListenerTimeout::SetGrpc
void SetGrpc(GrpcTimeout &&value)
Definition: ListenerTimeout.h:53
Aws::AppMesh::Model::ListenerTimeout::operator=
ListenerTimeout & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::ListenerTimeout::SetHttp
void SetHttp(HttpTimeout &&value)
Definition: ListenerTimeout.h:80
Aws::AppMesh::Model::ListenerTimeout::SetHttp
void SetHttp(const HttpTimeout &value)
Definition: ListenerTimeout.h:75
Aws::AppMesh::Model::ListenerTimeout::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::ListenerTimeout::SetGrpc
void SetGrpc(const GrpcTimeout &value)
Definition: ListenerTimeout.h:50
Aws::AppMesh::Model::ListenerTimeout::GetTcp
const TcpTimeout & GetTcp() const
Definition: ListenerTimeout.h:127
Aws::AppMesh::Model::ListenerTimeout::GrpcHasBeenSet
bool GrpcHasBeenSet() const
Definition: ListenerTimeout.h:47
AppMesh_EXPORTS.h
Aws::AppMesh::Model::ListenerTimeout::SetTcp
void SetTcp(TcpTimeout &&value)
Definition: ListenerTimeout.h:142
Aws::AppMesh::Model::ListenerTimeout::WithHttp
ListenerTimeout & WithHttp(const HttpTimeout &value)
Definition: ListenerTimeout.h:85
Aws::AppMesh::Model::ListenerTimeout::Http2HasBeenSet
bool Http2HasBeenSet() const
Definition: ListenerTimeout.h:101
Aws::AppMesh::Model::ListenerTimeout::WithHttp2
ListenerTimeout & WithHttp2(const HttpTimeout &value)
Definition: ListenerTimeout.h:116
HttpTimeout.h
Aws::AppMesh::Model::ListenerTimeout::SetTcp
void SetTcp(const TcpTimeout &value)
Definition: ListenerTimeout.h:137
Aws::AppMesh::Model::ListenerTimeout::WithTcp
ListenerTimeout & WithTcp(TcpTimeout &&value)
Definition: ListenerTimeout.h:152
Aws::AppMesh::Model::ListenerTimeout::WithTcp
ListenerTimeout & WithTcp(const TcpTimeout &value)
Definition: ListenerTimeout.h:147
Aws::AppMesh::Model::ListenerTimeout::GetGrpc
const GrpcTimeout & GetGrpc() const
Definition: ListenerTimeout.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::GrpcTimeout
Definition: GrpcTimeout.h:32
Aws::AppMesh::Model::ListenerTimeout::HttpHasBeenSet
bool HttpHasBeenSet() const
Definition: ListenerTimeout.h:70
Aws::AppMesh::Model::ListenerTimeout
Definition: ListenerTimeout.h:35
Aws::AppMesh::Model::ListenerTimeout::SetHttp2
void SetHttp2(const HttpTimeout &value)
Definition: ListenerTimeout.h:106
Aws::AppMesh::Model::ListenerTimeout::WithGrpc
ListenerTimeout & WithGrpc(const GrpcTimeout &value)
Definition: ListenerTimeout.h:56
Aws::AppMesh::Model::ListenerTimeout::ListenerTimeout
ListenerTimeout()
Aws::AppMesh::Model::ListenerTimeout::TcpHasBeenSet
bool TcpHasBeenSet() const
Definition: ListenerTimeout.h:132
Aws::AppMesh::Model::ListenerTimeout::SetHttp2
void SetHttp2(HttpTimeout &&value)
Definition: ListenerTimeout.h:111
Aws
Definition: AccessManagementClient.h:15
TcpTimeout.h
Aws::AppMesh::Model::ListenerTimeout::WithHttp
ListenerTimeout & WithHttp(HttpTimeout &&value)
Definition: ListenerTimeout.h:90
Aws::AppMesh::Model::ListenerTimeout::WithGrpc
ListenerTimeout & WithGrpc(GrpcTimeout &&value)
Definition: ListenerTimeout.h:59
Aws::AppMesh::Model::ListenerTimeout::ListenerTimeout
ListenerTimeout(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::ListenerTimeout::WithHttp2
ListenerTimeout & WithHttp2(HttpTimeout &&value)
Definition: ListenerTimeout.h:121
Aws::AppMesh::Model::TcpTimeout
Definition: TcpTimeout.h:32
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::ListenerTimeout::GetHttp
const HttpTimeout & GetHttp() const
Definition: ListenerTimeout.h:65
Aws::AppMesh::Model::HttpTimeout
Definition: HttpTimeout.h:32