AWS SDK for C++  1.9.123
AWS SDK for C++
GatewayRouteSpec.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const GrpcGatewayRoute& GetGrpcRoute() const{ return m_grpcRoute; }
46 
50  inline bool GrpcRouteHasBeenSet() const { return m_grpcRouteHasBeenSet; }
51 
55  inline void SetGrpcRoute(const GrpcGatewayRoute& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = value; }
56 
60  inline void SetGrpcRoute(GrpcGatewayRoute&& value) { m_grpcRouteHasBeenSet = true; m_grpcRoute = std::move(value); }
61 
65  inline GatewayRouteSpec& WithGrpcRoute(const GrpcGatewayRoute& value) { SetGrpcRoute(value); return *this;}
66 
70  inline GatewayRouteSpec& WithGrpcRoute(GrpcGatewayRoute&& value) { SetGrpcRoute(std::move(value)); return *this;}
71 
72 
76  inline const HttpGatewayRoute& GetHttp2Route() const{ return m_http2Route; }
77 
81  inline bool Http2RouteHasBeenSet() const { return m_http2RouteHasBeenSet; }
82 
86  inline void SetHttp2Route(const HttpGatewayRoute& value) { m_http2RouteHasBeenSet = true; m_http2Route = value; }
87 
91  inline void SetHttp2Route(HttpGatewayRoute&& value) { m_http2RouteHasBeenSet = true; m_http2Route = std::move(value); }
92 
96  inline GatewayRouteSpec& WithHttp2Route(const HttpGatewayRoute& value) { SetHttp2Route(value); return *this;}
97 
101  inline GatewayRouteSpec& WithHttp2Route(HttpGatewayRoute&& value) { SetHttp2Route(std::move(value)); return *this;}
102 
103 
107  inline const HttpGatewayRoute& GetHttpRoute() const{ return m_httpRoute; }
108 
112  inline bool HttpRouteHasBeenSet() const { return m_httpRouteHasBeenSet; }
113 
117  inline void SetHttpRoute(const HttpGatewayRoute& value) { m_httpRouteHasBeenSet = true; m_httpRoute = value; }
118 
122  inline void SetHttpRoute(HttpGatewayRoute&& value) { m_httpRouteHasBeenSet = true; m_httpRoute = std::move(value); }
123 
127  inline GatewayRouteSpec& WithHttpRoute(const HttpGatewayRoute& value) { SetHttpRoute(value); return *this;}
128 
132  inline GatewayRouteSpec& WithHttpRoute(HttpGatewayRoute&& value) { SetHttpRoute(std::move(value)); return *this;}
133 
134 
138  inline int GetPriority() const{ return m_priority; }
139 
143  inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
144 
148  inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
149 
153  inline GatewayRouteSpec& WithPriority(int value) { SetPriority(value); return *this;}
154 
155  private:
156 
157  GrpcGatewayRoute m_grpcRoute;
158  bool m_grpcRouteHasBeenSet;
159 
160  HttpGatewayRoute m_http2Route;
161  bool m_http2RouteHasBeenSet;
162 
163  HttpGatewayRoute m_httpRoute;
164  bool m_httpRouteHasBeenSet;
165 
166  int m_priority;
167  bool m_priorityHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace AppMesh
172 } // namespace Aws
Aws::AppMesh::Model::GatewayRouteSpec::WithGrpcRoute
GatewayRouteSpec & WithGrpcRoute(const GrpcGatewayRoute &value)
Definition: GatewayRouteSpec.h:65
Aws::AppMesh::Model::GatewayRouteSpec::GatewayRouteSpec
GatewayRouteSpec(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::GatewayRouteSpec::GatewayRouteSpec
GatewayRouteSpec()
Aws::AppMesh::Model::GatewayRouteSpec::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::GatewayRouteSpec::WithPriority
GatewayRouteSpec & WithPriority(int value)
Definition: GatewayRouteSpec.h:153
Aws::AppMesh::Model::GatewayRouteSpec::SetHttp2Route
void SetHttp2Route(const HttpGatewayRoute &value)
Definition: GatewayRouteSpec.h:86
Aws::AppMesh::Model::GatewayRouteSpec::operator=
GatewayRouteSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
AppMesh_EXPORTS.h
Aws::AppMesh::Model::GatewayRouteSpec::WithHttpRoute
GatewayRouteSpec & WithHttpRoute(const HttpGatewayRoute &value)
Definition: GatewayRouteSpec.h:127
Aws::AppMesh::Model::GatewayRouteSpec::SetHttpRoute
void SetHttpRoute(HttpGatewayRoute &&value)
Definition: GatewayRouteSpec.h:122
Aws::AppMesh::Model::GatewayRouteSpec::WithHttpRoute
GatewayRouteSpec & WithHttpRoute(HttpGatewayRoute &&value)
Definition: GatewayRouteSpec.h:132
Aws::AppMesh::Model::HttpGatewayRoute
Definition: HttpGatewayRoute.h:34
Aws::AppMesh::Model::GatewayRouteSpec::SetHttpRoute
void SetHttpRoute(const HttpGatewayRoute &value)
Definition: GatewayRouteSpec.h:117
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AppMesh::Model::GatewayRouteSpec::PriorityHasBeenSet
bool PriorityHasBeenSet() const
Definition: GatewayRouteSpec.h:143
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::GatewayRouteSpec::GetGrpcRoute
const GrpcGatewayRoute & GetGrpcRoute() const
Definition: GatewayRouteSpec.h:45
Aws::AppMesh::Model::GrpcGatewayRoute
Definition: GrpcGatewayRoute.h:33
Aws::AppMesh::Model::GatewayRouteSpec::GetPriority
int GetPriority() const
Definition: GatewayRouteSpec.h:138
HttpGatewayRoute.h
Aws::AppMesh::Model::GatewayRouteSpec
Definition: GatewayRouteSpec.h:34
Aws::AppMesh::Model::GatewayRouteSpec::WithHttp2Route
GatewayRouteSpec & WithHttp2Route(HttpGatewayRoute &&value)
Definition: GatewayRouteSpec.h:101
Aws::AppMesh::Model::GatewayRouteSpec::GrpcRouteHasBeenSet
bool GrpcRouteHasBeenSet() const
Definition: GatewayRouteSpec.h:50
Aws::AppMesh::Model::GatewayRouteSpec::SetPriority
void SetPriority(int value)
Definition: GatewayRouteSpec.h:148
Aws::AppMesh::Model::GatewayRouteSpec::GetHttp2Route
const HttpGatewayRoute & GetHttp2Route() const
Definition: GatewayRouteSpec.h:76
Aws::AppMesh::Model::GatewayRouteSpec::SetGrpcRoute
void SetGrpcRoute(const GrpcGatewayRoute &value)
Definition: GatewayRouteSpec.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::GatewayRouteSpec::SetHttp2Route
void SetHttp2Route(HttpGatewayRoute &&value)
Definition: GatewayRouteSpec.h:91
Aws::AppMesh::Model::GatewayRouteSpec::HttpRouteHasBeenSet
bool HttpRouteHasBeenSet() const
Definition: GatewayRouteSpec.h:112
Aws::AppMesh::Model::GatewayRouteSpec::SetGrpcRoute
void SetGrpcRoute(GrpcGatewayRoute &&value)
Definition: GatewayRouteSpec.h:60
Aws::AppMesh::Model::GatewayRouteSpec::GetHttpRoute
const HttpGatewayRoute & GetHttpRoute() const
Definition: GatewayRouteSpec.h:107
Aws::AppMesh::Model::GatewayRouteSpec::WithGrpcRoute
GatewayRouteSpec & WithGrpcRoute(GrpcGatewayRoute &&value)
Definition: GatewayRouteSpec.h:70
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
GrpcGatewayRoute.h
Aws::AppMesh::Model::GatewayRouteSpec::Http2RouteHasBeenSet
bool Http2RouteHasBeenSet() const
Definition: GatewayRouteSpec.h:81
Aws::AppMesh::Model::GatewayRouteSpec::WithHttp2Route
GatewayRouteSpec & WithHttp2Route(const HttpGatewayRoute &value)
Definition: GatewayRouteSpec.h:96