AWS SDK for C++  1.9.13
AWS SDK for C++
RouteSpec.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 
46  inline const GrpcRoute& GetGrpcRoute() const{ return m_grpcRoute; }
47 
51  inline bool GrpcRouteHasBeenSet() const { return m_grpcRouteHasBeenSet; }
52 
56  inline void SetGrpcRoute(const GrpcRoute& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = value; }
57 
61  inline void SetGrpcRoute(GrpcRoute&& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = std::move(value); }
62 
66  inline RouteSpec& WithGrpcRoute(const GrpcRoute& value) { SetGrpcRoute(value); return *this;}
67 
71  inline RouteSpec& WithGrpcRoute(GrpcRoute&& value) { SetGrpcRoute(std::move(value)); return *this;}
72 
73 
77  inline const HttpRoute& GetHttp2Route() const{ return m_http2Route; }
78 
82  inline bool Http2RouteHasBeenSet() const { return m_http2RouteHasBeenSet; }
83 
87  inline void SetHttp2Route(const HttpRoute& value) { m_http2RouteHasBeenSet = true; m_http2Route = value; }
88 
92  inline void SetHttp2Route(HttpRoute&& value) { m_http2RouteHasBeenSet = true; m_http2Route = std::move(value); }
93 
97  inline RouteSpec& WithHttp2Route(const HttpRoute& value) { SetHttp2Route(value); return *this;}
98 
102  inline RouteSpec& WithHttp2Route(HttpRoute&& value) { SetHttp2Route(std::move(value)); return *this;}
103 
104 
108  inline const HttpRoute& GetHttpRoute() const{ return m_httpRoute; }
109 
113  inline bool HttpRouteHasBeenSet() const { return m_httpRouteHasBeenSet; }
114 
118  inline void SetHttpRoute(const HttpRoute& value) { m_httpRouteHasBeenSet = true; m_httpRoute = value; }
119 
123  inline void SetHttpRoute(HttpRoute&& value) { m_httpRouteHasBeenSet = true; m_httpRoute = std::move(value); }
124 
128  inline RouteSpec& WithHttpRoute(const HttpRoute& value) { SetHttpRoute(value); return *this;}
129 
133  inline RouteSpec& WithHttpRoute(HttpRoute&& value) { SetHttpRoute(std::move(value)); return *this;}
134 
135 
140  inline int GetPriority() const{ return m_priority; }
141 
146  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
147 
152  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
153 
158  inline RouteSpec& WithPriority(int value) { SetPriority(value); return *this;}
159 
160 
164  inline const TcpRoute& GetTcpRoute() const{ return m_tcpRoute; }
165 
169  inline bool TcpRouteHasBeenSet() const { return m_tcpRouteHasBeenSet; }
170 
174  inline void SetTcpRoute(const TcpRoute& value) { m_tcpRouteHasBeenSet = true; m_tcpRoute = value; }
175 
179  inline void SetTcpRoute(TcpRoute&& value) { m_tcpRouteHasBeenSet = true; m_tcpRoute = std::move(value); }
180 
184  inline RouteSpec& WithTcpRoute(const TcpRoute& value) { SetTcpRoute(value); return *this;}
185 
189  inline RouteSpec& WithTcpRoute(TcpRoute&& value) { SetTcpRoute(std::move(value)); return *this;}
190 
191  private:
192 
193  GrpcRoute m_grpcRoute;
194  bool m_grpcRouteHasBeenSet;
195 
196  HttpRoute m_http2Route;
197  bool m_http2RouteHasBeenSet;
198 
199  HttpRoute m_httpRoute;
200  bool m_httpRouteHasBeenSet;
201 
202  int m_priority;
203  bool m_priorityHasBeenSet;
204 
205  TcpRoute m_tcpRoute;
206  bool m_tcpRouteHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace AppMesh
211 } // namespace Aws
Aws::AppMesh::Model::RouteSpec::GetHttpRoute
const HttpRoute & GetHttpRoute() const
Definition: RouteSpec.h:108
Aws::AppMesh::Model::RouteSpec::Http2RouteHasBeenSet
bool Http2RouteHasBeenSet() const
Definition: RouteSpec.h:82
Aws::AppMesh::Model::TcpRoute
Definition: TcpRoute.h:33
Aws::AppMesh::Model::RouteSpec::SetHttp2Route
void SetHttp2Route(HttpRoute &&value)
Definition: RouteSpec.h:92
Aws::AppMesh::Model::RouteSpec::SetHttp2Route
void SetHttp2Route(const HttpRoute &value)
Definition: RouteSpec.h:87
Aws::AppMesh::Model::RouteSpec::WithPriority
RouteSpec & WithPriority(int value)
Definition: RouteSpec.h:158
Aws::AppMesh::Model::RouteSpec::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::RouteSpec::TcpRouteHasBeenSet
bool TcpRouteHasBeenSet() const
Definition: RouteSpec.h:169
Aws::AppMesh::Model::RouteSpec::WithGrpcRoute
RouteSpec & WithGrpcRoute(GrpcRoute &&value)
Definition: RouteSpec.h:71
Aws::AppMesh::Model::RouteSpec::WithHttpRoute
RouteSpec & WithHttpRoute(const HttpRoute &value)
Definition: RouteSpec.h:128
GrpcRoute.h
Aws::AppMesh::Model::RouteSpec::GetGrpcRoute
const GrpcRoute & GetGrpcRoute() const
Definition: RouteSpec.h:46
Aws::AppMesh::Model::RouteSpec::operator=
RouteSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
AppMesh_EXPORTS.h
Aws::AppMesh::Model::RouteSpec::HttpRouteHasBeenSet
bool HttpRouteHasBeenSet() const
Definition: RouteSpec.h:113
Aws::AppMesh::Model::RouteSpec::SetGrpcRoute
void SetGrpcRoute(GrpcRoute &&value)
Definition: RouteSpec.h:61
Aws::AppMesh::Model::RouteSpec
Definition: RouteSpec.h:35
Aws::AppMesh::Model::RouteSpec::WithGrpcRoute
RouteSpec & WithGrpcRoute(const GrpcRoute &value)
Definition: RouteSpec.h:66
Aws::AppMesh::Model::RouteSpec::SetHttpRoute
void SetHttpRoute(const HttpRoute &value)
Definition: RouteSpec.h:118
Aws::AppMesh::Model::RouteSpec::GetPriority
int GetPriority() const
Definition: RouteSpec.h:140
Aws::AppMesh::Model::RouteSpec::GrpcRouteHasBeenSet
bool GrpcRouteHasBeenSet() const
Definition: RouteSpec.h:51
Aws::AppMesh::Model::RouteSpec::WithHttpRoute
RouteSpec & WithHttpRoute(HttpRoute &&value)
Definition: RouteSpec.h:133
Aws::AppMesh::Model::RouteSpec::WithHttp2Route
RouteSpec & WithHttp2Route(const HttpRoute &value)
Definition: RouteSpec.h:97
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::AppMesh::Model::GrpcRoute
Definition: GrpcRoute.h:35
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
TcpRoute.h
Aws::AppMesh::Model::RouteSpec::WithTcpRoute
RouteSpec & WithTcpRoute(const TcpRoute &value)
Definition: RouteSpec.h:184
Aws::AppMesh::Model::HttpRoute
Definition: HttpRoute.h:36
Aws::AppMesh::Model::RouteSpec::WithHttp2Route
RouteSpec & WithHttp2Route(HttpRoute &&value)
Definition: RouteSpec.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::RouteSpec::RouteSpec
RouteSpec(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::RouteSpec::SetHttpRoute
void SetHttpRoute(HttpRoute &&value)
Definition: RouteSpec.h:123
Aws::AppMesh::Model::RouteSpec::GetTcpRoute
const TcpRoute & GetTcpRoute() const
Definition: RouteSpec.h:164
Aws::AppMesh::Model::RouteSpec::SetGrpcRoute
void SetGrpcRoute(const GrpcRoute &value)
Definition: RouteSpec.h:56
Aws::AppMesh::Model::RouteSpec::GetHttp2Route
const HttpRoute & GetHttp2Route() const
Definition: RouteSpec.h:77
HttpRoute.h
Aws::AppMesh::Model::RouteSpec::SetTcpRoute
void SetTcpRoute(TcpRoute &&value)
Definition: RouteSpec.h:179
Aws::AppMesh::Model::RouteSpec::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: RouteSpec.h:146
Aws::AppMesh::Model::RouteSpec::SetTcpRoute
void SetTcpRoute(const TcpRoute &value)
Definition: RouteSpec.h:174
Aws::AppMesh::Model::RouteSpec::SetPriority
void SetPriority(int value)
Definition: RouteSpec.h:152
Aws::AppMesh::Model::RouteSpec::WithTcpRoute
RouteSpec & WithTcpRoute(TcpRoute &&value)
Definition: RouteSpec.h:189
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::RouteSpec::RouteSpec
RouteSpec()